Skip to content

Instantly share code, notes, and snippets.

@alexanderkiel
Created August 6, 2021 19:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexanderkiel/c8bd1568efa39ebf187461623ed37e54 to your computer and use it in GitHub Desktop.
Save alexanderkiel/c8bd1568efa39ebf187461623ed37e54 to your computer and use it in GitHub Desktop.
FHIR Bundle with fullUrl References
{
"resourceType": "Bundle",
"id": "Example-HIVSimple",
"type": "transaction",
"entry": [
{
"fullUrl": "https://intrahealth.github.io/simple-hiv-ig/Patient/Patient-HIVSimple",
"resource": {
"resourceType": "Patient",
"id": "Patient-HIVSimple",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><p><b>name</b>: Mittens Cat</p><p><b>gender</b>: female</p><p><b>birthDate</b>: 1985-01-01</p></div>"
},
"name": [
{
"text": "Mittens Cat",
"family": "Cat",
"given": [
"Mittens"
]
}
],
"gender": "female",
"birthDate": "1985-01-01"
},
"request": {
"method": "POST",
"url": "Patient"
}
},
{
"fullUrl": "https://intrahealth.github.io/simple-hiv-ig/Organization/Organization-HIVSimple",
"resource": {
"resourceType": "Organization",
"id": "Organization-HIVSimple",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><p><b>name</b>: Government Hospital</p></div>"
},
"name": "Government Hospital"
},
"request": {
"method": "POST",
"url": "Organization"
}
},
{
"fullUrl": "https://intrahealth.github.io/simple-hiv-ig/Location/Location-HIVSimple",
"resource": {
"resourceType": "Location",
"id": "Location-HIVSimple",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><p><b>identifier</b>: id: Location-HIVSimple</p><p><b>managingOrganization</b>: <a href=\"#Organization_Organization-HIVSimple\">See above (Organization/Organization-HIVSimple)</a></p></div>"
},
"identifier": [
{
"system": "https://github.com/synthetichealth/synthea",
"value": "Location-HIVSimple"
}
],
"managingOrganization": {
"reference": "https://intrahealth.github.io/simple-hiv-ig/Organization/Organization-HIVSimple"
}
},
"request": {
"method": "POST",
"url": "Location"
}
},
{
"fullUrl": "https://intrahealth.github.io/simple-hiv-ig/Condition/Condition-HIVSimple",
"resource": {
"resourceType": "Condition",
"id": "Condition-HIVSimple",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><p><b>clinicalStatus</b>: <span title=\"Codes: {http://terminology.hl7.org/CodeSystem/condition-clinical active}\">Active</span></p><p><b>verificationStatus</b>: <span title=\"Codes: {http://terminology.hl7.org/CodeSystem/condition-ver-status confirmed}\">Confirmed</span></p><p><b>code</b>: <span title=\"Codes: {http://snomed.info/sct 86406008}\">HIV - Human immunodeficiency virus infection</span></p><p><b>subject</b>: <a href=\"#Patient_Patient-HIVSimple\">See above (Patient/Patient-HIVSimple)</a></p><p><b>onset</b>: 2010-01-01</p></div>"
},
"clinicalStatus": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
"code": "active"
}
]
},
"verificationStatus": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/condition-ver-status",
"code": "confirmed"
}
]
},
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "86406008",
"display": "HIV - Human immunodeficiency virus infection"
}
]
},
"subject": {
"reference": "https://intrahealth.github.io/simple-hiv-ig/Patient/Patient-HIVSimple"
},
"onsetDateTime": "2010-01-01"
},
"request": {
"method": "POST",
"url": "Condition"
}
},
{
"fullUrl": "https://intrahealth.github.io/simple-hiv-ig/Condition/Condition-Pregnancy",
"resource": {
"resourceType": "Condition",
"id": "Condition-Pregnancy",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><p><b>clinicalStatus</b>: <span title=\"Codes: {http://terminology.hl7.org/CodeSystem/condition-clinical inactive}\">Inactive</span></p><p><b>verificationStatus</b>: <span title=\"Codes: {http://terminology.hl7.org/CodeSystem/condition-ver-status confirmed}\">Confirmed</span></p><p><b>code</b>: <span title=\"Codes: {http://snomed.info/sct 77386006}\">Pregnant (finding)</span></p><p><b>subject</b>: <a href=\"#Patient_Patient-HIVSimple\">See above (Patient/Patient-HIVSimple)</a></p><p><b>onset</b>: 2020-01-01</p><p><b>abatement</b>: 2020-09-30</p></div>"
},
"clinicalStatus": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
"code": "inactive"
}
]
},
"verificationStatus": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/condition-ver-status",
"code": "confirmed"
}
]
},
"code": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "77386006",
"display": "Pregnant (finding)"
}
]
},
"subject": {
"reference": "https://intrahealth.github.io/simple-hiv-ig/Patient/Patient-HIVSimple"
},
"onsetDateTime": "2020-01-01",
"abatementDateTime": "2020-09-30"
},
"request": {
"method": "POST",
"url": "Condition"
}
},
{
"fullUrl": "https://intrahealth.github.io/simple-hiv-ig/Encounter/Encounter-HIVSimple",
"resource": {
"resourceType": "Encounter",
"id": "Encounter-HIVSimple",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><p><b>status</b>: finished</p><p><b>class</b>: <span title=\"{http://terminology.hl7.org/CodeSystem/v3-ActCode ACUTE}\">inpatient acute</span></p><p><b>subject</b>: <a href=\"#Patient_Patient-HIVSimple\">See above (Patient/Patient-HIVSimple)</a></p><p><b>period</b>: 2011-01-01 --&gt; 2011-01-01</p><h3>Locations</h3><table class=\"grid\"><tr><td>-</td><td><b>Location</b></td></tr><tr><td>*</td><td><a href=\"#Location_Location-HIVSimple\">See above (Location/Location-HIVSimple)</a></td></tr></table><p><b>serviceProvider</b>: <a href=\"#Organization_Organization-HIVSimple\">See above (Organization/Organization-HIVSimple)</a></p></div>"
},
"status": "finished",
"class": {
"system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
"code": "ACUTE"
},
"subject": {
"reference": "https://intrahealth.github.io/simple-hiv-ig/Patient/Patient-HIVSimple"
},
"period": {
"start": "2011-01-01",
"end": "2011-01-01"
},
"location": [
{
"location": {
"reference": "https://intrahealth.github.io/simple-hiv-ig/Location/Location-HIVSimple"
}
}
],
"serviceProvider": {
"reference": "https://intrahealth.github.io/simple-hiv-ig/Organization/Organization-HIVSimple"
}
},
"request": {
"method": "POST",
"url": "Encounter"
}
},
{
"fullUrl": "https://intrahealth.github.io/simple-hiv-ig/DiagnosticReport/DiagnosticReport-HIVSimple",
"resource": {
"resourceType": "DiagnosticReport",
"id": "DiagnosticReport-HIVSimple",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><p><b>status</b>: final</p><p><b>code</b>: <span title=\"Codes: {http://loinc.org 75622-1}\">HIV 1 and 2 tests - Meaningful Use set</span></p><p><b>subject</b>: <a href=\"#Patient_Patient-HIVSimple\">See above (Patient/Patient-HIVSimple)</a></p><p><b>encounter</b>: <a href=\"#Encounter_Encounter-HIVSimple\">See above (Encounter/Encounter-HIVSimple)</a></p><p><b>result</b>: <a href=\"#Observation_Observation-HIVSimple\">See above (Observation/Observation-HIVSimple)</a></p></div>"
},
"status": "final",
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "75622-1",
"display": "HIV 1 and 2 tests - Meaningful Use set"
}
]
},
"subject": {
"reference": "https://intrahealth.github.io/simple-hiv-ig/Patient/Patient-HIVSimple"
},
"encounter": {
"reference": "https://intrahealth.github.io/simple-hiv-ig/Encounter/Encounter-HIVSimple"
},
"result": [
{
"reference": "https://intrahealth.github.io/simple-hiv-ig/Observation/Observation-HIVSimple"
}
]
},
"request": {
"method": "POST",
"url": "DiagnosticReport"
}
},
{
"fullUrl": "https://intrahealth.github.io/simple-hiv-ig/Observation/Observation-HIVSimple",
"resource": {
"resourceType": "Observation",
"id": "Observation-HIVSimple",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><p></p><p><b>code</b>: <span title=\"Codes: {http://loinc.org 75622-1}\">HIV 1 and 2 tests - Meaningful Use set</span></p><p><b>subject</b>: <a href=\"#Patient_Patient-HIVSimple\">See above (Patient/Patient-HIVSimple)</a></p><p><b>encounter</b>: <a href=\"#Encounter_Encounter-HIVSimple\">See above (Encounter/Encounter-HIVSimple)</a></p><p><b>value</b>: <span title=\"Codes: {http://snomed.info/sct 165816005}\">HIV Positive</span></p></div>"
},
"status": "final",
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "75622-1",
"display": "HIV 1 and 2 tests - Meaningful Use set"
}
]
},
"subject": {
"reference": "https://intrahealth.github.io/simple-hiv-ig/Patient/Patient-HIVSimple"
},
"encounter": {
"reference": "https://intrahealth.github.io/simple-hiv-ig/Encounter/Encounter-HIVSimple"
},
"valueCodeableConcept": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "165816005",
"display": "HIV Positive"
}
]
}
},
"request": {
"method": "POST",
"url": "Observation"
}
},
{
"fullUrl": "https://intrahealth.github.io/simple-hiv-ig/Encounter/Encounter-ViralLoad",
"resource": {
"resourceType": "Encounter",
"id": "Encounter-ViralLoad",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><p><b>status</b>: finished</p><p><b>class</b>: <span title=\"{http://terminology.hl7.org/CodeSystem/v3-ActCode ACUTE}\">inpatient acute</span></p><p><b>subject</b>: <a href=\"#Patient_Patient-HIVSimple\">See above (Patient/Patient-HIVSimple)</a></p><p><b>period</b>: 2020-06-01 --&gt; 2020-06-01</p><h3>Locations</h3><table class=\"grid\"><tr><td>-</td><td><b>Location</b></td></tr><tr><td>*</td><td><a href=\"#Location_Location-HIVSimple\">See above (Location/Location-HIVSimple)</a></td></tr></table><p><b>serviceProvider</b>: <a href=\"#Organization_Organization-HIVSimple\">See above (Organization/Organization-HIVSimple)</a></p></div>"
},
"status": "finished",
"class": {
"system": "http://terminology.hl7.org/CodeSystem/v3-ActCode",
"code": "ACUTE"
},
"subject": {
"reference": "https://intrahealth.github.io/simple-hiv-ig/Patient/Patient-HIVSimple"
},
"period": {
"start": "2020-06-01",
"end": "2020-06-01"
},
"location": [
{
"location": {
"reference": "https://intrahealth.github.io/simple-hiv-ig/Location/Location-HIVSimple"
}
}
],
"serviceProvider": {
"reference": "https://intrahealth.github.io/simple-hiv-ig/Organization/Organization-HIVSimple"
}
},
"request": {
"method": "POST",
"url": "Encounter"
}
},
{
"fullUrl": "https://intrahealth.github.io/simple-hiv-ig/DiagnosticReport/DiagnosticReport-ViralLoad",
"resource": {
"resourceType": "DiagnosticReport",
"id": "DiagnosticReport-ViralLoad",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><p><b>status</b>: final</p><p><b>code</b>: <span title=\"Codes: {http://loinc.org 25836-8}\">HIV 1 RNA [#/volume] (viral load) in Specimen by NAA with probe detection</span></p><p><b>subject</b>: <a href=\"#Patient_Patient-HIVSimple\">See above (Patient/Patient-HIVSimple)</a></p><p><b>encounter</b>: <a href=\"#Encounter_Encounter-ViralLoad\">See above (Encounter/Encounter-ViralLoad)</a></p><p><b>result</b>: <a href=\"#Observation_Observation-ViralLoad\">See above (Observation/Observation-ViralLoad)</a></p></div>"
},
"status": "final",
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "25836-8",
"display": "HIV 1 RNA [#/volume] (viral load) in Specimen by NAA with probe detection"
}
]
},
"subject": {
"reference": "https://intrahealth.github.io/simple-hiv-ig/Patient/Patient-HIVSimple"
},
"encounter": {
"reference": "https://intrahealth.github.io/simple-hiv-ig/Encounter/Encounter-ViralLoad"
},
"result": [
{
"reference": "https://intrahealth.github.io/simple-hiv-ig/Observation/Observation-ViralLoad"
}
]
},
"request": {
"method": "POST",
"url": "DiagnosticReport"
}
},
{
"fullUrl": "https://intrahealth.github.io/simple-hiv-ig/Observation/Observation-ViralLoad",
"resource": {
"resourceType": "Observation",
"id": "Observation-ViralLoad",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative</b></p><p></p><p><b>code</b>: <span title=\"Codes: {http://loinc.org 25836-8}\">HIV 1 RNA [#/volume] (viral load) in Specimen by NAA with probe detection</span></p><p><b>subject</b>: <a href=\"#Patient_Patient-HIVSimple\">See above (Patient/Patient-HIVSimple)</a></p><p><b>encounter</b>: <a href=\"#Encounter_Encounter-ViralLoad\">See above (Encounter/Encounter-ViralLoad)</a></p><p><b>value</b>: 741660 copies/mL</p></div>"
},
"status": "final",
"code": {
"coding": [
{
"system": "http://loinc.org",
"code": "25836-8",
"display": "HIV 1 RNA [#/volume] (viral load) in Specimen by NAA with probe detection"
}
]
},
"subject": {
"reference": "https://intrahealth.github.io/simple-hiv-ig/Patient/Patient-HIVSimple"
},
"encounter": {
"reference": "https://intrahealth.github.io/simple-hiv-ig/Encounter/Encounter-ViralLoad"
},
"valueQuantity": {
"value": 741660,
"unit": "copies/mL",
"system": "http://unitsofmeasure.org",
"code": "{copies}/mL"
}
},
"request": {
"method": "POST",
"url": "Observation"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment