eHealth Infrastructure
2.9.0 - release

Publish Box goes here

Resource Profile: ehealth-organization - Examples

Examples for the ehealth-organization Profile:

  • 312
  • StructureDefinition: ehealth-organization - Operation examples

    GET [base]/Organization/295

    Header

    Accept-Charset: utf-8
    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNmY5YjdhMmQtZGMzNi00YjJiLTlkNTUtY2Q4MWM1YWZkODk1IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
    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-08-17T14:36:36.732+00:00",
        "source": "#977ea83b-0857-9a",
        "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-08-17T14:36:34+00:00"
          }
        }
      ],
      "active": false,
      "name": "defaultTestFactory-efaab780-5231-42a7-a8de-05bc2e28db06",
      "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": "408b4c74-46e3-4671-a502-c5436483938f"
                }
              ]
            }
          ]
        }
      ]
    }
    

    GET [base]/Organization?name=defaultTestFactory-8953bf06-6ec1-422a-8102-2210de1d31a8&_count=1

    Header

    Accept-Charset: utf-8
    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiN2M0YWJiYmItNzNiYy00Yzc0LWE1NzEtMWI4NmQzYzdkMzU1IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlBSQUNUSVRJT05FUiJ9.
    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": "c3477988-199e-4369-9bdb-1ace95908e53",
      "meta": {
        "lastUpdated": "2023-08-17T14:35:32.606+00:00"
      },
      "type": "searchset",
      "total": 2,
      "link": [
        {
          "relation": "self",
          "url": "https://organization.cit-organization-1108.local/fhir/Organization?_count=1&_format=json&_pretty=true&name=defaultTestFactory-8953bf06-6ec1-422a-8102-2210de1d31a8"
        },
        {
          "relation": "next",
          "url": "https://organization.cit-organization-1108.local/fhir?_getpages=c3477988-199e-4369-9bdb-1ace95908e53&_getpagesoffset=1&_count=1&_format=json&_pretty=true&_bundletype=searchset"
        }
      ],
      "entry": [
        {
          "fullUrl": "https://organization.cit-organization-1108.local/fhir/Organization/263",
          "resource": {
            "resourceType": "Organization",
            "id": "263",
            "meta": {
              "versionId": "1",
              "lastUpdated": "2023-08-17T14:35:31.137+00:00",
              "source": "#00e463cf-36a7-96",
              "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-08-17T14:35:31+00:00"
                }
              }
            ],
            "active": false,
            "name": "defaultTestFactory-8953bf06-6ec1-422a-8102-2210de1d31a8"
          },
          "search": {
            "mode": "match"
          }
        }
      ]
    }
    

    GET [base]/Organization/271/$traverse-to-sor

    Header

    Accept-Charset: utf-8
    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMDRhNGY4NTctY2NmYS00NzY5LTk3NWQtZDM4NzcwZjZlNTY5IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
    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-08-17T14:35:34.496+00:00",
        "source": "#37c9eee2-f606-9d",
        "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-08-17T14:35:34+00:00"
          }
        }
      ],
      "active": false,
      "name": "defaultTestFactory-0a14fc99-8033-4b6d-a6db-45482b766c2a"
    }
    

    GET [base]/Organization/288/_history/2

    Header

    Accept-Charset: utf-8
    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMDA0ZWE0MzAtYmQ4YS00NTI0LWFjOWEtMmVhZTY4NDdhYjRiIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
    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-08-17T14:36:03.827+00:00",
        "source": "#af7e14de-aae1-91",
        "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-08-17T14:36:01+00:00"
          }
        }
      ],
      "active": false,
      "name": "defaultTestFactory-dec7e3b8-2279-4fb6-9b00-d73fd1c645c9",
      "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.eyJ1c2VyX2lkIjoiOTQ5ZWM5ZjgtYjk0MC00ZGMwLWEyZTQtZWI5NTBlNzExODRhIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIk9yZ2FuaXphdGlvbi5wYXRjaCJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
    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-08-17T14:36:36.732+00:00",
        "source": "#306a800f-e284-98",
        "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-08-17T14:36:34+00:00"
          }
        }
      ],
      "active": false,
      "name": "defaultTestFactory-efaab780-5231-42a7-a8de-05bc2e28db06",
      "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": "408b4c74-46e3-4671-a502-c5436483938f"
                }
              ]
            }
          ]
        }
      ]
    }
    

    POST [base]/Organization/$validate

    Header

    Accept-Charset: utf-8
    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiOTBmZjY3MTUtN2ZjZC00OWIyLWFkYjEtYzMxOWE3NDI3NGIxIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
    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-08-17T14:35:37+00:00"
                }
              }
            ],
            "active": false,
            "name": "defaultTestFactory-cf8d87a7-989d-4fc1-b22b-1265411c8b2d"
          }
        }
      ]
    }
    

    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"
        }
      ]
    }