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

'네트워크 > HL7 FHIR' 카테고리의 다른 글

[HL7 FHIR API] 4. Location (Room)  (0) 2024.11.29
[HL7 FHIR API] 3. Location (Ward)  (0) 2024.11.22
[HL7 FHIR API] 1. Organization  (0) 2024.11.08
[HL7 FHIR] FHIR 서버 설치  (0) 2024.11.01
[HL7 FHIR] FHIR 소개  (0) 2024.10.25

+ Recent posts