네트워크/HL7 FHIR

[HL7 FHIR API] 2. Location (Site)

IT 기술자 2024. 11. 15. 11:00

Create

[POST] http://192.168.1.100:8080/fhir/Location
Request
Body/Json

{
  "resourceType": "Location",
  "identifier": [
    {
      "value": "koreahospital"
    }
  ],
  "status": "active",
  "name": "한국 요양병원",
  "mode": "instance",
  "physicalType": {
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
        "code" : "si",
        "display" : "Site"
      }
    ]
  },
  "managingOrganization": {
    "reference": "Organization/1"
  }
}

Response
Status: 201 Created

{
  "resourceType": "Location",
  "id": "2",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2022-08-19T05:22:04.070+00:00"
  },
  "identifier": [
    {
      "value": "koreahospital"
    }
  ],
  "status": "active",
  "name": "한국 요양병원",
  "mode": "instance",
  "physicalType": {
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
        "code": "si",
        "display": "Site"
      }
    ]
  },
  "managingOrganization": {
    "reference": "Organization/1"
  }
}

Read

[GET] http://192.168.1.100:8080/fhir/Location/[id]
Response
Status: 200 OK

{
  "resourceType": "Location",
  "id": "2",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2022-08-19T05:22:04.070+00:00",
    "source": "#jqAXkQOJ5Fha4B2q"
  },
  "identifier": [
    {
      "value": "koreahospital"
    }
  ],
  "status": "active",
  "name": "한국 요양병원",
  "mode": "instance",
  "physicalType": {
    "coding": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/location-physical-type",
        "code": "si",
        "display": "Site"
      }
    ]
  },
  "managingOrganization": {
    "reference": "Organization/1"
  }
}