Example JSON

Example data record:

{
    "resourceType": "Encounter",
    "meta": {
        "profile":  [
            "http://dedalus-group.com/fhir/StructureDefinition/Encounter"
        ]
    },
    "identifier":  [
        {
            "type": {
                "coding":  [
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                        "code": "VN"
                    }
                ],
                "text": "visit number"
            },
            "system": "Alpha-Klinik",
            "value": "1826764"
        }
    ],
    "class":  [
        {
            "system": "http://terminology.hl7.org/ValueSet/v3-ActEncounterCode",
            "code": "I"
        }
    ],
    "type":  [
        {
            "coding":  [
                {
                    "code": "E"
                }
            ]
        }
    ],
    "participant":  [
        {
            "type":  [
                {
                    "coding":  [
                        {
                            "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
                            "code": "ATND",
                            "display": "attender"
                        }
                    ]
                }
            ],
            "individual": {
                "reference": "Practitioner/pract1",
                "display": "Dr. Bernhard Attending"
            }
        },
        {
            "type":  [
                {
                    "coding":  [
                        {
                            "system": "http://terminology.hl7.org/CodeSystem/v3-ParticipationType",
                            "code": "REF",
                            "display": "referrer"
                        }
                    ]
                }
            ],
            "individual": {
                "reference": "Practitioner/pract2",
                "display": "Dr. Bernhard Referring"
            }
        }
    ],
    "period": {
        "start": "2018-08-23T10:11:59+00:00",
        "end": "2022-08-23T10:11:59+00:00"
    },
    "reasonCode":  [
        {
            "coding":  [
                {
                    "system": "https://terminology.hl7.org/CodeSystem-v2-0062.html",
                    "code": "01"
                }
            ]
        }
    ],
    "diagnosis":  [
        {
            "condition": {
                "reference": "Condition/con1"
            },
            "use": {
                "coding":  [
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/diagnosis-role",
                        "code": "AD"
                    }
                ]
            },
            "rank": 1
        },
        {
            "condition": {
                "reference": "Condition/con2"
            },
            "use": {
                "coding":  [
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/diagnosis-role",
                        "code": "BD"
                    }
                ]
            },
            "rank": 2
        }
    ],
    "hospitalization": {
        "preAdmissionIdentifier": {
            "value": "200949165"
        },
        "admitSource": {
            "coding":  [
                {
                    "system": "http://terminology.hl7.org/CodeSystem/admit-source",
                    "code": "hosp-trans",
                    "display": "Transferred from other hospital"
                }
            ]
        }
    },
    "location":  [
        {
            "location": {
                "reference": "Location/loc2",
                "display": "ST02"
            },
            "status": "active",
            "physicalType": {
                "coding":  [
                    {
                        "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                        "code": "wa"
                    }
                ]
            },
            "period": {
                "start": "2018-08-23T10:11:59+00:00"
            }
        }
    ],
    "serviceProvider": {
        "reference": "Organization/org2",
        "display": "IM"
    },
    "status": "finished"
}