我们有json文件。我们需要使用java将其转换为QBP_Q11 java对象。我们能够从hl7消息转换为QBP_Qll对象但不能从json输入。
无论如何将json转换为hl7?
{
"QBP_Q11": {
"MSH": {
"MSH.1": "|",
"MSH.10": "f167c187-cefc-4102-a836-fe8679e31e0b",
"MSH.11": {"PT.1": "P"},
"MSH.12": {"VID.1": "2.5.1"},
"MSH.18": "ASCII",
"MSH.2": "^~\\&",
"MSH.3": {"H ": "COBAS6800/8800"},
"MSH.5": {"HD.1": "LIS"},
"MSH.7": {"TS.1": 20161130115359},
"MSH.9": {
"MSG.1": "QBP",
"MSG.2": "Q11"
}
},
"QPD": {
"QPD.1": {
"CE.1": "WOS",
"CE.2": "Work·Order·Step",
"CE.3": "IHE_LABTF"
},
"QPD.3 ": "$005D783C"
},
"xmlns": "urn:hl7-org:v2xml"
}
}