eHealth Infrastructure
2.6.0 - Release 13

Publish Box goes here

Resource Profile: ehealth-organization - Examples

Examples for the ehealth-organization Profile:

  • 312
  • StructureDefinition: ehealth-organization - Operation examples

    GET [base]/Organization/274

    Header

    Accept-Charset: utf-8
    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZWI5MWE2YjUtMzZkMi00MzdiLWJlZDItNWI5MzVkNzRiYzNmIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
    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-01-06T07:51:45.677+00:00",
        "source": "#ddaf905d-df5d-90",
        "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-1062.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-01-06T07:51:45+00:00",
                "end": "2023-01-07"
              }
            }
          ]
        },
        {
          "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-01-06T07:51:45+00:00"
          }
        }
      ],
      "active": false,
      "name": "defaultTestFactory-f19d768a-9723-465b-933b-7811c4a190ed"
    }
    

    GET [base]/Organization?name=defaultTestFactory-df354114-7e79-481d-9a58-efa99378153d&_count=1

    Header

    Accept-Charset: utf-8
    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNzY4NjIxYmMtZjc2YS00YTEwLTg0OTUtMWFkMTY4YzEwMjU4IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlBSQUNUSVRJT05FUiJ9.
    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": "a9df07d9-5632-41ad-804a-8771b175b6ca",
      "meta": {
        "lastUpdated": "2023-01-06T07:52:22.130+00:00"
      },
      "type": "searchset",
      "total": 2,
      "link": [
        {
          "relation": "self",
          "url": "https://organization.cit-organization-1062.local/fhir/Organization?_count=1&_format=json&_pretty=true&name=defaultTestFactory-df354114-7e79-481d-9a58-efa99378153d"
        },
        {
          "relation": "next",
          "url": "https://organization.cit-organization-1062.local/fhir?_getpages=a9df07d9-5632-41ad-804a-8771b175b6ca&_getpagesoffset=1&_count=1&_format=json&_pretty=true&_bundletype=searchset"
        }
      ],
      "entry": [
        {
          "fullUrl": "https://organization.cit-organization-1062.local/fhir/Organization/344",
          "resource": {
            "resourceType": "Organization",
            "id": "344",
            "meta": {
              "versionId": "1",
              "lastUpdated": "2023-01-06T07:52:20.657+00:00",
              "source": "#fa65b84f-9a24-93",
              "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-01-06T07:52:20+00:00"
                }
              }
            ],
            "active": false,
            "name": "defaultTestFactory-df354114-7e79-481d-9a58-efa99378153d"
          },
          "search": {
            "mode": "match"
          }
        }
      ]
    }
    

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

    Header

    Accept-Charset: utf-8
    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZTc5NmQzZjgtNDFhMS00YzQxLTlhZDktZTk2Njg5ZjUxOTVmIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
    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": "349",
      "meta": {
        "versionId": "1",
        "lastUpdated": "2023-01-06T07:52:23.974+00:00",
        "source": "#08995cc9-18a2-92",
        "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-01-06T07:52:23+00:00"
          }
        }
      ],
      "active": false,
      "name": "defaultTestFactory-8e76074b-4bc6-4469-a200-845592e9b845"
    }
    

    GET [base]/Organization/330/_history/1

    Header

    Accept-Charset: utf-8
    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNDQwYjY1ZTQtMDBkYS00MGZkLTg0YWYtYzBhYzRkYzNiZWI0IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
    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": "330",
      "meta": {
        "versionId": "1",
        "lastUpdated": "2023-01-06T07:52:17.914+00:00",
        "source": "#06c2c1fc-c3a7-97",
        "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-1062.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-01-06T07:52:17+00:00",
                "end": "2023-01-06T07:52:17+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-01-06T07:52:17+00:00"
          }
        }
      ],
      "active": false,
      "name": "defaultTestFactory-b8d4010b-d7ea-4d98-81b0-c2167832e353",
      "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": "4eab9543-e001-45d7-978c-0a05e8287e27"
                }
              ]
            }
          ]
        }
      ]
    }
    

    PATCH [base]/Organization/274

    Header

    Accept-Charset: utf-8
    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiODE4MTdlNjgtZDUwMC00NjFlLWFjY2MtZGM3YTdkNWUxOTJmIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIk9yZ2FuaXphdGlvbi5wYXRjaCJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
    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-01-07"
      }
    ]
    

    Response

    {
      "resourceType": "Organization",
      "id": "274",
      "meta": {
        "versionId": "2",
        "lastUpdated": "2023-01-06T07:51:45.677+00:00",
        "source": "#ebf38abf-a32e-9e",
        "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-1062.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-01-06T07:51:45+00:00",
                "end": "2023-01-07"
              }
            }
          ]
        },
        {
          "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-01-06T07:51:45+00:00"
          }
        }
      ],
      "active": false,
      "name": "defaultTestFactory-f19d768a-9723-465b-933b-7811c4a190ed"
    }
    

    POST [base]/Organization/$validate

    Header

    Accept-Charset: utf-8
    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiYWI5NzkwODItNmM0Ni00ZjE3LTkxMjAtMTNkYzdiOWM1YWFkIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
    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-01-06T07:52:27+00:00"
                }
              }
            ],
            "active": false,
            "name": "defaultTestFactory-f5af8915-d33e-4d50-a82e-54a020cc6873"
          }
        }
      ]
    }
    

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