eHealth Infrastructure
2.8.0 - Release 16

Publish Box goes here

Resource Profile: ehealth-organization - Examples

Examples for the ehealth-organization Profile:

  • 312
  • StructureDefinition: ehealth-organization - Operation examples

    GET [base]/Organization/270

    Header

    Accept-Charset: utf-8
    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNWEwOWNkNmItNWM2Mi00NTI1LWE3ZDctNWIyYWFiY2E1ODJlIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
    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": "270",
      "meta": {
        "versionId": "2",
        "lastUpdated": "2023-05-08T14:29:46.807+00:00",
        "source": "#4dd4c588-8ff8-98",
        "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-1090.local/fhir/Organization/252"
              }
            },
            {
              "url": "relationType",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://ehealth.sundhed.dk/cs/organization-relation-type",
                    "code": "related-to-SOR"
                  }
                ]
              }
            },
            {
              "url": "period",
              "valuePeriod": {
                "start": "2023-05-08T14:29:46+00:00",
                "end": "2023-05-09"
              }
            }
          ]
        },
        {
          "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-05-08T14:29:46+00:00"
          }
        }
      ],
      "active": false,
      "name": "defaultTestFactory-13799201-e04d-4353-972c-814b0f12e630"
    }
    

    GET [base]/Organization?name=defaultTestFactory-0315a853-c9e5-40c3-b84c-911d09754665&_count=1

    Header

    Accept-Charset: utf-8
    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiOTJlZGY4ZDctYzk3YS00ZWM4LWJlZjgtMGVkZDMwMzZmNDI3IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlBSQUNUSVRJT05FUiJ9.
    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": "54d15433-7a75-489d-9e97-dffdf9e0d24c",
      "meta": {
        "lastUpdated": "2023-05-08T14:30:23.214+00:00"
      },
      "type": "searchset",
      "total": 2,
      "link": [
        {
          "relation": "self",
          "url": "https://organization.cit-organization-1090.local/fhir/Organization?_count=1&_format=json&_pretty=true&name=defaultTestFactory-0315a853-c9e5-40c3-b84c-911d09754665"
        },
        {
          "relation": "next",
          "url": "https://organization.cit-organization-1090.local/fhir?_getpages=54d15433-7a75-489d-9e97-dffdf9e0d24c&_getpagesoffset=1&_count=1&_format=json&_pretty=true&_bundletype=searchset"
        }
      ],
      "entry": [
        {
          "fullUrl": "https://organization.cit-organization-1090.local/fhir/Organization/340",
          "resource": {
            "resourceType": "Organization",
            "id": "340",
            "meta": {
              "versionId": "1",
              "lastUpdated": "2023-05-08T14:30:21.700+00:00",
              "source": "#24bf53c7-cadd-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-05-08T14:30:21+00:00"
                }
              }
            ],
            "active": false,
            "name": "defaultTestFactory-0315a853-c9e5-40c3-b84c-911d09754665"
          },
          "search": {
            "mode": "match"
          }
        }
      ]
    }
    

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

    Header

    Accept-Charset: utf-8
    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZTY1ZjFhMzUtNzMxZC00NzY3LWEzZTYtNDFlNTQ4ZjI5OWYwIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
    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": "345",
      "meta": {
        "versionId": "1",
        "lastUpdated": "2023-05-08T14:30:25.309+00:00",
        "source": "#2851e661-d9f1-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": "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-05-08T14:30:25+00:00"
          }
        }
      ],
      "active": false,
      "name": "defaultTestFactory-8a9f32df-a9ed-4890-b5ec-32b329f301d0"
    }
    

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

    Header

    Accept-Charset: utf-8
    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMWFjNjI0ODAtYjcyNy00OTZhLTlkMDgtOGU5YWNmOWUxZGU2IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
    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": "326",
      "meta": {
        "versionId": "1",
        "lastUpdated": "2023-05-08T14:30:19.110+00:00",
        "source": "#3a260603-931d-91",
        "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-1090.local/fhir/Organization/252"
              }
            },
            {
              "url": "relationType",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://ehealth.sundhed.dk/cs/organization-relation-type",
                    "code": "related-to-SOR"
                  }
                ]
              }
            },
            {
              "url": "period",
              "valuePeriod": {
                "start": "2023-05-08T14:30:19+00:00",
                "end": "2023-05-08T14:30:19+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-05-08T14:30:18+00:00"
          }
        }
      ],
      "active": false,
      "name": "defaultTestFactory-365c6de8-792a-4680-ac53-3175731dea26",
      "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": "13b7bbee-2263-4fbf-ab54-50f5f7f02b81"
                }
              ]
            }
          ]
        }
      ]
    }
    

    PATCH [base]/Organization/270

    Header

    Accept-Charset: utf-8
    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNDMzZmQyNGItMzNkZC00ZjllLTg4NDctNzVkNDI5MDFlYzdiIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIk9yZ2FuaXphdGlvbi5wYXRjaCJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
    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-05-09"
      }
    ]
    

    Response

    {
      "resourceType": "Organization",
      "id": "270",
      "meta": {
        "versionId": "2",
        "lastUpdated": "2023-05-08T14:29:46.807+00:00",
        "source": "#df287525-a95b-95",
        "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-1090.local/fhir/Organization/252"
              }
            },
            {
              "url": "relationType",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://ehealth.sundhed.dk/cs/organization-relation-type",
                    "code": "related-to-SOR"
                  }
                ]
              }
            },
            {
              "url": "period",
              "valuePeriod": {
                "start": "2023-05-08T14:29:46+00:00",
                "end": "2023-05-09"
              }
            }
          ]
        },
        {
          "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-05-08T14:29:46+00:00"
          }
        }
      ],
      "active": false,
      "name": "defaultTestFactory-13799201-e04d-4353-972c-814b0f12e630"
    }
    

    POST [base]/Organization/$validate

    Header

    Accept-Charset: utf-8
    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMGIwMDFhMWMtZTYyYS00YzUxLWFlYTktN2I1ZDkyZmYxM2FkIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
    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-05-08T14:30:28+00:00"
                }
              }
            ],
            "active": false,
            "name": "defaultTestFactory-6160849c-f076-488a-8575-8a85ed68cc8f"
          }
        }
      ]
    }
    

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