eHealth Infrastructure
3.0.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/364

    Header

    Accept-Charset: utf-8
    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMmUyYWQ0ZjItMDA0OS00OGRlLTljNDItNWRiMWFhZDI2MWQzIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
    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": "364",
      "meta": {
        "versionId": "2",
        "lastUpdated": "2024-02-02T10:48:34.958+00:00",
        "source": "#5d22dcfb-02ef-4e",
        "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": "2024-02-02T10:48:32+00:00"
          }
        }
      ],
      "name": "defaultTestFactory-e977eea8-e0fe-4ebc-827d-90bab9e3a414",
      "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": "8d1d100a-ff28-4732-85c3-2dcf91293767"
                }
              ]
            }
          ]
        }
      ]
    }
    

    GET [base]/Organization?name=defaultTestFactory-ef7cee63-0155-4e45-a54a-a9456df9e367&_count=1

    Header

    Accept-Charset: utf-8
    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiYWE2YzA4MmQtNTMzYi00YTMwLTk4OTgtMzNmZDc2MjRiZjU0IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlBSQUNUSVRJT05FUiJ9.
    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": "2b2ceabd-1f0f-4155-80ae-bc2269d535b9",
      "meta": {
        "lastUpdated": "2024-02-02T10:47:31.681+00:00"
      },
      "type": "searchset",
      "total": 2,
      "link": [
        {
          "relation": "self",
          "url": "https://organization.cit-organization-1149.local/fhir/Organization?_count=1&_format=json&_pretty=true&name=defaultTestFactory-ef7cee63-0155-4e45-a54a-a9456df9e367"
        },
        {
          "relation": "next",
          "url": "https://organization.cit-organization-1149.local/fhir?_getpages=2b2ceabd-1f0f-4155-80ae-bc2269d535b9&_getpagesoffset=1&_count=1&_format=json&_pretty=true&_bundletype=searchset"
        }
      ],
      "entry": [
        {
          "fullUrl": "https://organization.cit-organization-1149.local/fhir/Organization/332",
          "resource": {
            "resourceType": "Organization",
            "id": "332",
            "meta": {
              "versionId": "1",
              "lastUpdated": "2024-02-02T10:47:30.204+00:00",
              "source": "#7fc954b8-d9c4-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": "2024-02-02T10:47:30+00:00"
                }
              }
            ],
            "name": "defaultTestFactory-ef7cee63-0155-4e45-a54a-a9456df9e367"
          },
          "search": {
            "mode": "match"
          }
        }
      ]
    }
    

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

    Header

    Accept-Charset: utf-8
    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZjMzOTI4ZGEtOWQ5NS00OGUxLThiODAtNzI0NDc0Y2IyZWY1IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
    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": "337",
      "meta": {
        "versionId": "1",
        "lastUpdated": "2024-02-02T10:47:33.639+00:00",
        "source": "#b6e5547f-188c-4d",
        "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": "2024-02-02T10:47:33+00:00"
          }
        }
      ],
      "name": "defaultTestFactory-051dbfcd-38c4-46bb-b14e-f7d7565ffee7"
    }
    

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

    Header

    Accept-Charset: utf-8
    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiOTZmM2FjOTYtODNmMy00MzE1LTg3YWMtZDAxZTJlMjlmNGU3IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
    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": "357",
      "meta": {
        "versionId": "2",
        "lastUpdated": "2024-02-02T10:48:02.131+00:00",
        "source": "#5b0ff706-a892-4d",
        "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": "2024-02-02T10:47:59+00:00"
          }
        }
      ],
      "name": "defaultTestFactory-81123761-9db4-4404-bc0f-a11bbacf732e",
      "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/364

    Header

    Accept-Charset: utf-8
    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiM2Y4YWJmYzUtMDNiOS00NjljLThlNzYtZDcxNjhjMmQ2NDEyIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIk9yZ2FuaXphdGlvbi5wYXRjaCJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
    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": "364",
      "meta": {
        "versionId": "2",
        "lastUpdated": "2024-02-02T10:48:34.958+00:00",
        "source": "#2c3d01d5-df51-43",
        "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": "2024-02-02T10:48:32+00:00"
          }
        }
      ],
      "name": "defaultTestFactory-e977eea8-e0fe-4ebc-827d-90bab9e3a414",
      "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": "8d1d100a-ff28-4732-85c3-2dcf91293767"
                }
              ]
            }
          ]
        }
      ]
    }
    

    POST [base]/Organization/$validate

    Header

    Accept-Charset: utf-8
    Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMjU4MjYzMjUtNzc4NC00NDRkLWE5Y2MtYzBlZGM4OWJjYTRmIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
    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": "2024-02-02T10:47:36+00:00"
                }
              }
            ],
            "name": "defaultTestFactory-c86aede0-7b2c-47b1-a67b-a6ba18018d80"
          }
        }
      ]
    }
    

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