네트워크/HL7 FHIR

[HL7 FHIR API] 5. Location (Bed)

IT 기술자 2024. 12. 6. 11:00

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"
  }
}