Contoh Pengiriman (POST) Resource Location

Method POST
Target URL
{{base_url}}/Location

<Location xmlns="http://hl7.org/fhir">
    <id value="Example-Location-Create-Payload" />
    <identifier>
        <system value="http://sys-ids.kemkes.go.id/location/10000004" />
        <value value="G-2-R-1A" />
    </identifier>
    <status value="active" />
    <name value="Ruang 1A, Poliklinik Rawat Jalan" />
    <description value="Ruang 1A, Poliklinik Rawat Jalan, Lantai 2, Gedung G" />
    <mode value="instance" />
    <telecom>
        <system value="phone" />
        <value value="+6221-783042654" />
        <use value="work" />
    </telecom>
    <telecom>
        <system value="email" />
        <value value="rsudjatiasih@gmail.com" />
        <use value="work" />
    </telecom>
    <telecom>
        <system value="url" />
        <value value="www.rsudjatiasih@gmail.com" />
        <use value="work" />
    </telecom>
    <physicalType>
        <coding>
            <system value="http://terminology.hl7.org/CodeSystem/location-physical-type" />
            <code value="ro" />
            <display value="Room" />
        </coding>
    </physicalType>
    <position>
        <longitude value="-6.23115426275766" />
        <latitude value="106.83239885393944" />
        <altitude value="0" />
    </position>
    <managingOrganization>
        <reference value="Organization/8bc3f2fa-94f2-4daa-bbd3-574ce4557f9d" />
    </managingOrganization>
</Location>
{
    "resourceType": "Location",
    "id": "Example-Location-Create-Payload",
    "identifier":  [
        {
            "system": "http://sys-ids.kemkes.go.id/location/10000004",
            "value": "G-2-R-1A"
        }
    ],
    "status": "active",
    "name": "Ruang 1A, Poliklinik Rawat Jalan",
    "description": "Ruang 1A, Poliklinik Rawat Jalan, Lantai 2, Gedung G",
    "mode": "instance",
    "telecom":  [
        {
            "system": "phone",
            "value": "+6221-783042654",
            "use": "work"
        },
        {
            "system": "email",
            "value": "rsudjatiasih@gmail.com",
            "use": "work"
        },
        {
            "system": "url",
            "value": "www.rsudjatiasih@gmail.com",
            "use": "work"
        }
    ],
    "physicalType": {
        "coding":  [
            {
                "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
                "code": "ro",
                "display": "Room"
            }
        ]
    },
    "position": {
        "longitude": -6.23115426275766,
        "latitude": 106.83239885393944,
        "altitude": 0
    },
    "managingOrganization": {
        "reference": "Organization/8bc3f2fa-94f2-4daa-bbd3-574ce4557f9d"
    }
}
Location.id[0]Example-Location-Create-Payload
Location.identifier[0].system[0]http://sys-ids.kemkes.go.id/location/10000004
Location.identifier[0].value[0]G-2-R-1A
Location.status[0]active
Location.name[0]Ruang 1A, Poliklinik Rawat Jalan
Location.description[0]Ruang 1A, Poliklinik Rawat Jalan, Lantai 2, Gedung G
Location.mode[0]instance
Location.telecom[0].system[0]phone
Location.telecom[0].value[0]+6221-783042654
Location.telecom[0].use[0]work
Location.telecom[1].system[0]email
Location.telecom[1].value[0]rsudjatiasih@gmail.com
Location.telecom[1].use[0]work
Location.telecom[2].system[0]url
Location.telecom[2].value[0]www.rsudjatiasih@gmail.com
Location.telecom[2].use[0]work
Location.physicalType[0].coding[0].system[0]http://terminology.hl7.org/CodeSystem/location-physical-type
Location.physicalType[0].coding[0].code[0]ro
Location.physicalType[0].coding[0].display[0]Room
Location.position[0].longitude[0]-6.23115426275766
Location.position[0].latitude[0]106.83239885393944
Location.position[0].altitude[0]0
Location.managingOrganization[0].reference[0]Organization/8bc3f2fa-94f2-4daa-bbd3-574ce4557f9d
Location



Response 201 Created
Catatan Didalam response akan ada Location.id = dc01c797-547a-4e4d-97cd-4ece0630e380 yang di generate secara otomatis. Simpan Location.id ini untuk digunakan di resource lain



{
    "address": {
        "city": "Jakarta",
        "country": "ID",
        "extension":  [
            {
                "extension":  [
                    {
                        "url": "province",
                        "valueCode": "10"
                    },
                    {
                        "url": "city",
                        "valueCode": "1010"
                    },
                    {
                        "url": "district",
                        "valueCode": "1010101"
                    },
                    {
                        "url": "village",
                        "valueCode": "1010101101"
                    },
                    {
                        "url": "rt",
                        "valueCode": "1"
                    },
                    {
                        "url": "rw",
                        "valueCode": "2"
                    }
                ],
                "url": "https://fhir.kemkes.go.id/r4/StructureDefinition/administrativeCode"
            }
        ],
        "line":  [
            "Gd. Prof. Dr. Sujudi Lt.5, Jl. H.R. Rasuna Said Blok X5 Kav. 4-9 Kuningan"
        ],
        "postalCode": "12950",
        "use": "work"
    },
    "description": "Ruang 1A, Poliklinik Bedah Rawat Jalan Terpadu, Lantai 2, Gedung G",
    "id": "dc01c797-547a-4e4d-97cd-4ece0630e380",
    "identifier":  [
        {
            "system": "http://sys-ids.kemkes.go.id/location/1000001",
            "value": "G-2-R-1A"
        }
    ],
    "managingOrganization": {
        "reference": "Organization/10000004"
    },
    "meta": {
        "lastUpdated": "2022-08-23T06:34:44.684738+00:00",
        "versionId": "MTY2MTIzNjQ4NDY4NDczODAwMA"
    },
    "mode": "instance",
    "name": "Ruang 1A IRJT",
    "physicalType": {
        "coding":  [
            {
                "code": "ro",
                "display": "Room",
                "system": "http://terminology.hl7.org/CodeSystem/location-physical-type"
            }
        ]
    },
    "position": {
        "altitude": 0,
        "latitude": 106.83239885393944,
        "longitude": -6.23115426275766
    },
    "resourceType": "Location",
    "status": "active",
    "telecom":  [
        {
            "system": "phone",
            "use": "work",
            "value": "2328"
        },
        {
            "system": "fax",
            "use": "work",
            "value": "2329"
        },
        {
            "system": "email",
            "value": "second wing admissions"
        },
        {
            "system": "url",
            "use": "work",
            "value": "http://sampleorg.com/southwing"
        }
    ]
}

Back to top