GET [base]/Organization/301
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiYzY3NjNhMDEtNTQ1Ni00NjBmLTgzMGItODBhN2MzYjE5OTRiIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.8.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "Organization",
"id": "301",
"meta": {
"versionId": "2",
"lastUpdated": "2020-08-05T10:56:37.452+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization-source",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/organization-source",
"code": "manual"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization-synchronizationStatus",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/organization-synchronization-status",
"code": "NotSynchronized"
}
]
}
}
],
"identifier": [
{
"use": "official",
"system": "urn:oid:2.16.840.1.113883.2.24.1.1",
"value": "11111111",
"period": {
"start": "2020-08-05T10:56:35+00:00"
}
}
],
"name": "f76d5145-edd0-4f37-91f0-c7af85d1402e",
"contact": [
{
"name": {
"period": {
"end": "2021-01-01"
}
},
"telecom": [
{
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization-telecomCustodian",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/contactpoint-custodian",
"code": "SOR"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization-telecomSystem",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/contactpoint-system",
"code": "TBD"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization-telecomValue",
"valueString": "e991b833-2d9a-4521-be35-45990542f290"
}
]
}
]
}
]
}
GET [base]/Organization?name=e7cefee7-6043-4544-939f-fca9ebdfa518&_revinclude=Organization%3Apartof
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiT3JnYW5pemF0aW9uLndyaXRlIiwiJHRlc3Qtb25seS1jcmVhdGUiXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.8.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "Bundle",
"id": "eb7902e8-7e76-4d2f-b109-54bb7c4ca5d4",
"meta": {
"lastUpdated": "2020-08-05T10:55:58.616+00:00"
},
"type": "searchset",
"total": 1,
"link": [
{
"relation": "self",
"url": "https://organization.cit-organization-687.local/fhir/Organization?_format=json&_pretty=true&_revinclude=Organization%3Apartof&name=e7cefee7-6043-4544-939f-fca9ebdfa518"
}
],
"entry": [
{
"fullUrl": "https://organization.cit-organization-687.local/fhir/Organization/272",
"resource": {
"resourceType": "Organization",
"id": "272",
"meta": {
"versionId": "1",
"lastUpdated": "2020-08-05T10:55:58.328+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization-source",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/organization-source",
"code": "manual"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization-synchronizationStatus",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/organization-synchronization-status",
"code": "NotSynchronized"
}
]
}
}
],
"identifier": [
{
"use": "official",
"system": "urn:oid:2.16.840.1.113883.2.24.1.1",
"value": "11111111",
"period": {
"start": "2020-08-05T10:55:58+00:00"
}
}
],
"name": "e7cefee7-6043-4544-939f-fca9ebdfa518"
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "https://organization.cit-organization-687.local/fhir/Organization/273",
"resource": {
"resourceType": "Organization",
"id": "273",
"meta": {
"versionId": "1",
"lastUpdated": "2020-08-05T10:55:58.428+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization-source",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/organization-source",
"code": "manual"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization-synchronizationStatus",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/organization-synchronization-status",
"code": "NotSynchronized"
}
]
}
}
],
"identifier": [
{
"use": "official",
"system": "urn:oid:2.16.840.1.113883.2.24.1.1",
"value": "11111111",
"period": {
"start": "2020-08-05T10:55:58+00:00"
}
}
],
"name": "530b9d17-7d17-4276-a7cd-599ba378d618",
"partOf": {
"reference": "https://organization.cit-organization-687.local/fhir/Organization/272"
}
},
"search": {
"mode": "include"
}
}
]
}
GET [base]/Organization/279/$traverse-to-sor
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZmQ3ZjhmODMtYjJmOC00ZTc2LTllYmQtMWQwMWI0MDMyZWQ5IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.8.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "Organization",
"id": "276",
"meta": {
"versionId": "1",
"lastUpdated": "2020-08-05T10:55:59.060+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization-source",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/organization-source",
"code": "SOR"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization-synchronizationStatus",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/organization-synchronization-status",
"code": "NotSynchronized"
}
]
}
}
],
"identifier": [
{
"use": "official",
"system": "urn:oid:2.16.840.1.113883.2.24.1.1",
"value": "11111111",
"period": {
"start": "2020-08-05T10:55:59+00:00"
}
}
],
"name": "ac33b921-de62-4ddf-a9a8-c1c9dbd2f25d"
}
GET [base]/Organization/294/_history/2
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZmRiOWExZTItOWJiYy00NTkwLWEwOGQtOWU0NjE1MjUxMGUxIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.8.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "Organization",
"id": "294",
"meta": {
"versionId": "2",
"lastUpdated": "2020-08-05T10:56:17.746+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization-source",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/organization-source",
"code": "manual"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization-synchronizationStatus",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/organization-synchronization-status",
"code": "NotSynchronized"
}
]
}
}
],
"identifier": [
{
"use": "official",
"system": "urn:oid:2.16.840.1.113883.2.24.1.1",
"value": "11111111",
"period": {
"start": "2020-08-05T10:56:16+00:00"
}
}
],
"name": "79af973d-5832-472f-a9b3-76241f62b592",
"contact": [
{
"purpose": {
"coding": [
{
"system": "http://hl7.org/fhir/contactentity-type",
"code": "HR"
}
]
},
"name": {
"use": "official",
"text": "Mr John Snow Junior",
"family": "Snow",
"given": [
"John"
],
"period": {
"start": "2017-01-01",
"end": "2020-01-01"
}
},
"telecom": [
{
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization-telecomCustodian",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/contactpoint-custodian",
"code": "SOR"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization-telecomSystem",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/contactpoint-system",
"code": "TBD"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization-telecomValue",
"valueString": "john.snow@gmail.com"
}
],
"use": "home",
"rank": 1,
"period": {
"start": "2017-01-01",
"end": "2020-01-01"
}
}
],
"address": {
"use": "home",
"type": "physical",
"text": "Westeros, The North, Winterfell, John Snow street, 1/14",
"line": [
"John Snow street, 1/14"
],
"city": "Winterfell",
"district": "Winterfell",
"state": "The North",
"postalCode": "79070",
"country": "Westeros",
"period": {
"start": "2017-01-01",
"end": "2020-01-01"
}
}
}
]
}
PATCH [base]/Organization/301
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZmE0NmM4ZjUtZDY5Yi00M2RjLWE1YTAtOGM5NjRkM2IwODFlIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIk9yZ2FuaXphdGlvbi5wYXRjaCJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
Accept: application/fhir+xml;q=1.0, application/fhir+json;q=1.0, application/xml+fhir;q=0.9, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.8.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/json-patch+json; charset=UTF-8
Body:
[
{
"op": "replace",
"path": "/contact/0/name/period/end",
"value": "2021-01-01"
}
]
Response
{
"resourceType": "Organization",
"id": "301",
"meta": {
"versionId": "2",
"lastUpdated": "2020-08-05T10:56:37.452+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization-source",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/organization-source",
"code": "manual"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization-synchronizationStatus",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/organization-synchronization-status",
"code": "NotSynchronized"
}
]
}
}
],
"identifier": [
{
"use": "official",
"system": "urn:oid:2.16.840.1.113883.2.24.1.1",
"value": "11111111",
"period": {
"start": "2020-08-05T10:56:35+00:00"
}
}
],
"name": "f76d5145-edd0-4f37-91f0-c7af85d1402e",
"contact": [
{
"name": {
"period": {
"end": "2021-01-01"
}
},
"telecom": [
{
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization-telecomCustodian",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/contactpoint-custodian",
"code": "SOR"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization-telecomSystem",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/contactpoint-system",
"code": "TBD"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization-telecomValue",
"valueString": "e991b833-2d9a-4521-be35-45990542f290"
}
]
}
]
}
]
}
POST [base]/Organization/$validate
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiYmJhZDkzYmItYjkyNy00MDU1LThjYTEtNWRhZmRmODYyOTc5IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.8.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8
Body:
{
"resourceType": "Parameters",
"parameter": [
{
"name": "resource",
"resource": {
"resourceType": "Organization",
"meta": {
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization-source",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/organization-source",
"code": "manual"
}
]
}
},
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization-synchronizationStatus",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/organization-synchronization-status",
"code": "NotSynchronized"
}
]
}
}
],
"identifier": [
{
"use": "official",
"system": "urn:oid:2.16.840.1.113883.2.24.1.1",
"value": "11111111",
"period": {
"start": "2020-08-05T10:56:01+00:00"
}
}
],
"name": "e92ff477-71f8-40ea-a2b4-5d05243b939a"
}
}
]
}
Response
{
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>No issues detected during validation</pre></td>\r\r\r</tr>\r<tr>\r<td style=\"font-weight: bold;\">INFORMATION</td>\r<td>[]</td>\r\r\r\r<td><pre>No issues detected during validation</pre></td>\r\r\r</tr>\r</table>\r</div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "No issues detected during validation"
},
{
"severity": "information",
"code": "informational",
"diagnostics": "No issues detected during validation"
}
]
}