GET [base]/Organization/312
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNTVhZjIwMDUtNWVlMi00NWUyLThiZmItZDY0Yjk5YWY2MWIxIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/5.3.0 (FHIR Client; FHIR 3.0.2/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "Organization",
"id": "312",
"meta": {
"versionId": "2",
"lastUpdated": "2021-04-19T13:35:14.315+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": "2021-04-19T13:35:11+00:00"
}
}
],
"name": "2550eed8-2d24-4bc3-9921-01dec0d29a74",
"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": "a9251c76-135b-498c-bfc7-17ce28a8811b"
}
]
}
]
}
]
}
GET [base]/Organization?name=7c79cc3f-ec76-49c7-ade8-d98f4956d156&_count=1
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMjA1ZGQ1MWMtOWZhYi00OThkLWI5MzQtY2JjOWIxOTQ0MDAzIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlBSQUNUSVRJT05FUiJ9.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/5.3.0 (FHIR Client; FHIR 3.0.2/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "Bundle",
"id": "b4664843-6cbf-420a-a8d6-57c8784968c4",
"meta": {
"lastUpdated": "2021-04-19T13:34:06.893+00:00"
},
"type": "searchset",
"total": 2,
"link": [
{
"relation": "self",
"url": "https://organization.cit-organization-795.local/fhir/Organization?_count=1&_format=json&_pretty=true&name=7c79cc3f-ec76-49c7-ade8-d98f4956d156"
},
{
"relation": "next",
"url": "https://organization.cit-organization-795.local/fhir?_getpages=b4664843-6cbf-420a-a8d6-57c8784968c4&_getpagesoffset=1&_count=1&_format=json&_pretty=true&_bundletype=searchset"
}
],
"entry": [
{
"fullUrl": "https://organization.cit-organization-795.local/fhir/Organization/280",
"resource": {
"resourceType": "Organization",
"id": "280",
"meta": {
"versionId": "1",
"lastUpdated": "2021-04-19T13:34:05.248+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": "2021-04-19T13:34:05+00:00"
}
}
],
"name": "7c79cc3f-ec76-49c7-ade8-d98f4956d156"
},
"search": {
"mode": "match"
}
}
]
}
GET [base]/Organization/288/$traverse-to-sor
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZDdmZjhkY2UtMzE2OC00ZmM2LTkzZTMtYjE2MzIzNDc5YmQ2IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/5.3.0 (FHIR Client; FHIR 3.0.2/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "Organization",
"id": "285",
"meta": {
"versionId": "1",
"lastUpdated": "2021-04-19T13:34:08.996+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": "2021-04-19T13:34:08+00:00"
}
}
],
"name": "d773d1a5-17c0-4537-97a7-5b2a1778e72d"
}
GET [base]/Organization/305/_history/2
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMzEyYmI0ODItMDA1MS00MzY3LTkxM2UtZTA4ZGFjZTU1ZmU2IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/5.3.0 (FHIR Client; FHIR 3.0.2/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "Organization",
"id": "305",
"meta": {
"versionId": "2",
"lastUpdated": "2021-04-19T13:34:39.878+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": "2021-04-19T13:34:37+00:00"
}
}
],
"name": "e3466045-1638-4aac-9daa-5e38f787233e",
"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/312
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZjJhMTI1NTMtNTMxMi00NzczLTg1ZTMtZGQ2M2ZiYjNkMThhIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIk9yZ2FuaXphdGlvbi5wYXRjaCJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
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/5.3.0 (FHIR Client; FHIR 3.0.2/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": "312",
"meta": {
"versionId": "2",
"lastUpdated": "2021-04-19T13:35:14.315+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": "2021-04-19T13:35:11+00:00"
}
}
],
"name": "2550eed8-2d24-4bc3-9921-01dec0d29a74",
"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": "a9251c76-135b-498c-bfc7-17ce28a8811b"
}
]
}
]
}
]
}
POST [base]/Organization/$validate
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMTA3YTRlMzgtMTBkNC00ZTU2LTg5MjEtZDc3ZDgwYWYxMGFjIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/5.3.0 (FHIR Client; FHIR 3.0.2/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": "2021-04-19T13:34:13+00:00"
}
}
],
"name": "0d806d04-7527-4dde-9e58-97650e4a84e5"
}
}
]
}
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></tr><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>No issues detected during validation</pre></td></tr></table></div>"
},
"issue": [
{
"severity": "information",
"code": "informational",
"diagnostics": "No issues detected during validation"
},
{
"severity": "information",
"code": "informational",
"diagnostics": "No issues detected during validation"
}
]
}