-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixing unmarshalling/parsing of FHIR code sets & enums.
- Loading branch information
Showing
5 changed files
with
274 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
...nal/base/testdata/fixtures/401-R4/document_reference/encounter_resource_broken_parse.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
{ | ||
"class": { | ||
"code": "5", | ||
"display": "Appointment", | ||
"system": "urn:oid:1.2.840.114350.1.72.1.7.7.10.696784.13260" | ||
}, | ||
"id": "e7vTGSIu3VmPxDxo8hbtSKQ3", | ||
"identifier": [ | ||
{ | ||
"system": "urn:oid:1.2.840.114350.1.13.44.2.7.3.698084.8", | ||
"use": "usual", | ||
"value": "247735644" | ||
} | ||
], | ||
"location": [ | ||
{ | ||
"location": { | ||
"display": "Adult Orthopedics", | ||
"reference": "Location/eq0Zb8k23Hg.GX9aMfavyZg3" | ||
} | ||
} | ||
], | ||
"participant": [ | ||
{ | ||
"individual": { | ||
"display": "KIRK J. JAMES, MD", | ||
"reference": "Practitioner/e7y0GLCXTb0rdKZlNSuQhww3" | ||
}, | ||
"period": { | ||
"end": "2019-11-21T18:00:00Z", | ||
"start": "2018-11-21T17:40:00Z" | ||
} | ||
} | ||
], | ||
"period": { | ||
"end": "2019-11-21T18:00:00Z", | ||
"start": "2018-11-21T17:40:00Z" | ||
}, | ||
"reasonCode": [ | ||
{ | ||
"coding": [ | ||
{ | ||
"code": "494", | ||
"display": "Limb Pain", | ||
"system": "urn:oid:1.2.840.114350.1.13.44.2.7.2.728286" | ||
} | ||
], | ||
"text": "Limb Pain" | ||
} | ||
], | ||
"resourceType": "Encounter", | ||
"status": "Finished", | ||
"subject": { | ||
"display": "Doe, John", | ||
"reference": "Patient/etMDDQeIicnivVsdRrZcEQGPqfFlXIbJH5wMZqQ7ZNldGo3" | ||
}, | ||
"type": [ | ||
{ | ||
"coding": [ | ||
{ | ||
"code": "101", | ||
"display": "Office Visit", | ||
"system": "urn:oid:1.2.840.114350.1.13.44.2.7.10.698084.30" | ||
} | ||
], | ||
"text": "Office Visit" | ||
}, | ||
{ | ||
"coding": [ | ||
{ | ||
"code": "36", | ||
"display": "Initial Specialty Visit", | ||
"system": "urn:oid:1.2.840.114350.1.13.44.2.7.2.808267" | ||
} | ||
], | ||
"text": "Initial Specialty Visit" | ||
} | ||
] | ||
} |
98 changes: 98 additions & 0 deletions
98
...s/internal/base/testdata/fixtures/401-R4/document_reference/observation_broken_parse.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
{ | ||
"basedOn": [ | ||
{ | ||
"display": "HEPATITIS B SURFACE ANTIBODY IMMUNITY QUANTITATIVE", | ||
"reference": "ServiceRequest/klsdk3-PBKXHFeY0Q7KMDFz92TYK2nbYKsI3" | ||
} | ||
], | ||
"category": [ | ||
{ | ||
"coding": [ | ||
{ | ||
"code": "laboratory", | ||
"display": "Laboratory", | ||
"system": "http://terminology.hl7.org/CodeSystem/observation-category" | ||
} | ||
], | ||
"text": "Laboratory" | ||
}, | ||
{ | ||
"coding": [ | ||
{ | ||
"code": "LAB", | ||
"display": "LAB", | ||
"system": "urn:oid:1.2.840.114350.1.13.44.2.7.10.798268.30" | ||
} | ||
], | ||
"text": "LAB" | ||
} | ||
], | ||
"code": { | ||
"coding": [ | ||
{ | ||
"code": "5193-8", | ||
"display": "Hepatitis B virus surface Ab [Units/volume] in Serum or Plasma by Immunoassay", | ||
"system": "http://loinc.org" | ||
}, | ||
{ | ||
"code": "18063", | ||
"system": "urn:oid:1.2.840.114350.1.13.44.2.7.5.737384.80113" | ||
}, | ||
{ | ||
"code": "18063", | ||
"display": "HEPATITIS B SURFACE ANTIBODY QUANT", | ||
"system": "urn:oid:1.2.840.114350.1.13.44.2.7.2.768282" | ||
} | ||
], | ||
"text": "HEPATITIS B SURFACE ANTIBODY QUANT" | ||
}, | ||
"effectiveDateTime": "2021-06-07T01:00:00Z", | ||
"encounter": { | ||
"display": "Lab Visit", | ||
"identifier": { | ||
"system": "urn:oid:1.2.840.114350.1.13.44.2.7.3.698084.8", | ||
"use": "usual", | ||
"value": "315534385" | ||
}, | ||
"reference": "Encounter/exxx3In3deguCac1YMmg3" | ||
}, | ||
"id": "eDLs6fOQWxxxxxyRm6L53E5CxAMgXynSZ6fIlFdJM8SeT.qhxNM3", | ||
"interpretation": [ | ||
{ | ||
"coding": [ | ||
{ | ||
"code": "L", | ||
"display": "Low", | ||
"system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" | ||
} | ||
], | ||
"text": "Low" | ||
} | ||
], | ||
"issued": "2021-06-07T20:00:00Z", | ||
"note": [ | ||
{ | ||
"text": "Patient is considered to be Not Immune to infection with HBV." | ||
} | ||
], | ||
"referenceRange": [ | ||
{ | ||
"text": "\u003e=10.00" | ||
} | ||
], | ||
"resourceType": "Observation", | ||
"specimen": { | ||
"display": "Specimen XD#DDD-D00420", | ||
"reference": "Specimen/xxxxwer-YwClO-82tNgDDI43tkGp2UsGcRs3" | ||
}, | ||
"status": "final", | ||
"subject": { | ||
"display": "Doe, John", | ||
"reference": "Patient/1234" | ||
}, | ||
"valueQuantity": { | ||
"comparator": "\u003c", | ||
"unit": "mIU/mL", | ||
"value": 3.1 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters