Publish Box goes here
Examples for the ehealth-organization Profile:
|
GET [base]/Organization/295
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZThjNDBiZjYtY2JkNi00MGM5LWI4YzktNDRmYWQ2N2MwNzJkIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/6.2.1 (FHIR Client; FHIR 4.0.1/R4; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "Organization",
"id": "295",
"meta": {
"versionId": "2",
"lastUpdated": "2023-10-16T09:17:56.013+00:00",
"source": "#a4d99070-3db5-99",
"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": "2023-10-16T09:17:53+00:00"
}
}
],
"active": false,
"name": "defaultTestFactory-27700e53-2c99-41de-995d-3868e33eddbf",
"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": "1650501c-a91e-452e-a6b6-dd2dd3dabd9a"
}
]
}
]
}
]
}
GET [base]/Organization?name=defaultTestFactory-8a4b54c0-6496-4e3b-8d96-89a8a5b95065&_count=1
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiYWIzM2FkYjYtN2M5ZS00ODJiLWFmYmItNmQxMmY1YjJlODE5IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlBSQUNUSVRJT05FUiJ9.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/6.2.1 (FHIR Client; FHIR 4.0.1/R4; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "Bundle",
"id": "db6fe84b-4b58-4f61-8ef0-04c95bda6663",
"meta": {
"lastUpdated": "2023-10-16T09:16:49.668+00:00"
},
"type": "searchset",
"total": 2,
"link": [
{
"relation": "self",
"url": "https://organization.cit-organization-1125.local/fhir/Organization?_count=1&_format=json&_pretty=true&name=defaultTestFactory-8a4b54c0-6496-4e3b-8d96-89a8a5b95065"
},
{
"relation": "next",
"url": "https://organization.cit-organization-1125.local/fhir?_getpages=db6fe84b-4b58-4f61-8ef0-04c95bda6663&_getpagesoffset=1&_count=1&_format=json&_pretty=true&_bundletype=searchset"
}
],
"entry": [
{
"fullUrl": "https://organization.cit-organization-1125.local/fhir/Organization/263",
"resource": {
"resourceType": "Organization",
"id": "263",
"meta": {
"versionId": "1",
"lastUpdated": "2023-10-16T09:16:48.187+00:00",
"source": "#d2ca17c2-4916-97",
"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": "2023-10-16T09:16:48+00:00"
}
}
],
"active": false,
"name": "defaultTestFactory-8a4b54c0-6496-4e3b-8d96-89a8a5b95065"
},
"search": {
"mode": "match"
}
}
]
}
GET [base]/Organization/271/$traverse-to-sor
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNWMyMTgwNWItZTUwZi00Y2JjLWE5ZWItZTJmYmUwMDgxZGYzIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/6.2.1 (FHIR Client; FHIR 4.0.1/R4; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "Organization",
"id": "268",
"meta": {
"versionId": "1",
"lastUpdated": "2023-10-16T09:16:51.663+00:00",
"source": "#a8d2b057-30c8-97",
"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": "2023-10-16T09:16:51+00:00"
}
}
],
"active": false,
"name": "defaultTestFactory-a73ed84f-2591-43a3-abca-6423538b59da"
}
GET [base]/Organization/288/_history/2
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMjQxMjQ3M2UtM2ZhNy00MDNhLWEyMzYtMmY2NzY0NDM1Yzg1IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/6.2.1 (FHIR Client; FHIR 4.0.1/R4; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "Organization",
"id": "288",
"meta": {
"versionId": "2",
"lastUpdated": "2023-10-16T09:17:22.100+00:00",
"source": "#ba7e58cb-9ba7-9e",
"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": "2023-10-16T09:17:19+00:00"
}
}
],
"active": false,
"name": "defaultTestFactory-3b8a165b-6ca0-43ee-ae78-5f9c440d5f10",
"contact": [
{
"purpose": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/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/295
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNjgzZGVkZTItZDc2YS00NTA3LWE3MjQtZTkwMzNjYTFmNDIyIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIk9yZ2FuaXphdGlvbi5wYXRjaCJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
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/6.2.1 (FHIR Client; FHIR 4.0.1/R4; 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": "295",
"meta": {
"versionId": "2",
"lastUpdated": "2023-10-16T09:17:56.013+00:00",
"source": "#716799e3-b80a-95",
"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": "2023-10-16T09:17:53+00:00"
}
}
],
"active": false,
"name": "defaultTestFactory-27700e53-2c99-41de-995d-3868e33eddbf",
"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": "1650501c-a91e-452e-a6b6-dd2dd3dabd9a"
}
]
}
]
}
]
}
POST [base]/Organization/$validate
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiM2MwYmFiYTAtOTE5Yy00MmJjLTk1ZDYtYTFiYzI2NmQ3OTVkIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/6.2.1 (FHIR Client; FHIR 4.0.1/R4; 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": "2023-10-16T09:16:55+00:00"
}
}
],
"active": false,
"name": "defaultTestFactory-20f7ab5c-62b7-4a90-9e9e-6970d20ab291"
}
}
]
}
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"
}
]
}