Page History
...
| Code Block | ||
|---|---|---|
| ||
{
"resourceType": "Bundle",
"id": "bae2ae59-8dd2-4a22-bc0e-5dbc4840569d",
"meta": {
"lastUpdated": "2019-02-13T07:25:27.572+01:00"
},
"type": "searchset",
"total": 5,
"link": [
{
"relation": "self",
"url": "http://cave.sdsd.dk/fhir/AllergyIntolerance?_include=AllergyIntolerance%3Apatient&_include=AllergyIntolerance%3Arecorder&_include%3Arecurse=PractitionerRole%3Apractitioner&_include%3Arecurse=PractitionerRole%3Aorganization&patient.identifier=urn%3Aoid%3A1.2.208.176.1.2%7C0101010110"
}
],
"entry": [
{
"fullUrl": "http://cave.sdsd.dk/fhir/AllergyIntolerance/608",
"resource": {
"resourceType": "AllergyIntolerance",
"id": "608",
"meta": {
"versionId": "1",
"lastUpdated": "2019-02-12T15:49:09.000+01:00"
},
"identifier": [
{
"value": "69a8c8f2-a410-41d4-af4d-57bcd6a9d721"
}
],
"clinicalStatus": {
"coding": [
{
"code": "active"
}
]
},
"verificationStatus": {
"coding": [
{
"code": "confirmed"
}
]
},
"type": "allergy",
"category": [
"medication"
],
"criticality": "unable-to-assess",
"code": {
"coding": [
{
"system": "urn:oid:2.16.840.1.113883.6.73",
"code": "N07B02"
}
],
"text": "Metadon"
},
"patient": {
"reference": "Patient/607"
},
"onsetDateTime": "2019-01-11T09:01:03+01:00",
"recorder": {
"reference": "PractitionerRole/606"
},
"lastOccurrence": "2019-01-11T09:01:03+01:00",
"reaction": [
{
"manifestation": [
{
"coding": [
{
"system": "urn:oid:1.2.208.176.2.4.12",
"code": "DT789"
}
],
"text": "Ser grønne elefanter!"
}
],
"severity": "severe"
}
]
},
"search": {
"mode": "match"
},
"response": {
"status": "201 Created",
"etag": "W/\"1\""
}
},
{
"fullUrl": "http://cave.sdsd.dk/fhir/PractitionerRole/606",
"resource": {
"resourceType": "PractitionerRole",
"id": "606",
"meta": {
"versionId": "1",
"lastUpdated": "2019-02-12T15:49:09.000+01:00"
},
"practitioner": {
"reference": "Practitioner/604"
},
"organization": {
"reference": "Organization/605"
}
},
"search": {
"mode": "include"
},
"response": {
"status": "201 Created",
"etag": "W/\"1\""
}
},
{
"fullUrl": "http://cave.sdsd.dk/fhir/Patient/607",
"resource": {
"resourceType": "Patient",
"id": "607",
"meta": {
"versionId": "1",
"lastUpdated": "2019-02-12T15:49:09.000+01:00"
},
"identifier": [
{
"system": "urn:oid:1.2.208.176.1.2",
"value": "0101010110"
}
]
},
"search": {
"mode": "include"
},
"response": {
"status": "201 Created",
"etag": "W/\"1\""
}
},
{
"fullUrl": "http://cave.sdsd.dk/fhir/Practitioner/604",
"resource": {
"resourceType": "Practitioner",
"id": "604",
"meta": {
"versionId": "1",
"lastUpdated": "2019-02-12T15:49:08.000+01:00"
},
"identifier": [
{
"system": "urn:oid:1.2.208.176.1.3",
"value": "AUT_ID2"
}
]
},
"search": {
"mode": "include"
},
"response": {
"status": "201 Created",
"etag": "W/\"1\""
}
},
{
"fullUrl": "http://cave.sdsd.dk/fhir/Organization/605",
"resource": {
"resourceType": "Organization",
"id": "605",
"meta": {
"versionId": "1",
"lastUpdated": "2019-02-12T15:49:08.000+01:00"
},
"identifier": [
{
"system": "urn:oid:1.2.208.176.1.1",
"value": "SOR_KODE1"
}
]
},
"search": {
"mode": "include"
},
"response": {
"status": "201 Created",
"etag": "W/\"1\""
}
}
]
} |
Registrer cave oplysninger
For at registrere CAVE oplysninger sker det ved et HTTP Post kald til http://cave.sdsd.dk/fhir/AllergyIntolerance. Body består af en fhir bundle med de ressourcer der ønskes oprettet. Nedenstående er eksempel på HTTP body til oprettelse af data.
Den enkelte felter er beskrevet under snitfladebeskrivelse.
| Code Block |
|---|
{
"resourceType": "Bundle",
"type": "transaction",
"entry": [
{
"fullUrl": "urn:uuid:67e31dec-71e5-4f7d-88d6-402499aaa4ce",
"resource": {
"resourceType": "Practitioner",
"identifier": [
{
"system": "urn:oid:1.2.208.176.1.3",
"value": "AUT_ID2"
}
]
},
"request": {
"method": "POST",
"url": "Practitioner"
}
},
{
"fullUrl": "urn:uuid:0615d12d-08eb-482b-9a4b-200cfc6d8adc",
"resource": {
"resourceType": "Organization",
"identifier": [
{
"system": "urn:oid:1.2.208.176.1.1",
"value": "SOR_KODE1"
}
]
},
"request": {
"method": "POST",
"url": "Organization"
}
},
{
"fullUrl": "urn:uuid:4de0c3d5-4beb-42aa-a3f3-326e41442577",
"resource": {
"resourceType": "PractitionerRole",
"practitioner": {
"id": "urn:uuid:67e31dec-71e5-4f7d-88d6-402499aaa4ce"
},
"organization": {
"id": "urn:uuid:0615d12d-08eb-482b-9a4b-200cfc6d8adc"
}
},
"request": {
"method": "POST",
"url": "PractitionerRole"
}
},
{
"fullUrl": "urn:uuid:9185fff5-7d2b-428d-bada-5641075b157d",
"resource": {
"resourceType": "Patient",
"identifier": [
{
"system": "urn:oid:1.2.208.176.1.2",
"value": "0101010110"
}
]
},
"request": {
"method": "POST",
"url": "Patient"
}
},
{
"resource": {
"resourceType": "AllergyIntolerance",
"clinicalStatus": {
"coding": [
{
"code": "active"
}
]
},
"identifier": [
{
"value": "69a8c8f2-a410-41d4-af4d-57bcd6a9d723"
}
],
"verificationStatus": {
"coding": [
{
"code": "confirmed"
}
]
},
"type": "allergy",
"category": [
"medication"
],
"criticality": "unable-to-assess",
"code": {
"coding": [
{
"system": "urn:oid:2.16.840.1.113883.6.73",
"code": "N07B02"
}
],
"text": "Metadon"
},
"patient": {
"id": "urn:uuid:9185fff5-7d2b-428d-bada-5641075b157d"
},
"onsetDateTime": "2019-01-11T09:01:03+01:00",
"recorder": {
"id": "urn:uuid:4de0c3d5-4beb-42aa-a3f3-326e41442577"
},
"lastOccurrence": "2019-01-11T09:01:03+01:00",
"reaction": [
{
"manifestation": [
{
"coding": [
{
"system": "urn:oid:1.2.208.176.2.4.12",
"code": "DT789"
}
],
"text": "Ser grønne elefanter!"
}
],
"severity": "severe"
}
]
},
"request": {
"method": "POST",
"url": "AllergyIntolerance"
}
}
]
}
|
Ovenstående giver nedenstående svar. Savret indeholder de data der er blevet oprettet.
| Code Block |
|---|
{
"resourceType": "Bundle",
"type": "transaction-response",
"link": [
{
"relation": "self",
"url": "http://cave.sdsd.dk/fhir"
}
],
"entry": [
{
"resource": {
"resourceType": "Practitioner",
"id": "604",
"meta": {
"versionId": "1",
"lastUpdated": "2019-02-12T15:49:08.000+01:00"
},
"identifier": [
{
"system": "urn:oid:1.2.208.176.1.3",
"value": "AUT_ID2"
}
]
}
},
{
"resource": {
"resourceType": "Organization",
"id": "605",
"meta": {
"versionId": "1",
"lastUpdated": "2019-02-12T15:49:08.000+01:00"
},
"identifier": [
{
"system": "urn:oid:1.2.208.176.1.1",
"value": "SOR_KODE1"
}
]
}
},
{
"resource": {
"resourceType": "PractitionerRole",
"id": "606",
"meta": {
"versionId": "1",
"lastUpdated": "2019-02-12T15:49:09.000+01:00"
},
"practitioner": {
"reference": "Practitioner/604"
},
"organization": {
"reference": "Organization/605"
}
}
},
{
"resource": {
"resourceType": "Patient",
"id": "607",
"meta": {
"versionId": "1",
"lastUpdated": "2019-02-12T15:49:09.000+01:00"
},
"identifier": [
{
"system": "urn:oid:1.2.208.176.1.2",
"value": "0101010110"
}
]
}
},
{
"resource": {
"resourceType": "AllergyIntolerance",
"id": "653",
"meta": {
"versionId": "1",
"lastUpdated": "2019-02-13T07:52:49.573+01:00"
},
"identifier": [
{
"value": "69a8c8f2-a410-41d4-af4d-57bcd6a9d723"
}
],
"clinicalStatus": {
"coding": [
{
"code": "active"
}
]
},
"verificationStatus": {
"coding": [
{
"code": "confirmed"
}
]
},
"type": "allergy",
"category": [
"medication"
],
"criticality": "unable-to-assess",
"code": {
"coding": [
{
"system": "urn:oid:2.16.840.1.113883.6.73",
"code": "N07B02"
}
],
"text": "Metadon"
},
"patient": {
"reference": "Patient/607"
},
"onsetDateTime": "2019-01-11T09:01:03+01:00",
"recorder": {
"reference": "PractitionerRole/606"
},
"lastOccurrence": "2019-01-11T09:01:03+01:00",
"reaction": [
{
"manifestation": [
{
"coding": [
{
"system": "urn:oid:1.2.208.176.2.4.12",
"code": "DT789"
}
],
"text": "Ser grønne elefanter!"
}
],
"severity": "severe"
}
]
}
}
]
} |