eHealth Infrastructure
2.5.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/299

    Header

    Accept-Charset: utf-8
    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZjZkNDE2NzAtMjZhYS00YzcwLTg0OWEtNmU1OGRjNTgyY2ExIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
    Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
    User-Agent: HAPI-FHIR/6.1.0 (FHIR Client; FHIR 4.0.1/R4; apache)
    Accept-Encoding: gzip
    

    Response

    {
      "resourceType": "Organization",
      "id": "299",
      "meta": {
        "versionId": "2",
        "lastUpdated": "2022-10-10T14:34:49.498+00:00",
        "source": "#0ec72112-9a52-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": "2022-10-10T14:34:47+00:00"
          }
        }
      ],
      "active": false,
      "name": "defaultTestFactory-c563762a-173d-4638-bb92-6ccf4faf6780",
      "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": "7c3ac11e-5f36-4320-bf91-bc89c8eb2760"
                }
              ]
            }
          ]
        }
      ]
    }
    

    GET [base]/Organization?name=defaultTestFactory-3be5f373-b581-48ba-9062-7d230c6bfd11&_count=1

    Header

    Accept-Charset: utf-8
    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZTg5MTE0YmUtZmQ5Ni00OGZiLThhOTAtZjc4MThkOTRlYjkxIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlBSQUNUSVRJT05FUiJ9.
    Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
    User-Agent: HAPI-FHIR/6.1.0 (FHIR Client; FHIR 4.0.1/R4; apache)
    Accept-Encoding: gzip
    

    Response

    {
      "resourceType": "Bundle",
      "id": "311a6f3f-b7c7-49cc-af4c-61b8be7dd8ef",
      "meta": {
        "lastUpdated": "2022-10-10T14:33:45.027+00:00"
      },
      "type": "searchset",
      "total": 2,
      "link": [
        {
          "relation": "self",
          "url": "https://organization.cit-organization-1022.local/fhir/Organization?_count=1&_format=json&_pretty=true&name=defaultTestFactory-3be5f373-b581-48ba-9062-7d230c6bfd11"
        },
        {
          "relation": "next",
          "url": "https://organization.cit-organization-1022.local/fhir?_getpages=311a6f3f-b7c7-49cc-af4c-61b8be7dd8ef&_getpagesoffset=1&_count=1&_format=json&_pretty=true&_bundletype=searchset"
        }
      ],
      "entry": [
        {
          "fullUrl": "https://organization.cit-organization-1022.local/fhir/Organization/267",
          "resource": {
            "resourceType": "Organization",
            "id": "267",
            "meta": {
              "versionId": "1",
              "lastUpdated": "2022-10-10T14:33:43.611+00:00",
              "source": "#f91c2e61-fc42-94",
              "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": "2022-10-10T14:33:43+00:00"
                }
              }
            ],
            "active": false,
            "name": "defaultTestFactory-3be5f373-b581-48ba-9062-7d230c6bfd11"
          },
          "search": {
            "mode": "match"
          }
        }
      ]
    }
    

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

    Header

    Accept-Charset: utf-8
    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZDJlOWM2NmItZmEwZi00MzA3LTllMTUtZTFkYjdiZTIxYzIzIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
    Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
    User-Agent: HAPI-FHIR/6.1.0 (FHIR Client; FHIR 4.0.1/R4; apache)
    Accept-Encoding: gzip
    

    Response

    {
      "resourceType": "Organization",
      "id": "272",
      "meta": {
        "versionId": "1",
        "lastUpdated": "2022-10-10T14:33:46.880+00:00",
        "source": "#f8788287-1ac1-90",
        "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": "2022-10-10T14:33:46+00:00"
          }
        }
      ],
      "active": false,
      "name": "defaultTestFactory-1f786ab1-bf65-4355-afab-cf700539fbf8"
    }
    

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

    Header

    Accept-Charset: utf-8
    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZDA5NzIxZTEtNGEzMS00NTBjLTgyYTEtNDJhZmQzOGQ3NjMwIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
    Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
    User-Agent: HAPI-FHIR/6.1.0 (FHIR Client; FHIR 4.0.1/R4; apache)
    Accept-Encoding: gzip
    

    Response

    {
      "resourceType": "Organization",
      "id": "292",
      "meta": {
        "versionId": "2",
        "lastUpdated": "2022-10-10T14:34:16.212+00:00",
        "source": "#180d72b3-51da-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": "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": "2022-10-10T14:34:13+00:00"
          }
        }
      ],
      "active": false,
      "name": "defaultTestFactory-decdede4-8a72-40be-b5a4-e47a00492964",
      "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/299

    Header

    Accept-Charset: utf-8
    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiOGM2OTExMGEtMDYzYi00NmY1LThiMjEtNWMxMzMwZDU3ZDM1IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIk9yZ2FuaXphdGlvbi5wYXRjaCJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
    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.1.0 (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": "299",
      "meta": {
        "versionId": "2",
        "lastUpdated": "2022-10-10T14:34:49.498+00:00",
        "source": "#ad2414ba-11c5-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": "2022-10-10T14:34:47+00:00"
          }
        }
      ],
      "active": false,
      "name": "defaultTestFactory-c563762a-173d-4638-bb92-6ccf4faf6780",
      "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": "7c3ac11e-5f36-4320-bf91-bc89c8eb2760"
                }
              ]
            }
          ]
        }
      ]
    }
    

    POST [base]/Organization/$validate

    Header

    Accept-Charset: utf-8
    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZTJlOTg0YTMtNGI0ZC00MTdmLTljYjItNDU1NDA2NTUxYjc2IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
    Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
    User-Agent: HAPI-FHIR/6.1.0 (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": "2022-10-10T14:33:50+00:00"
                }
              }
            ],
            "active": false,
            "name": "defaultTestFactory-cfd7ffe3-8435-458e-a8a3-7b51c305faa9"
          }
        }
      ]
    }
    

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