eHealth Infrastructure (v2019.5)

StructureDefinition: ehealth-organization - Operation examples

GET [base]/Organization?name=0538ccf0-63ad-41b9-a0ab-14a4cd6da070

Header

Accept-Charset: utf-8
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.7.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip

Response

{
  "resourceType": "Bundle",
  "id": "419cf094-d87c-42c9-9b1a-15a44927925f",
  "meta": {
    "lastUpdated": "2019-03-11T13:27:56.327+00:00"
  },
  "type": "searchset",
  "total": 2,
  "link": [
    {
      "relation": "self",
      "url": "http://localhost:31000/hapi-fhir-server/fhir/Organization?_format\u003djson\u0026_pretty\u003dtrue\u0026name\u003d0538ccf0-63ad-41b9-a0ab-14a4cd6da070"
    }
  ],
  "entry": [
    {
      "fullUrl": "http://localhost:31000/hapi-fhir-server/fhir/Organization/4313",
      "resource": {
        "resourceType": "Organization",
        "id": "4313",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2019-03-11T13:27:56.169+00:00",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization"
          ]
        },
        "identifier": [
          {
            "system": "https://www.kombit.dk/sts/organisation",
            "value": "88888888"
          }
        ],
        "name": "0538ccf0-63ad-41b9-a0ab-14a4cd6da070"
      },
      "search": {
        "mode": "match"
      }
    },
    {
      "fullUrl": "http://localhost:31000/hapi-fhir-server/fhir/Organization/4311",
      "resource": {
        "resourceType": "Organization",
        "id": "4311",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2019-03-11T13:27:55.757+00:00",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization"
          ]
        },
        "identifier": [
          {
            "system": "https://www.kombit.dk/sts/organisation",
            "value": "88888888"
          }
        ],
        "name": "0538ccf0-63ad-41b9-a0ab-14a4cd6da070"
      },
      "search": {
        "mode": "match"
      }
    }
  ]
}

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

Header

Accept-Charset: utf-8
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.7.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip

Response

{
  "resourceType": "Organization",
  "id": "4315",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2019-03-11T13:27:56.783+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization"
    ]
  },
  "identifier": [
    {
      "system": "https://www.kombit.dk/sts/organisation",
      "value": "88888888"
    }
  ],
  "name": "99b03367-12b6-4273-ac1e-c7e42b6908ea"
}

POST [base]/Organization/$fetch-external-organizations

Header

Accept-Charset: utf-8
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.7.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8

Body:

{
  "resourceType": "Parameters",
  "parameter": [
    {
      "name": "source",
      "valueCode": "foo"
    },
    {
      "name": "ids",
      "valueId": "1234"
    },
    {
      "name": "ids",
      "valueId": "5678"
    },
    {
      "name": "identifiers",
      "valueIdentifier": {
        "value": "foo1"
      }
    },
    {
      "name": "identifiers",
      "valueIdentifier": {
        "value": "foo2"
      }
    }
  ]
}

Response

{
  "resourceType": "Parameters",
  "parameter": [
    {
      "resource": {
        "resourceType": "Organization",
        "meta": {
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization"
          ]
        },
        "name": "TestOrg1"
      }
    },
    {
      "resource": {
        "resourceType": "Organization",
        "meta": {
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization"
          ]
        },
        "name": "TestOrg2"
      }
    }
  ]
}

PUT [base]/Organization/4315

Header

Accept-Charset: utf-8
If-Match: "1"
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/3.7.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8

Body:

{
  "resourceType": "Organization",
  "id": "4315",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2019-03-11T13:27:56.631+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization"
    ]
  },
  "identifier": [
    {
      "system": "https://www.kombit.dk/sts/organisation",
      "value": "88888888"
    }
  ],
  "name": "99b03367-12b6-4273-ac1e-c7e42b6908ea"
}

Response

{
  "resourceType": "Organization",
  "id": "4315",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2019-03-11T13:27:56.783+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-organization"
    ]
  },
  "identifier": [
    {
      "system": "https://www.kombit.dk/sts/organisation",
      "value": "88888888"
    }
  ],
  "name": "99b03367-12b6-4273-ac1e-c7e42b6908ea"
}