eHealth Infrastructure (v2020.8)

StructureDefinition: ehealth-observation - Operation examples

GET [base]/Observation/492

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMzYxZGZhMzAtZDYwZS00ODQwLTlhZmQtZmEyNDNiNGZjMjBmIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNvbW11bmljYXRpb24ucmVhZCIsIkNvbW11bmljYXRpb24ucGF0Y2giLCJNZWRpYS5zZWFyY2giLCJRdWVzdGlvbm5haXJlUmVzcG9uc2UucmVhZCIsIk9ic2VydmF0aW9uLnNlYXJjaCIsIiRzZWFyY2gtbWVhc3VyZW1lbnRzIiwiT2JzZXJ2YXRpb24ucmVhZCIsIiR0ZXN0LW9ubHktY3JlYXRlIiwiJHN1Ym1pdC1tZWFzdXJlbWVudCIsIkNvbW11bmljYXRpb24uY3JlYXRlIiwiUXVlc3Rpb25uYWlyZVJlc3BvbnNlLnNlYXJjaCIsIkNvbW11bmljYXRpb24uc2VhcmNoIiwiUHJvdmVuYW5jZS5yZWFkIiwiTWVkaWEucmVhZCJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/5.0.2 (FHIR Client; FHIR 3.0.2/DSTU3; apache)
Accept-Encoding: gzip

Response

{
  "resourceType": "Observation",
  "id": "492",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2020-12-21T12:41:48.843+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-observation"
    ]
  },
  "extension": [
    {
      "url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-quality",
      "extension": [
        {
          "url": "qualityType",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://ehealth.sundhed.dk/cs/quality-types",
                "code": "DMQ",
                "display": "Device Measuring Quality"
              }
            ]
          }
        },
        {
          "url": "qualityCode",
          "valueCodeableConcept": {
            "coding": [
              {
                "system": "http://ehealth.sundhed.dk/cs/device-measuring-quality",
                "code": "TBD"
              }
            ]
          }
        }
      ]
    }
  ],
  "identifier": [
    {
      "system": "http://ehealth.sundhed.dk/id/ehealth-identifier",
      "value": "bf0ac88e-79f4-4ce9-b4ae-a466678153d1"
    },
    {
      "system": "http://ehealth.sundhed.dk/id/ehealth-identifier",
      "value": "c283bdd3-687b-4b53-bb4b-a3f22d971042_NPU03011"
    },
    {
      "system": "http://ehealth.sundhed.dk/id/ehealth-identifier",
      "value": "d7ec2334-d9a0-40bb-a1c3-84af1d61da58_MCS88015"
    }
  ],
  "basedOn": [
    {
      "reference": "https://careplan.cit-measurement-1150.local/fhir/ProcedureRequest/30855"
    }
  ],
  "status": "final",
  "code": {
    "coding": [
      {
        "system": "urn:oid:1.2.208.176.2.1",
        "code": "NPU03011"
      }
    ],
    "text": "72636c3b-6be3-40fa-8044-b6740dbbc27a"
  },
  "subject": {
    "reference": "https://patient.cit-measurement-1150.local/fhir/Patient/18831"
  },
  "context": {
    "reference": "https://careplan.cit-measurement-1150.local/fhir/EpisodeOfCare/61041"
  },
  "effectivePeriod": {
    "start": "2020-12-21T12:41:45+00:00",
    "end": "2020-12-21T12:41:45+00:00"
  },
  "performer": [
    {
      "reference": "https://patient.cit-measurement-1150.local/fhir/Patient/14943"
    }
  ],
  "device": {
    "reference": "https://device.cit-measurement-1150.local/fhir/Device/31436"
  },
  "component": [
    {
      "code": {
        "coding": [
          {
            "system": "urn:oid:1.2.208.176.2.1",
            "code": "NPU03011"
          }
        ]
      }
    },
    {
      "code": {
        "coding": [
          {
            "system": "urn:oid:1.2.208.184.100.8",
            "code": "MCS88015"
          }
        ]
      }
    }
  ]
}

GET [base]/Observation?context=https%3A%2F%2Fcareplan.cit-measurement-1150.local%2Ffhir%2FEpisodeOfCare%2F26194

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZGRlOWI4MWQtOWYyOS00YThhLThjY2UtNThkNDY0NTI4OWM5IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIk9ic2VydmF0aW9uLnNlYXJjaCJdfSwiY29udGV4dCI6eyJjYXJlX3RlYW1faWQiOiJodHRwczovL29yZ2FuaXphdGlvbi5jaXQtbWVhc3VyZW1lbnQtMTE1MC5sb2NhbC9maGlyL0NhcmVUZWFtLzc2MDMiLCJlcGlzb2RlX29mX2NhcmVfaWQiOiJodHRwczovL2NhcmVwbGFuLmNpdC1tZWFzdXJlbWVudC0xMTUwLmxvY2FsL2ZoaXIvRXBpc29kZU9mQ2FyZS8yNjE5NCIsInRlYW1fb25fZW9jIjp0cnVlfSwidXNlcl90eXBlIjoiUFJBQ1RJVElPTkVSIn0.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/5.0.2 (FHIR Client; FHIR 3.0.2/DSTU3; apache)
Accept-Encoding: gzip

Response

