New Zealand NHI IG
1.5.4 - Release

New Zealand NHI IG - Local Development build (v1.5.4) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

: Find patient matches using MPI based logic - TTL Representation

Draft as of 2023-06-12

Raw ttl | Download


@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

 a fhir:OperationDefinition ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "Patient-match"] ; # 
  fhir:text [
fhir:status [ fhir:v "extensions" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p>URL: [base]/Patient/$match</p><p>Parameters</p><table class=\"grid\"><tr><td><b>Use</b></td><td><b>Name</b></td><td><b>Scope</b></td><td><b>Cardinality</b></td><td><b>Type</b></td><td><b>Binding</b></td><td><b>Documentation</b></td></tr><tr><td>IN</td><td>resource</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/patient.html\">Patient</a></td><td/><td><div><p>Use this to provide an entire set of patient details for the MPI to match against (e.g. POST a patient record to Patient/$match).</p>\n</div></td></tr><tr><td>IN</td><td>onlyCertainMatches</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#boolean\">boolean</a></td><td/><td><div><p>When set to TRUE = Validate, When set to FALSE = NHI Search</p>\n</div></td></tr><tr><td>IN</td><td>count</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#integer\">integer</a></td><td/><td><div><p>The maximum number of records to return. If no value is provided, the server decides how\nmany matches to return. Note that clients should be careful when using this, as it may\nprevent probable - and valid - matches from being returned</p>\n</div></td></tr><tr><td>OUT</td><td>return</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/bundle.html\">Bundle</a></td><td/><td><div><p>A bundle containing a set of Patient records that represent possible matches, 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)</p>\n</div></td></tr><tr><td>OUT</td><td>failure</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/operationoutcome.html\">OperationOutcome</a></td><td/><td><div><p>Error response</p>\n</div></td></tr></table><div><p>The response is a bundle containing a patient record (validate) or records (match). For match the records are ordered from most likely to least likely. If there are no patient matches an empty search set with no error will be returned. All patient records SHALL have a search score from 0 to 1, where 1 is the most certain match, along with  &quot;match-grade&quot; that indicates the MPI's position on the match quality.</p>\n</div></div>"
  ] ; # 
  fhir:url [ fhir:v "https://nhi-ig.hip.digital.health.nz/OperationDefinition/Patient-match"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "1.5.4"] ; # 
  fhir:name [ fhir:v "Match"] ; # 
  fhir:title [ fhir:v "Find patient matches using MPI based logic"] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:kind [ fhir:v "operation"] ; # 
  fhir:experimental [ fhir:v "false"^^xsd:boolean] ; # 
  fhir:date [ fhir:v "2023-06-12T12:47:40+10:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "Te Whatu Ora"] ; # 
  fhir:contact ( [
fhir:name [ fhir:v "Te Whatu Ora" ] ;
    ( fhir:telecom [
fhir:system [ fhir:v "email" ] ;
fhir:value [ fhir:v "mailto:integration@health.govt.nz" ]     ] )
  ] ) ; # 
  fhir:description [ fhir:v "A Master Patient Index ([MPI](http://en.wikipedia.org/wiki/Enterprise_master_patient_index)\n   ) is a service used to manage patient identification in a context where multiple patient\n   databases exist. Healthcare applications and middleware use the MPI to match patients\n   between the databases, and to store new patient details as they are encountered. MPIs\n   are highly specialized applications, often tailored extensively to the institution's particular\n   mix of patients. MPIs can also be run on a regional and national basis.  \n\nTo ask an MPI to match a patient, clients use the &quot;$match&quot; operation, which\n   accepts a patient resource which may be only partially complete. The data provided is\n   interpreted as an MPI input and processed by an algorithm of some kind that uses the data\n   to determine the most appropriate matches in the patient set.  Note that different MPI\n   matching algorithms have different required inputs. The generic $match operation does\n   not specify any particular algorithm, nor a minimum set of information that must be provided\n   when asking for an MPI match operation to be performed, but many implementations will\n   have a set of minimum information, which may be declared in their definition of the $match\n   operation by specifying a profile on the resource parameter, indicating which properties\n   are required in the search.  The patient resource submitted to the operation does not\n   have to be complete, nor does it need to pass validation (i.e. mandatory fields don't\n   need to be populated), but it does have to be a valid instance, as it is used as the reference\n   data to match against."] ; # 
  fhir:affectsState [ fhir:v "false"^^xsd:boolean] ; # 
  fhir:code [ fhir:v "match"] ; # 
  fhir:comment [ fhir:v "The response is a bundle containing a patient record (validate) or records (match). For match the records are ordered from most likely to least likely. If there are no patient matches an empty search set with no error will be returned. All patient records SHALL have a search score from 0 to 1, where 1 is the most certain match, along with  \"match-grade\" that indicates the MPI's position on the match quality."] ; # 
  fhir:resource ( [ fhir:v "Patient"] ) ; # 
  fhir:system [ fhir:v "false"^^xsd:boolean] ; # 
  fhir:type [ fhir:v "true"^^xsd:boolean] ; # 
  fhir:instance [ fhir:v "false"^^xsd:boolean] ; # 
  fhir:parameter ( [
fhir:name [ fhir:v "resource" ] ;
fhir:use [ fhir:v "in" ] ;
fhir:min [ fhir:v "1"^^xsd:integer ] ;
fhir:max [ fhir:v "1" ] ;
fhir:documentation [ fhir:v "Use this to provide an entire set of patient details for the MPI to match against (e.g. POST a patient record to Patient/$match)." ] ;
fhir:type [ fhir:v "Patient" ]
  ] [
fhir:name [ fhir:v "onlyCertainMatches" ] ;
fhir:use [ fhir:v "in" ] ;
fhir:min [ fhir:v "0"^^xsd:integer ] ;
fhir:max [ fhir:v "1" ] ;
fhir:documentation [ fhir:v "When set to TRUE = Validate, When set to FALSE = NHI Search" ] ;
fhir:type [ fhir:v "boolean" ]
  ] [
fhir:name [ fhir:v "count" ] ;
fhir:use [ fhir:v "in" ] ;
fhir:min [ fhir:v "0"^^xsd:integer ] ;
fhir:max [ fhir:v "1" ] ;
fhir:documentation [ fhir:v "The maximum number of records to return. If no value is provided, the server decides how\n     many matches to return. Note that clients should be careful when using this, as it may\n     prevent probable - and valid - matches from being returned" ] ;
fhir:type [ fhir:v "integer" ]
  ] [
fhir:name [ fhir:v "return" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v "1"^^xsd:integer ] ;
fhir:max [ fhir:v "1" ] ;
fhir:documentation [ fhir:v "A bundle containing a set of Patient records that represent possible matches, 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)" ] ;
fhir:type [ fhir:v "Bundle" ]
  ] [
fhir:name [ fhir:v "failure" ] ;
fhir:use [ fhir:v "out" ] ;
fhir:min [ fhir:v "0"^^xsd:integer ] ;
fhir:max [ fhir:v "1" ] ;
fhir:documentation [ fhir:v "Error response" ] ;
fhir:type [ fhir:v "OperationOutcome" ]
  ] ) . #