Create
[POST] http://192.168.1.100:8080/fhir/Location
Request
Body/Json
{
"resourceType": "Location",
"identifier": [
{
"value": "bed3"
}
],
"status": "active",
"operationalStatus": {
"system": "http://terminology.hl7.org/CodeSystem/v2-0116",
"code": "U",
"display": "Unoccupied"
},
"name": "3",
"mode": "instance",
"physicalType": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
"code" : "bd",
"display" : "Bed"
}
]
},
"partOf" : {
"reference": "Location/4"
},
"managingOrganization": {
"reference": "Organization/1"
}
}
Response
Status: 201 Created
{
"resourceType": "Location",
"id": "5",
"meta": {
"versionId": "1",
"lastUpdated": "2022-08-19T06:03:22.961+00:00"
},
"identifier": [
{
"value": "bed3"
}
],
"status": "active",
"operationalStatus": {
"system": "http://terminology.hl7.org/CodeSystem/v2-0116",
"code": "U",
"display": "Unoccupied"
},
"name": "3",
"mode": "instance",
"physicalType": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
"code": "bd",
"display": "Bed"
}
]
},
"managingOrganization": {
"reference": "Organization/1"
},
"partOf": {
"reference": "Location/4"
}
}
Read
[GET] http://192.168. 1.100:8080/fhir/Location/[id]
Response
Status: 200 OK
{
"resourceType": "Location",
"id": "5",
"meta": {
"versionId": "1",
"lastUpdated": "2022-08-19T06:03:22.961+00:00",
"source": "#ivi8HLsVr7PmnbuM"
},
"identifier": [
{
"value": "bed3"
}
],
"status": "active",
"operationalStatus": {
"system": "http://terminology.hl7.org/CodeSystem/v2-0116",
"code": "U",
"display": "Unoccupied"
},
"name": "3",
"mode": "instance",
"physicalType": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
"code": "bd",
"display": "Bed"
}
]
},
"managingOrganization": {
"reference": "Organization/1"
},
"partOf": {
"reference": "Location/4"
}
}
'네트워크 > HL7 FHIR' 카테고리의 다른 글
[HL7 FHIR API] 7. Patient (0) | 2024.12.20 |
---|---|
[HL7 FHIR API] 6. Device (0) | 2024.12.13 |
[HL7 FHIR API] 4. Location (Room) (0) | 2024.11.29 |
[HL7 FHIR API] 3. Location (Ward) (0) | 2024.11.22 |
[HL7 FHIR API] 2. Location (Site) (1) | 2024.11.15 |