Created
December 4, 2019 05:15
-
-
Save daya/c46fc3b6ab500a338e9f53d49644db34 to your computer and use it in GitHub Desktop.
how to use subject:reference which HAPI will automatically convert to relative reference URI
This file contains hidden or 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
{ | |
"resourceType": "Encounter", | |
"id": "emerg", | |
"text": { | |
"status": "generated", | |
"div": "\u003cdiv xmlns\u003d\"http://www.w3.org/1999/xhtml\"\u003eEmergency headache @example\u003c/div\u003e" | |
}, | |
"status": "in-progress", | |
"statusHistory": [ | |
{ | |
"status": "arrived", | |
"period": { | |
"start": "2019-02-01T07:15:00+10:00", | |
"end": "2019-02-01T07:35:00+10:00" | |
} | |
}, | |
{ | |
"status": "triaged", | |
"period": { | |
"start": "2019-02-01T07:35:00+10:00", | |
"end": "2019-02-01T08:45:00+10:00" | |
} | |
}, | |
{ | |
"status": "in-progress", | |
"period": { | |
"start": "2019-02-01T08:45:00+10:00", | |
"end": "2019-02-01T12:15:00+10:00" | |
} | |
}, | |
{ | |
"status": "onleave", | |
"period": { | |
"start": "2019-02-01T12:15:00+10:00", | |
"end": "2019-02-01T12:45:00+10:00" | |
} | |
}, | |
{ | |
"status": "in-progress", | |
"period": { | |
"start": "2019-02-01T12:45:00+10:00" | |
} | |
} | |
], | |
"class": { | |
"system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", | |
"code": "IMP", | |
"display": "inpatient encounter" | |
}, | |
"classHistory": [ | |
{ | |
"class": { | |
"system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", | |
"code": "EMER", | |
"display": "emergency" | |
}, | |
"period": { | |
"start": "2019-02-01T07:15:00+10:00", | |
"end": "2019-02-01T09:27:00+10:00" | |
} | |
}, | |
{ | |
"class": { | |
"system": "http://terminology.hl7.org/CodeSystem/v3-ActCode", | |
"code": "IMP", | |
"display": "inpatient encounter" | |
}, | |
"period": { | |
"start": "2019-03-01T09:27:00+10:00" | |
} | |
} | |
], | |
"subject": { | |
"reference": "Patient/?identifier=CERNER$DRMC$008010210" | |
}, | |
"period": { | |
"start": "2019-02-01T07:15:00+10:00" | |
}, | |
"hospitalization": { | |
"admitSource": { | |
"coding": [ | |
{ | |
"system": "http://terminology.hl7.org/CodeSystem/admit-source", | |
"code": "emd", | |
"display": "From accident/emergency department" | |
} | |
] | |
} | |
}, | |
"location": [ | |
{ | |
"location": { | |
"display": "Emergency Waiting Room" | |
}, | |
"status": "active", | |
"period": { | |
"start": "2019-02-01T07:15:00+10:00", | |
"end": "2019-02-01T08:45:00+10:00" | |
} | |
}, | |
{ | |
"location": { | |
"display": "Emergency" | |
}, | |
"status": "active", | |
"period": { | |
"start": "2019-02-01T08:45:00+10:00", | |
"end": "2019-02-01T09:27:00+10:00" | |
} | |
}, | |
{ | |
"location": { | |
"display": "Ward 1, Room 42, Bed 1" | |
}, | |
"status": "active", | |
"period": { | |
"start": "2019-02-01T09:27:00+10:00", | |
"end": "2019-02-01T12:15:00+10:00" | |
} | |
}, | |
{ | |
"location": { | |
"display": "Ward 1, Room 42, Bed 1" | |
}, | |
"status": "reserved", | |
"period": { | |
"start": "2019-02-01T12:15:00+10:00", | |
"end": "2019-02-01T12:45:00+10:00" | |
} | |
}, | |
{ | |
"location": { | |
"display": "Ward 1, Room 42, Bed 1" | |
}, | |
"status": "active", | |
"period": { | |
"start": "2019-02-01T12:45:00+10:00" | |
} | |
} | |
], | |
"meta": { | |
"tag": [ | |
{ | |
"system": "http://terminology.hl7.org/CodeSystem/v3-ActReason", | |
"code": "HTEST", | |
"display": "test health data" | |
} | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment