@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

<http://ig.hiu.lk/fhir/clientregistry/OperationDefinition/lk-link-clients> a fhir:OperationDefinition ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "lk-link-clients"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: OperationDefinition lk-link-clients</b></p><a name=\"lk-link-clients\"> </a><a name=\"hclk-link-clients\"> </a><p>URL: [base]/Patient/$linkClients</p><h3>Parameters</h3><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>patientOne</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a></td><td/><td><div><p>An Identifier for one Client.  As system|value.</p>\n</div></td></tr><tr><td>IN</td><td>patientTwo</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#string\">string</a></td><td/><td><div><p>An Identifier for the other Client.  As system|value.</p>\n</div></td></tr><tr><td>IN</td><td>unlink</td><td/><td>0..1</td><td><a href=\"http://hl7.org/fhir/R4/datatypes.html#boolean\">boolean</a></td><td/><td><div><p>Indicate that the server should 'unlink' patientTwo from patientOne.  Client one is not the same individual as Client two.  Default is false when not present.</p>\n</div></td></tr><tr><td>OUT</td><td>outcome</td><td/><td>1..1</td><td><a href=\"http://hl7.org/fhir/R4/operationoutcome.html\">OperationOutcome</a></td><td/><td><div><p>An Operation Outcome with description of results.</p>\n</div></td></tr></table></div>"^^rdf:XMLLiteral
  ] ; # 
  fhir:url [ fhir:v "http://ig.hiu.lk/fhir/clientregistry/OperationDefinition/lk-link-clients"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "0.1.0"] ; # 
  fhir:name [ fhir:v "LinkClients"] ; # 
  fhir:title [ fhir:v "Operation to link one Client with another."] ; # 
  fhir:status [ fhir:v "draft"] ; # 
  fhir:kind [ fhir:v "operation"] ; # 
  fhir:date [ fhir:v "2025-10-23T17:43:42+00:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "Sir Lanka Ministry of Health"] ; # 
  fhir:contact ( [
     fhir:name [ fhir:v "Sir Lanka Ministry of Health" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "https://www.health.gov.lk" ]
     ] )
  ] ) ; # 
  fhir:description [ fhir:v "This operation is used to link two Clients.  Linking is an internal procedure where the system applies some confirmation and 'links' resource instances with an internal mechanism.  The 'link' is not disclosed or part of any FHIR resource, but a user can confirm the linkage by searching with the identifier list operation."] ; # 
  fhir:jurisdiction ( [
     fhir:coding ( [
       fhir:system [ fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "LKA" ] ;
       fhir:display [ fhir:v "Sri Lanka" ]
     ] )
  ] ) ; # 
  fhir:code [ fhir:v "linkClients"] ; # 
  fhir:resource ( [ fhir:v "Patient"] ) ; # 
  fhir:system [ fhir:v false] ; # 
  fhir:type [ fhir:v true] ; # 
  fhir:instance [ fhir:v false] ; # 
  fhir:parameter ( [
     fhir:name [ fhir:v "patientOne" ] ;
     fhir:use [ fhir:v "in" ] ;
     fhir:min [ fhir:v 1 ] ;
     fhir:max [ fhir:v "1" ] ;
     fhir:documentation [ fhir:v "An Identifier for one Client.  As system|value." ] ;
     fhir:type [ fhir:v "string" ]
  ] [
     fhir:name [ fhir:v "patientTwo" ] ;
     fhir:use [ fhir:v "in" ] ;
     fhir:min [ fhir:v 1 ] ;
     fhir:max [ fhir:v "1" ] ;
     fhir:documentation [ fhir:v "An Identifier for the other Client.  As system|value." ] ;
     fhir:type [ fhir:v "string" ]
  ] [
     fhir:name [ fhir:v "unlink" ] ;
     fhir:use [ fhir:v "in" ] ;
     fhir:min [ fhir:v 0 ] ;
     fhir:max [ fhir:v "1" ] ;
     fhir:documentation [ fhir:v "Indicate that the server should 'unlink' patientTwo from patientOne.  Client one is not the same individual as Client two.  Default is false when not present." ] ;
     fhir:type [ fhir:v "boolean" ]
  ] [
     fhir:name [ fhir:v "outcome" ] ;
     fhir:use [ fhir:v "out" ] ;
     fhir:min [ fhir:v 1 ] ;
     fhir:max [ fhir:v "1" ] ;
     fhir:documentation [ fhir:v "An Operation Outcome with description of results." ] ;
     fhir:type [ fhir:v "OperationOutcome" ]
  ] ) . # 

# -------------------------------------------------------------------------------------

