Patient lookup

TIS võimaldab pärida patsiendiandmed erinevatest allikatest - Rahvastiku Registrist, ütluspõhised, meditsiinidokumendist, HK-st.

Selleks kasutatakse PRPA_IN201307UV_Patient_Registry_Get_Demographics_Query ja PRPA_IN201308UV_Patient_Registry_Get_Demographics_Query_Response sõnumid.


Selleks, et tagada sarnast funktsionaalsust upTIS Patsiendi Registris tuleb luua FHIR operatsiooni. Soovitatav operatsiooni nimetus on https://tis.tehik.ee/fhir/OperationDefinition/Patient-lookup.

Operatsiooni definitsioon (lõplik versioon peab olema kopeeritud ja publitseeritud Implementation Guide-is (seega siit edasi inglise keeles)):

URL: [base]/Patient/$lookup

In Parameters:
Name Cardinality Type Binding Profile Documentation
resource 1..1 Resource

Use this to provide an entire set of patient details for the MPI to lookup data from external system (e.g. POST a patient record to Patient/$lookup).

system 0..1 uri

The system for the code that is to be located. Possible values: 1) rahvastikuregister.ee - Population Registry; 2) haigekassa.ee  - health insurance; 3) cda-document.tis.tehik.ee (ÄKKI leidub parim url?)  - return patient info from last CDA document; 4)  mpi.tehik.ee - return patient info from MPI (should return same result as regular Patient search). 

If not specified then return information from all sources.

Out Parameters:
Name Cardinality Type Binding Profile Documentation
return 1..1 Bundle

A bundle contain a set of Patient records that represent information from requested source(s). Optionally it may also contain an OperationOutcome with further information about the search results (such as warnings or information messages, such as a count of records that were close but eliminated) If the operation was unsuccessful, then an OperationOutcome may be returned along with a BadRequest status Code (e.g. security issue, or insufficient properties in patient fragment - check against profile).


Example

Request may be specified as GET Request

GET [base]/Patient/$lookup?Patient.identifier.value=37302102711&system=https://rahvastikuregister.ee

Or as POST

POST [base]/Patient/$lookup
[some headers]

{
  "resourceType": "Parameters",
  "id": "example",
  "parameter": [
    {
      "name": "resource",
      "resource": {
        "resourceType": "Patient",
        "identifier": [
          {
            "system": "https://hl7.ee/NamingSystem/ee-pid-id",
            "value": "37302102711"
          }
        ]
      }
    },
    {
      "name": "system",
      "valueUri": "https://rahvastikuregister.ee"
    }

Response look like


HTTP/1.1 200 OK
[other headers]

{
  "resourceType": "Bundle",
  "id": "26419249-18b3-45de-b10e-dca0b2e72b",
  "meta": {
    "lastUpdated": "2016-03-18T03:28:49Z"
  },
  "type": "searchset",
  "total": 2,
  "entry": [{
    "fullUrl": "https://rahvastikuregister.ee/Patient/example",
    "resource": {
      "resourceType": "Patient",
....