eHealth Infrastructure 2.7.0 - Release 14
Publish Box goes here
Examples for the ehealth-organization Profile:
GET [base]/Organization/274
Header
Accept-Charset: utf-8 Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNjhlMGQ0OTktMzgwMC00MzNjLTliNGItNmViNzJjNmVlMWUyIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9. 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": "274", "meta": { "versionId": "2", "lastUpdated": "2023-03-07T15:06:19.953+00:00", "source": "#44564032-544b-96", "profile": [ "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization" ] }, "extension": [ { "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization-relatedTo", "extension": [ { "url": "target", "valueReference": { "reference": "https://organization.cit-organization-1081.local/fhir/Organization/256" } }, { "url": "relationType", "valueCodeableConcept": { "coding": [ { "system": "http://ehealth.sundhed.dk/cs/organization-relation-type", "code": "related-to-SOR" } ] } }, { "url": "period", "valuePeriod": { "start": "2023-03-07T15:06:19+00:00", "end": "2023-03-08" } } ] }, { "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-03-07T15:06:19+00:00" } } ], "active": false, "name": "defaultTestFactory-06c0052b-7d23-4a45-b800-ad58df09d9c6" }
GET [base]/Organization?name=defaultTestFactory-8b2bd67b-65d5-4286-9163-627d0e98c0ac&_count=1
Accept-Charset: utf-8 Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNjAzZjgyM2MtNmUxNS00YWMzLWE3ZGQtNjUzMzdiOWZlNDJkIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlBSQUNUSVRJT05FUiJ9. 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
{ "resourceType": "Bundle", "id": "5545e2a8-43c8-43da-9a2c-8bbaede4f4b4", "meta": { "lastUpdated": "2023-03-07T15:06:54.366+00:00" }, "type": "searchset", "total": 2, "link": [ { "relation": "self", "url": "https://organization.cit-organization-1081.local/fhir/Organization?_count=1&_format=json&_pretty=true&name=defaultTestFactory-8b2bd67b-65d5-4286-9163-627d0e98c0ac" }, { "relation": "next", "url": "https://organization.cit-organization-1081.local/fhir?_getpages=5545e2a8-43c8-43da-9a2c-8bbaede4f4b4&_getpagesoffset=1&_count=1&_format=json&_pretty=true&_bundletype=searchset" } ], "entry": [ { "fullUrl": "https://organization.cit-organization-1081.local/fhir/Organization/344", "resource": { "resourceType": "Organization", "id": "344", "meta": { "versionId": "1", "lastUpdated": "2023-03-07T15:06:52.888+00:00", "source": "#4a098072-3849-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-03-07T15:06:52+00:00" } } ], "active": false, "name": "defaultTestFactory-8b2bd67b-65d5-4286-9163-627d0e98c0ac" }, "search": { "mode": "match" } } ] }
GET [base]/Organization/352/$traverse-to-sor
Accept-Charset: utf-8 Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiY2Y2ODdjYTItMTQ5Ny00YmIwLWI4NDgtNGFlYTU4NGRjYTliIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9. 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
{ "resourceType": "Organization", "id": "349", "meta": { "versionId": "1", "lastUpdated": "2023-03-07T15:06:56.266+00:00", "source": "#932ae716-141f-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": "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-03-07T15:06:56+00:00" } } ], "active": false, "name": "defaultTestFactory-ae5de70b-20ff-4c70-ae1d-698c5817e712" }
GET [base]/Organization/330/_history/1
Accept-Charset: utf-8 Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiYzQ0ODY3MzMtYjEwMi00MTdlLWI0ZjgtZGNkOTA1Mzc0YTA0IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9. 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
{ "resourceType": "Organization", "id": "330", "meta": { "versionId": "1", "lastUpdated": "2023-03-07T15:06:50.301+00:00", "source": "#5ba326c3-8610-92", "profile": [ "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization" ] }, "extension": [ { "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization-relatedTo", "extension": [ { "url": "target", "valueReference": { "reference": "https://organization.cit-organization-1081.local/fhir/Organization/256" } }, { "url": "relationType", "valueCodeableConcept": { "coding": [ { "system": "http://ehealth.sundhed.dk/cs/organization-relation-type", "code": "related-to-SOR" } ] } }, { "url": "period", "valuePeriod": { "start": "2023-03-07T15:06:50+00:00", "end": "2023-03-07T15:06:50+00:00" } } ] }, { "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-03-07T15:06:49+00:00" } } ], "active": false, "name": "defaultTestFactory-417da76c-4047-4869-82d9-e0baab61015b", "contact": [ { "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": "66f061e0-1ac2-4a41-be0d-43ce14b3fd81" } ] } ] } ] }
PATCH [base]/Organization/274
Accept-Charset: utf-8 Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiYzQ4N2NlM2EtMzA5Ni00YWM5LTg5ZWItMTM3ZmVmNzUyZDcxIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIk9yZ2FuaXphdGlvbi5wYXRjaCJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0. 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": "/extension/0/extension/2/valuePeriod/end", "value": "2023-03-08" } ]
{ "resourceType": "Organization", "id": "274", "meta": { "versionId": "2", "lastUpdated": "2023-03-07T15:06:19.953+00:00", "source": "#df229e31-ece1-9d", "profile": [ "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization" ] }, "extension": [ { "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization-relatedTo", "extension": [ { "url": "target", "valueReference": { "reference": "https://organization.cit-organization-1081.local/fhir/Organization/256" } }, { "url": "relationType", "valueCodeableConcept": { "coding": [ { "system": "http://ehealth.sundhed.dk/cs/organization-relation-type", "code": "related-to-SOR" } ] } }, { "url": "period", "valuePeriod": { "start": "2023-03-07T15:06:19+00:00", "end": "2023-03-08" } } ] }, { "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-03-07T15:06:19+00:00" } } ], "active": false, "name": "defaultTestFactory-06c0052b-7d23-4a45-b800-ad58df09d9c6" }
POST [base]/Organization/$validate
Accept-Charset: utf-8 Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMWVkYWE5MGEtYjNjNS00MjIxLWE5OTEtMDE4MzcwZDkzNGZhIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9. 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
{ "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-03-07T15:06:58+00:00" } } ], "active": false, "name": "defaultTestFactory-b746cacc-7925-4e28-89a5-795b3f996ea0" } } ] }
{ "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" } ] }