{
  "resourceType": "Bundle",
  "id": "c2f43dad-6b64-4553-88c1-f40688088119",
  "meta": {
    "lastUpdated": "2020-12-21T12:42:26.485+00:00"
  },
  "type": "searchset",
  "total": 1,
  "link": [
    {
      "relation": "self",
      "url": "https://measurement.cit-measurement-1150.local/fhir/Observation?_format=json&_pretty=true&context=https%3A%2F%2Fcareplan.cit-measurement-1150.local%2Ffhir%2FEpisodeOfCare%2F26194"
    }
  ],
  "entry": [
    {
      "fullUrl": "https://measurement.cit-measurement-1150.local/fhir/Observation/553",
      "resource": {
        "resourceType": "Observation",
        "id": "553",
        "meta": {
          "versionId": "1",
          "lastUpdated": "2020-12-21T12:42:26.377+00:00",
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-observation"
          ]
        },
        "basedOn": [
          {
            "reference": "https://careplan.cit-measurement-1150.local/fhir/ProcedureRequest/17498"
          }
        ],
        "status": "final",
        "code": {
          "coding": [
            {
              "system": "urn:oid:1.2.208.176.2.1",
              "code": "NPU03011"
            }
          ]
        },
        "subject": {
          "reference": "https://patient.cit-measurement-1150.local/fhir/Patient/55767"
        },
        "context": {
          "reference": "https://careplan.cit-measurement-1150.local/fhir/EpisodeOfCare/26194"
        },
        "effectivePeriod": {
          "start": "2020-12-21T12:42:26+00:00",
          "end": "2020-12-21T12:42:26+00:00"
        },
        "performer": [
          {
            "reference": "https://patient.cit-measurement-1150.local/fhir/Patient/55767"
          }
        ],
        "device": {
          "reference": "https://device.cit-measurement-1150.local/fhir/Device/80429"
        }
      },
      "search": {
        "mode": "match"
      }
    }
  ]
}

GET [base]/Observation/547/_history/1

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNjY2MDNhMDktMjMxYS00NzgyLWIyNjUtODQ2ZDkzMzQzZmY1IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIk9ic2VydmF0aW9uLnJlYWQiXX0sImNvbnRleHQiOnsiY2FyZV90ZWFtX2lkIjoiaHR0cHM6Ly9vcmdhbml6YXRpb24uY2l0LW1lYXN1cmVtZW50LTExNTAubG9jYWwvZmhpci9DYXJlVGVhbS80NzY0NSIsImVwaXNvZGVfb2ZfY2FyZV9pZCI6Imh0dHBzOi8vY2FyZXBsYW4uY2l0LW1lYXN1cmVtZW50LTExNTAubG9jYWwvZmhpci9FcGlzb2RlT2ZDYXJlLzEwNjIyIiwidGVhbV9vbl9lb2MiOnRydWV9LCJ1c2VyX3R5cGUiOiJQUkFDVElUSU9ORVIifQ.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/5.0.2 (FHIR Client; FHIR 3.0.2/DSTU3; apache)
Accept-Encoding: gzip

Response

{
  "resourceType": "Observation",
  "id": "547",
  "meta": {
    "versionId": "1",
    "lastUpdated": "2020-12-21T12:42:24.874+00:00",
    "profile": [
      "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-observation"
    ]
  },
  "basedOn": [
    {
      "reference": "https://careplan.cit-measurement-1150.local/fhir/ProcedureRequest/21221"
    }
  ],
  "status": "final",
  "code": {
    "coding": [
      {
        "system": "urn:oid:1.2.208.176.2.1",
        "code": "NPU03011"
      }
    ]
  },
  "subject": {
    "reference": "https://patient.cit-measurement-1150.local/fhir/Patient/92645"
  },
  "context": {
    "reference": "https://careplan.cit-measurement-1150.local/fhir/EpisodeOfCare/10622"
  },
  "effectivePeriod": {
    "start": "2020-12-21T12:42:24+00:00",
    "end": "2020-12-21T12:42:24+00:00"
  },
  "performer": [
    {
      "reference": "https://patient.cit-measurement-1150.local/fhir/Patient/92645"
    }
  ],
  "device": {
    "reference": "https://device.cit-measurement-1150.local/fhir/Device/24747"
  }
}

POST [base]/Observation/$validate

Header

Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiM2E4OGU2ZGUtNjc5Mi00OGQ0LWI1MTMtMGFmYzc3ZjRjZjUzIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIk9ic2VydmF0aW9uLnJlYWQiXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/5.0.2 (FHIR Client; FHIR 3.0.2/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8

Body:

{
  "resourceType": "Parameters",
  "parameter": [
    {
      "name": "resource",
      "resource": {
        "resourceType": "Observation",
        "meta": {
          "profile": [
            "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-observation"
          ]
        },
        "basedOn": [
          {
            "reference": "https://careplan.cit-measurement-1150.local/fhir/ProcedureRequest/35523"
          }
        ],
        "status": "final",
        "code": {
          "coding": [
            {
              "system": "urn:oid:1.2.208.176.2.1",
              "code": "NPU03011"
            }
          ]
        },
        "subject": {
          "reference": "https://patient.cit-measurement-1150.local/fhir/Patient/58294"
        },
        "context": {
          "reference": "https://careplan.cit-measurement-1150.local/fhir/EpisodeOfCare/28479"
        },
        "effectivePeriod": {
          "start": "2020-12-21T12:42:26+00:00",
          "end": "2020-12-21T12:42:26+00:00"
        },
        "performer": [
          {
            "reference": "https://patient.cit-measurement-1150.local/fhir/Patient/58294"
          }
        ],
        "device": {
          "reference": "https://device.cit-measurement-1150.local/fhir/Device/66576"
        }
      }
    }
  ]
}

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