Aotearoa Immunisation Register (AIR) FHIR Implementation Guide
1.31.0 - ci-build New Zealand

Aotearoa Immunisation Register (AIR) FHIR Implementation Guide - Local Development build (v1.31.0) built by the FHIR (HL7® FHIR® Standard) Build Tools. See the Directory of published versions

## : AIR FHIR Server Capability Statement - TTL Representation

Draft as of 2023-02-14

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 -------------------------------------------------------------------

    <http://hl7.org/fhir/CapabilityStatement/AIRCapabilityStatement> a fhir:CapabilityStatement ;
      fhir:nodeRole fhir:treeRoot ;
      fhir:Resource.id [ fhir:value "AIRCapabilityStatement"] ;
      fhir:DomainResource.text [
         fhir:Narrative.status [ fhir:value "extensions" ] ;
         fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: CapabilityStatement AIRCapabilityStatement</b></p><a name=\"AIRCapabilityStatement\"> </a><a name=\"hcAIRCapabilityStatement\"> </a><h2 id=\"title\">AIR FHIR Server Capability Statement</h2><ul><li>Implementation Guide Version: 1.31.0 </li><li>FHIR Version: 4.0.1 </li><li>Supported Formats: <code>json</code></li><li>Published on: 2023-02-14 </li><li>Published by: Te Whatu Ora </li></ul><blockquote class=\"impl-note\"><p><strong>Note to Implementers: FHIR Capabilities</strong></p><p>Any FHIR capability may be 'allowed' by the system unless explicitly marked as 'SHALL NOT'. A few items are marked as MAY in the Implementation Guide to highlight their potential relevance to the use case.</p></blockquote><h2 id=\"rest\">FHIR RESTful Capabilities</h2><div class=\"panel panel-default\"><div class=\"panel-heading\"><h3 id=\"mode1\" class=\"panel-title\">Mode: <code>server</code></h3></div><div class=\"panel-body\"><div class=\"lead\"><em>Security</em></div><div class=\"row\"><div class=\"col-lg-6\">Enable CORS: yes</div><div class=\"col-lg-6\">Security services supported: <code>OAuth</code></div></div><div class=\"lead\"><em>Summary of System-wide Interactions</em></div><ul><li>Supports the <code>transaction</code>interaction.</li></ul><div class=\"row\"><div class=\"col-12\"><span class=\"lead\">Summary of System-wide Operations</span><table class=\"table table-condensed table-hover\"><thead><tr><th>Conformance</th><th>Operation</th><th>Documentation</th></tr></thead><tbody><tr><td><b>SHALL</b></td><td>$process-message</td><td><div><p>POST| [base]/$process-message| http://hl7.org/fhir/OperationDefinition/MessageHeader-process-message| system/MessageHeader.u</p>\n</div></td></tr></tbody></table></div></div></div></div><h3 id=\"resourcesCap1\">Capabilities by Resource/Profile</h3><h4 id=\"resourcesSummary1\">Summary</h4><p>The summary table lists the resources that are part of this configuration, and for each resource it lists:</p><ul><li>The relevant profiles (if any)</li><li>The interactions supported by each resource (<b><span class=\"bg-info\">R</span></b>ead, <b><span class=\"bg-info\">S</span></b>earch, <b><span class=\"bg-info\">U</span></b>pdate, and <b><span class=\"bg-info\">C</span></b>reate, are always shown, while <b><span class=\"bg-info\">VR</span></b>ead, <b><span class=\"bg-info\">P</span></b>atch, <b><span class=\"bg-info\">D</span></b>elete, <b><span class=\"bg-info\">H</span></b>istory on <b><span class=\"bg-info\">I</span></b>nstance, or <b><span class=\"bg-info\">H</span></b>istory on <b><span class=\"bg-info\">T</span></b>ype are only present if at least one of the resources has support for them.</li><li><span>The required, recommended, and some optional search parameters (if any). </span></li><li>The linked resources enabled for <code>_include</code></li><li>The other resources enabled for <code>_revinclude</code></li><li>The operations on the resource (if any)</li></ul><div class=\"table-responsive\"><table class=\"table table-condensed table-hover\"><thead><tr><th><b>Resource Type</b></th><th><b>Profile</b></th><th class=\"text-center\"><b title=\"GET a resource (read interaction)\">R</b></th><th class=\"text-center\"><b title=\"GET all set of resources of the type (search interaction)\">S</b></th><th class=\"text-center\"><b title=\"PUT a new resource version (update interaction)\">U</b></th><th class=\"text-center\"><b title=\"POST a new resource (create interaction)\">C</b></th><th class=\"text-center\"><b title=\"GET changes to a resource (history interaction on instance)\">H-I</b></th><th><b title=\"Required and recommended search parameters\">Searches</b></th><th><code><b>_include</b></code></th><th><code><b>_revinclude</b></code></th><th><b>Operations</b></th></tr></thead><tbody><tr><td><a href=\"#Immunization1-1\">Immunization</a></td><td><a href=\"StructureDefinition-air-immunization.html\">https://standards.digital.health.nz/fhir/air/StructureDefinition/air-immunization</a></td><td class=\"text-center\">y</td><td class=\"text-center\"/><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td class=\"text-center\">y</td><td>patient, protocolApplied.targetDisease, status-reason:not-in, status:not-in, data-quality</td><td><code>*</code>, <code>Immunization.patient</code>, <code>Immunization.performer.actor</code>, <code>Immunization.location</code></td><td/><td><code>$upsert</code>, <code>$bulk-update</code></td></tr><tr><td><a href=\"#Patient1-2\">Patient</a></td><td><a href=\"StructureDefinition-air-patient.html\">https://standards.digital.health.nz/fhir/air/StructureDefinition/air-patient</a></td><td class=\"text-center\">y</td><td class=\"text-center\"/><td class=\"text-center\"/><td class=\"text-center\"/><td class=\"text-center\"/><td/><td/><td/><td><code>$update-state</code>, <code>$reassign-schedules</code>, <code>$patient-history</code></td></tr></tbody></table></div><hr/><div class=\"panel panel-default\"><div class=\"panel-heading\"><h4 id=\"Immunization1-1\" class=\"panel-title\"><span style=\"float: right;\">Resource Conformance: unspecified </span>Immunization</h4></div><div class=\"panel-body\"><div class=\"container\"><div class=\"row\"><div class=\"col-lg-6\"><span class=\"lead\">Base System Profile</span><br/><a href=\"StructureDefinition-air-immunization.html\">AIR Immunization</a></div><div class=\"col-lg-3\"><span class=\"lead\">Profile Conformance</span><br/><b>SHALL</b></div><div class=\"col-lg-3\"><span class=\"lead\">Reference Policy</span><br/></div></div><p/><div class=\"row\"><div class=\"col-lg-6\"><span class=\"lead\">Interaction summary</span><br/><ul><li>Supports <br/><code>create</code><div><p>POST|[base]/Immunization/|The \"create\" operation is used to create a new immunisation event. This method performs  validation checks to ensure that the event is valid before it is created.</p>\n<pre><code>    Returns either the created Immunization record or if there were any issues with the create, the  response will contain an OperationOutcome resource array. The OperationOutcome resource has an informational issue indicating that the create operation failed. The issue array of the OperationOutcome resource would contain additional issues with appropriate severity and code values.|system/Immunization.c\n</code></pre>\n</div><code>read</code><div><p>GET|[base]/Immunization/[id]|The \"read\" operation is used to read an immunisation event. This method takes an immunisation event id and returns back the FHIR resource for the immunization event.|system/Immunization.r</p>\n</div><code>update</code><div><p>PUT|[base]/Immunization/[id]| The \"update\" operation is used to update an existing immunisation event. This method checks if the immunisation event with the given ID exists, and if it does, it updates the event with the new details provided. The method also performs validation checks to ensure that the updated event is valid before it is saved.</p>\n<pre><code>    Returns either the the updated immunisation record or an OperationOutcome if there were any issues with the update.\n\n    On success - returns the updated immunisation record. data quality issues will be identified and sent as part of the response in the meta section of the resource.\n\n    On Fail - if there were any issues with the update, the response will contain an OperationOutcome resource array. The OperationOutcome resource has an informational issue indicating that the update operation failed. The issue array of the OperationOutcome resource would contain additional issues with appropriate severity and code values.|system/Immunization.u\n</code></pre>\n</div><code>history-instance</code><div><p>GET|[base]/Immunization/[id]_history|The _history interaction is used to return all the versions of an immunization event including the data quality. This method takes an immsot_id and returns back the FHIR bundle, which is a collection of immunization event resources where each resource in the bundle represents a version.|system/Immunization.r, air-admin/Immunization.r</p>\n</div></li></ul></div></div><p/><div class=\"row\"><div class=\"col-lg-7\"><span class=\"lead\">Search Parameters</span><table class=\"table table-condensed table-hover\"><thead><tr><th>Conformance</th><th>Parameter</th><th>Type</th><th>Documentation</th></tr></thead><tbody><tr><td><b>SHALL</b></td><td>patient</td><td><code>reference</code></td><td><div><p>NHI number of the patient</p>\n</div></td></tr><tr><td><b>SHALL</b></td><td>protocolApplied.targetDisease</td><td><code>token</code></td><td><div><p>Vaccine-preventable disease being targeted by an immunisation.</p>\n</div></td></tr><tr><td><b>SHALL</b></td><td><a href=\"SearchParameter-Immunization-StatusReason.html\">status-reason:not-in</a></td><td><code>token</code></td><td><div><p>Exclude immunisation events with specified status reason codes</p>\n</div></td></tr><tr><td><b>SHALL</b></td><td><a href=\"SearchParameter-Immunization-Status.html\">status:not-in</a></td><td><code>token</code></td><td><div><p>Exclude immunisation events with specified statuses</p>\n</div></td></tr><tr><td><b>SHALL</b></td><td><a href=\"OperationDefinition-Data-quality.html\">data-quality</a></td><td><code>special</code></td><td><div><p>Query search for immunisation events with data quality issues. Restricted to admin users.</p>\n</div></td></tr></tbody></table></div><div class=\"col-lg-5\"><span class=\"lead\">Combined Search Parameters</span><table class=\"table table-condensed table-hover\"><thead><tr><th>Conformance</th><th>Parameters</th><th>Types</th></tr></thead><tbody><tr><td> </td><td>patient</td><td><code>reference</code></td></tr><tr><td> </td><td>patient(+protocolApplied.targetDisease+<a href=\"SearchParameter-Immunization-StatusReason.html\">status-reason:not-in</a>+<a href=\"SearchParameter-Immunization-Status.html\">status:not-in</a>)</td><td><code>reference</code>(+<code>token</code>+<code>token</code>+<code>token</code>)</td></tr></tbody></table></div></div><div class=\"row\"><div class=\"col-12\"><span class=\"lead\">Extended Operations</span><table class=\"table table-condensed table-hover\"><thead><tr><th>Conformance</th><th>Operation</th><th>Documentation</th></tr></thead><tbody><tr><td><b>SHALL</b></td><td><a href=\"OperationDefinition-Immunization-upsert.html\">$upsert</a></td><td><div><p>Update or add an immunisation event</p>\n</div></td></tr><tr><td><b>SHALL</b></td><td><a href=\"OperationDefinition-Immunization-bulk-update.html\">$bulk-update</a></td><td><div><p>Update or add immunisation events in bulk.</p>\n</div></td></tr></tbody></table></div></div></div></div></div><div class=\"panel panel-default\"><div class=\"panel-heading\"><h4 id=\"Patient1-2\" class=\"panel-title\"><span style=\"float: right;\">Resource Conformance: unspecified </span>Patient</h4></div><div class=\"panel-body\"><div class=\"container\"><div class=\"row\"><div class=\"col-lg-6\"><span class=\"lead\">Base System Profile</span><br/><a href=\"StructureDefinition-air-patient.html\">AIR Patient Profile</a></div><div class=\"col-lg-3\"><span class=\"lead\">Profile Conformance</span><br/><b>SHALL</b></div><div class=\"col-lg-3\"><span class=\"lead\">Reference Policy</span><br/></div></div><p/><div class=\"row\"><div class=\"col-lg-6\"><span class=\"lead\">Interaction summary</span><br/><ul><li>Supports <br/><code>read</code><div><p>GET|[base]/Patient/[id]|Read the current state of an ImmSOT Consumer. Consumer state held in ImmSOT is returned as a FHIR AIR Patient. When an optional header \"origin-nhi-version\" is included which contains the NHI version, the API will check if it is the same NHI version we have stored in ImmSoT database for the Consumer. If it is the same, we return the current data we have in ImmSoT database. If it is not the same, we do a Consumer sync with NHI and update the data we have in ImmSoT database and then return this updated data in the response.|system/Patient.r, air-test/Patient.r</p>\n</div></li></ul></div></div><p/><div class=\"row\"><div class=\"col-12\"><span class=\"lead\">Extended Operations</span><table class=\"table table-condensed table-hover\"><thead><tr><th>Conformance</th><th>Operation</th><th>Documentation</th></tr></thead><tbody><tr><td><b>SHALL</b></td><td><a href=\"OperationDefinition-Update-patient-state.html\">$update-state</a></td><td><div><p>Update the current state of an ImmSOT Consumer. Updates the Consumer state and/or sub status only. Input is the Consumer version previously read (used for operation optimistic locking) and the desired Consumer state. At least one of state and subStatus must be specified. If state or subStatus is not specified, then these attributes will not be updated. Setting subStatus to null will clear the current sub status. A 412 Preconditioned Failed will be returned if the version received in the payload does not match the server version.</p>\n</div></td></tr><tr><td><b>SHALL</b></td><td><a href=\"OperationDefinition-Reassign-patient-schedules.html\">$reassign-schedules</a></td><td><div><p>Reassign immunisation schedules for a patient. Cancels the existing schedules and then creates a new set of schedules based on the new onboarding date. Input is the new onboarding date.</p>\n</div></td></tr><tr><td><b>SHALL</b></td><td><a href=\"OperationDefinition-Patient-History.html\">$patient-history</a></td><td><div><p>Fetch all the versions of an ImmSOT Patient/Consumer.</p>\n</div></td></tr></tbody></table></div></div></div></div></div><h2 id=\"messaging\">FHIR Messaging Capabilities</h2><div class=\"panel panel-default\"><div class=\"panel-heading\"><h3 id=\"messaging_1\" class=\"panel-title\">Messaging Capability</h3></div><div class=\"panel-body\"><h4 id=\"msg_sm_1\">Supported Message(s)</h4><table class=\"table table-condensed table-hover\"><thead><tr><th>Mode</th><th>Definition</th></tr></thead><tbody><tr><td>sender</td><td><a href=\"MessageDefinition-UpdateImmunisationRequestMessageDefinition.html\">MessageDefinition[http://hl7.org.nz/fhir/MessageDefinition/UpdateImmunisationRequestMessageDefinition|1.31.0]</a></td></tr><tr><td>sender</td><td><a href=\"MessageDefinition-UpdateImmunisationResponseMessageDefinition.html\">MessageDefinition[http://hl7.org.nz/fhir/MessageDefinition/UpdateImmunisationResponsetMessageDefinition|1.31.0]</a></td></tr></tbody></table><br/></div></div></div>"
      ] ;
      fhir:CapabilityStatement.url [ fhir:value "https://standards.digital.health.nz/fhir/air/CapabilityStatement/AIRCapabilityStatement"] ;
      fhir:CapabilityStatement.version [ fhir:value "1.31.0"] ;
      fhir:CapabilityStatement.name [ fhir:value "AIRCapabilityStatement"] ;
      fhir:CapabilityStatement.title [ fhir:value "AIR FHIR Server Capability Statement"] ;
      fhir:CapabilityStatement.status [ fhir:value "draft"] ;
      fhir:CapabilityStatement.experimental [ fhir:value "false"^^xsd:boolean] ;
      fhir:CapabilityStatement.date [ fhir:value "2023-02-14"^^xsd:date] ;
      fhir:CapabilityStatement.publisher [ fhir:value "Te Whatu Ora"] ;
      fhir:CapabilityStatement.contact [
         fhir:index 0 ;
         fhir:ContactDetail.name [ fhir:value "Te Whatu Ora" ] ;
         fhir:ContactDetail.telecom [
           fhir:index 0 ;
           fhir:ContactPoint.system [ fhir:value "url" ] ;
           fhir:ContactPoint.value [ fhir:value "https://tewhatuora.govt.nz" ]
         ]
      ] ;
      fhir:CapabilityStatement.description [ fhir:value "The Aotearoa Immunisation Register (AIR) FHIR v4.0.1 API"] ;
      fhir:CapabilityStatement.jurisdiction [
         fhir:index 0 ;
         fhir:CodeableConcept.coding [
           fhir:index 0 ;
           fhir:Coding.system [ fhir:value "urn:iso:std:iso:3166" ] ;
           fhir:Coding.code [ fhir:value "US" ] ;
           fhir:Coding.display [ fhir:value "New Zealand" ]
         ]
      ] ;
      fhir:CapabilityStatement.kind [ fhir:value "instance"] ;
      fhir:CapabilityStatement.implementation [
         fhir:CapabilityStatement.implementation.description [ fhir:value "PROD - ImmSoT Service endpoint" ] ;
         fhir:CapabilityStatement.implementation.url [ fhir:value "https://air.api.digital.health.nz/v2/fhir" ]
      ] ;
      fhir:CapabilityStatement.fhirVersion [ fhir:value "4.0.1"] ;
      fhir:CapabilityStatement.format [
         fhir:value "json" ;
         fhir:index 0
      ] ;
      fhir:CapabilityStatement.rest [
         fhir:index 0 ;
         fhir:CapabilityStatement.rest.mode [ fhir:value "server" ] ;
         fhir:CapabilityStatement.rest.security [
           fhir:Element.extension [
             fhir:index 0 ;
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "token" ] ;
               fhir:Extension.valueUri [ fhir:value "https://auth.integration.covid19.health.nz/oauth2/token" ]
             ], [
               fhir:index 1 ;
               fhir:Extension.url [ fhir:value "authorize" ] ;
               fhir:Extension.valueUri [ fhir:value "https://auth.integration.covid19.health.nz/oauth2/authorize" ]
             ] ;
             fhir:Extension.url [ fhir:value "http://fhir-registry.smarthealthit.org/StructureDefinition/oauth-uris" ]
           ] ;
           fhir:CapabilityStatement.rest.security.cors [ fhir:value "true"^^xsd:boolean ] ;
           fhir:CapabilityStatement.rest.security.service [
             fhir:index 0 ;
             fhir:CodeableConcept.coding [
               fhir:index 0 ;
               fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/restful-security-service" ] ;
               fhir:Coding.code [ fhir:value "OAuth" ]
             ]
           ]
         ] ;
         fhir:CapabilityStatement.rest.resource [
           fhir:index 0 ;
           fhir:Element.extension [
             fhir:index 0 ;
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "required" ] ;
               fhir:Extension.valueString [ fhir:value "patient" ]
             ] ;
             fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" ]
           ], [
             fhir:index 1 ;
             fhir:Element.extension [
               fhir:index 0 ;
               fhir:Extension.url [ fhir:value "required" ] ;
               fhir:Extension.valueString [ fhir:value "patient" ]
             ], [
               fhir:index 1 ;
               fhir:Extension.url [ fhir:value "optional" ] ;
               fhir:Extension.valueString [ fhir:value "protocolApplied.targetDisease" ]
             ], [
               fhir:index 2 ;
               fhir:Extension.url [ fhir:value "optional" ] ;
               fhir:Extension.valueString [ fhir:value "status-reason:not-in" ]
             ], [
               fhir:index 3 ;
               fhir:Extension.url [ fhir:value "optional" ] ;
               fhir:Extension.valueString [ fhir:value "status:not-in" ]
             ] ;
             fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/capabilitystatement-search-parameter-combination" ]
           ] ;
           fhir:CapabilityStatement.rest.resource.type [ fhir:value "Immunization" ] ;
           fhir:CapabilityStatement.rest.resource.profile [
             fhir:value "https://standards.digital.health.nz/fhir/air/StructureDefinition/air-immunization" ;
             fhir:link <https://standards.digital.health.nz/fhir/air/StructureDefinition/air-immunization>
           ] ;
           fhir:CapabilityStatement.rest.resource.interaction [
             fhir:index 0 ;
             fhir:CapabilityStatement.rest.resource.interaction.code [ fhir:value "create" ] ;
             fhir:CapabilityStatement.rest.resource.interaction.documentation [ fhir:value "POST|[base]/Immunization/|The \"create\" operation is used to create a new immunisation event. This method performs  validation checks to ensure that the event is valid before it is created.  \n\n        Returns either the created Immunization record or if there were any issues with the create, the  response will contain an OperationOutcome resource array. The OperationOutcome resource has an informational issue indicating that the create operation failed. The issue array of the OperationOutcome resource would contain additional issues with appropriate severity and code values.|system/Immunization.c" ]
           ], [
             fhir:index 1 ;
             fhir:CapabilityStatement.rest.resource.interaction.code [ fhir:value "read" ] ;
             fhir:CapabilityStatement.rest.resource.interaction.documentation [ fhir:value "GET|[base]/Immunization/[id]|The \"read\" operation is used to read an immunisation event. This method takes an immunisation event id and returns back the FHIR resource for the immunization event.|system/Immunization.r" ]
           ], [
             fhir:index 2 ;
             fhir:CapabilityStatement.rest.resource.interaction.code [ fhir:value "update" ] ;
             fhir:CapabilityStatement.rest.resource.interaction.documentation [ fhir:value "PUT|[base]/Immunization/[id]| The \"update\" operation is used to update an existing immunisation event. This method checks if the immunisation event with the given ID exists, and if it does, it updates the event with the new details provided. The method also performs validation checks to ensure that the updated event is valid before it is saved.\n\n        Returns either the the updated immunisation record or an OperationOutcome if there were any issues with the update.\n\n        On success - returns the updated immunisation record. data quality issues will be identified and sent as part of the response in the meta section of the resource.\n\n        On Fail - if there were any issues with the update, the response will contain an OperationOutcome resource array. The OperationOutcome resource has an informational issue indicating that the update operation failed. The issue array of the OperationOutcome resource would contain additional issues with appropriate severity and code values.|system/Immunization.u" ]
           ], [
             fhir:index 3 ;
             fhir:CapabilityStatement.rest.resource.interaction.code [ fhir:value "history-instance" ] ;
             fhir:CapabilityStatement.rest.resource.interaction.documentation [ fhir:value "GET|[base]/Immunization/[id]_history|The _history interaction is used to return all the versions of an immunization event including the data quality. This method takes an immsot_id and returns back the FHIR bundle, which is a collection of immunization event resources where each resource in the bundle represents a version.|system/Immunization.r, air-admin/Immunization.r" ]
           ] ;
           fhir:CapabilityStatement.rest.resource.versioning [ fhir:value "versioned" ] ;
           fhir:CapabilityStatement.rest.resource.readHistory [ fhir:value "false"^^xsd:boolean ] ;
           fhir:CapabilityStatement.rest.resource.updateCreate [ fhir:value "false"^^xsd:boolean ] ;
           fhir:CapabilityStatement.rest.resource.conditionalCreate [ fhir:value "false"^^xsd:boolean ] ;
           fhir:CapabilityStatement.rest.resource.conditionalRead [ fhir:value "not-supported" ] ;
           fhir:CapabilityStatement.rest.resource.conditionalUpdate [ fhir:value "false"^^xsd:boolean ] ;
           fhir:CapabilityStatement.rest.resource.conditionalDelete [ fhir:value "not-supported" ] ;
           fhir:CapabilityStatement.rest.resource.searchInclude [
             fhir:value "*" ;
             fhir:index 0
           ], [
             fhir:value "Immunization.patient" ;
             fhir:index 1
           ], [
             fhir:value "Immunization.performer.actor" ;
             fhir:index 2
           ], [
             fhir:value "Immunization.location" ;
             fhir:index 3
           ] ;
           fhir:CapabilityStatement.rest.resource.searchParam [
             fhir:index 0 ;
             fhir:CapabilityStatement.rest.resource.searchParam.name [ fhir:value "patient" ] ;
             fhir:CapabilityStatement.rest.resource.searchParam.definition [
               fhir:value "http://hl7.org/fhir/SearchParameter/patient" ;
               fhir:link <http://hl7.org/fhir/SearchParameter/patient>
             ] ;
             fhir:CapabilityStatement.rest.resource.searchParam.type [ fhir:value "reference" ] ;
             fhir:CapabilityStatement.rest.resource.searchParam.documentation [ fhir:value "NHI number of the patient" ]
           ], [
             fhir:index 1 ;
             fhir:CapabilityStatement.rest.resource.searchParam.name [ fhir:value "protocolApplied.targetDisease" ] ;
             fhir:CapabilityStatement.rest.resource.searchParam.definition [
               fhir:value "http://hl7.org/fhir/SearchParameter/target-disease" ;
               fhir:link <http://hl7.org/fhir/SearchParameter/target-disease>
             ] ;
             fhir:CapabilityStatement.rest.resource.searchParam.type [ fhir:value "token" ] ;
             fhir:CapabilityStatement.rest.resource.searchParam.documentation [ fhir:value "Vaccine-preventable disease being targeted by an immunisation." ]
           ], [
             fhir:index 2 ;
             fhir:CapabilityStatement.rest.resource.searchParam.name [ fhir:value "status-reason:not-in" ] ;
             fhir:CapabilityStatement.rest.resource.searchParam.definition [
               fhir:value "http://hl7.org/fhir/SearchParameter/Immunization-StatusReason" ;
               fhir:link <http://hl7.org/fhir/SearchParameter/Immunization-StatusReason>
             ] ;
             fhir:CapabilityStatement.rest.resource.searchParam.type [ fhir:value "token" ] ;
             fhir:CapabilityStatement.rest.resource.searchParam.documentation [ fhir:value "Exclude immunisation events with specified status reason codes" ]
           ], [
             fhir:index 3 ;
             fhir:CapabilityStatement.rest.resource.searchParam.name [ fhir:value "status:not-in" ] ;
             fhir:CapabilityStatement.rest.resource.searchParam.definition [
               fhir:value "http://hl7.org/fhir/SearchParameter/Immunization-Status" ;
               fhir:link <http://hl7.org/fhir/SearchParameter/Immunization-Status>
             ] ;
             fhir:CapabilityStatement.rest.resource.searchParam.type [ fhir:value "token" ] ;
             fhir:CapabilityStatement.rest.resource.searchParam.documentation [ fhir:value "Exclude immunisation events with specified statuses" ]
           ], [
             fhir:index 4 ;
             fhir:CapabilityStatement.rest.resource.searchParam.name [ fhir:value "data-quality" ] ;
             fhir:CapabilityStatement.rest.resource.searchParam.definition [
               fhir:value "https://standards.digital.health.nz/fhir/air/StructureDefinition/immunization-data-quality" ;
               fhir:link <https://standards.digital.health.nz/fhir/air/StructureDefinition/immunization-data-quality>
             ] ;
             fhir:CapabilityStatement.rest.resource.searchParam.type [ fhir:value "special" ] ;
             fhir:CapabilityStatement.rest.resource.searchParam.documentation [ fhir:value "Query search for immunisation events with data quality issues. Restricted to admin users." ]
           ] ;
           fhir:CapabilityStatement.rest.resource.operation [
             fhir:index 0 ;
             fhir:CapabilityStatement.rest.resource.operation.name [ fhir:value "upsert" ] ;
             fhir:CapabilityStatement.rest.resource.operation.definition [
               fhir:value "https://standards.digital.health.nz/fhir/air/OperationDefinition/immunization-upsert" ;
               fhir:link <https://standards.digital.health.nz/fhir/air/OperationDefinition/immunization-upsert>
             ] ;
             fhir:CapabilityStatement.rest.resource.operation.documentation [ fhir:value "Update or add an immunisation event" ]
           ], [
             fhir:index 1 ;
             fhir:CapabilityStatement.rest.resource.operation.name [ fhir:value "bulk-update" ] ;
             fhir:CapabilityStatement.rest.resource.operation.definition [
               fhir:value "https://standards.digital.health.nz/fhir/air/OperationDefinition/immunization-bulk-update" ;
               fhir:link <https://standards.digital.health.nz/fhir/air/OperationDefinition/immunization-bulk-update>
             ] ;
             fhir:CapabilityStatement.rest.resource.operation.documentation [ fhir:value "Update or add immunisation events in bulk." ]
           ]
         ], [
           fhir:index 1 ;
           fhir:CapabilityStatement.rest.resource.type [ fhir:value "Patient" ] ;
           fhir:CapabilityStatement.rest.resource.profile [
             fhir:value "https://standards.digital.health.nz/fhir/air/StructureDefinition/air-patient" ;
             fhir:link <https://standards.digital.health.nz/fhir/air/StructureDefinition/air-patient>
           ] ;
           fhir:CapabilityStatement.rest.resource.interaction [
             fhir:index 0 ;
             fhir:CapabilityStatement.rest.resource.interaction.code [ fhir:value "read" ] ;
             fhir:CapabilityStatement.rest.resource.interaction.documentation [ fhir:value "GET|[base]/Patient/[id]|Read the current state of an ImmSOT Consumer. Consumer state held in ImmSOT is returned as a FHIR AIR Patient. When an optional header \"origin-nhi-version\" is included which contains the NHI version, the API will check if it is the same NHI version we have stored in ImmSoT database for the Consumer. If it is the same, we return the current data we have in ImmSoT database. If it is not the same, we do a Consumer sync with NHI and update the data we have in ImmSoT database and then return this updated data in the response.|system/Patient.r, air-test/Patient.r" ]
           ] ;
           fhir:CapabilityStatement.rest.resource.operation [
             fhir:index 0 ;
             fhir:CapabilityStatement.rest.resource.operation.name [ fhir:value "update-state" ] ;
             fhir:CapabilityStatement.rest.resource.operation.definition [
               fhir:value "https://standards.digital.health.nz/fhir/air/OperationDefinition/update-patient-state" ;
               fhir:link <https://standards.digital.health.nz/fhir/air/OperationDefinition/update-patient-state>
             ] ;
             fhir:CapabilityStatement.rest.resource.operation.documentation [ fhir:value "Update the current state of an ImmSOT Consumer. Updates the Consumer state and/or sub status only. Input is the Consumer version previously read (used for operation optimistic locking) and the desired Consumer state. At least one of state and subStatus must be specified. If state or subStatus is not specified, then these attributes will not be updated. Setting subStatus to null will clear the current sub status. A 412 Preconditioned Failed will be returned if the version received in the payload does not match the server version." ]
           ], [
             fhir:index 1 ;
             fhir:CapabilityStatement.rest.resource.operation.name [ fhir:value "reassign-schedules" ] ;
             fhir:CapabilityStatement.rest.resource.operation.definition [
               fhir:value "https://standards.digital.health.nz/fhir/air/OperationDefinition/reassign-patient-schedules" ;
               fhir:link <https://standards.digital.health.nz/fhir/air/OperationDefinition/reassign-patient-schedules>
             ] ;
             fhir:CapabilityStatement.rest.resource.operation.documentation [ fhir:value "Reassign immunisation schedules for a patient. Cancels the existing schedules and then creates a new set of schedules based on the new onboarding date. Input is the new onboarding date." ]
           ], [
             fhir:index 2 ;
             fhir:CapabilityStatement.rest.resource.operation.name [ fhir:value "patient-history" ] ;
             fhir:CapabilityStatement.rest.resource.operation.definition [
               fhir:value "https://standards.digital.health.nz/fhir/air/OperationDefinition/patient-history" ;
               fhir:link <https://standards.digital.health.nz/fhir/air/OperationDefinition/patient-history>
             ] ;
             fhir:CapabilityStatement.rest.resource.operation.documentation [ fhir:value "Fetch all the versions of an ImmSOT Patient/Consumer." ]
           ]
         ] ;
         fhir:CapabilityStatement.rest.interaction [
           fhir:index 0 ;
           fhir:CapabilityStatement.rest.interaction.code [ fhir:value "transaction" ]
         ] ;
         fhir:CapabilityStatement.rest.operation [
           fhir:index 0 ;
           fhir:CapabilityStatement.rest.resource.operation.name [ fhir:value "process-message" ] ;
           fhir:CapabilityStatement.rest.resource.operation.definition [
             fhir:value "http://hl7.org/fhir/OperationDefinition/MessageHeader-process-message" ;
             fhir:link <http://hl7.org/fhir/OperationDefinition/MessageHeader-process-message>
           ] ;
           fhir:CapabilityStatement.rest.resource.operation.documentation [ fhir:value "POST| [base]/$process-message| http://hl7.org/fhir/OperationDefinition/MessageHeader-process-message| system/MessageHeader.u" ]
         ]
      ] ;
      fhir:CapabilityStatement.messaging [
         fhir:index 0 ;
         fhir:CapabilityStatement.messaging.supportedMessage [
           fhir:index 0 ;
           fhir:CapabilityStatement.messaging.supportedMessage.mode [ fhir:value "sender" ] ;
           fhir:CapabilityStatement.messaging.supportedMessage.definition [
             fhir:value "http://hl7.org.nz/fhir/MessageDefinition/UpdateImmunisationRequestMessageDefinition" ;
             fhir:link <http://hl7.org.nz/fhir/MessageDefinition/UpdateImmunisationRequestMessageDefinition>
           ]
         ], [
           fhir:index 1 ;
           fhir:CapabilityStatement.messaging.supportedMessage.mode [ fhir:value "sender" ] ;
           fhir:CapabilityStatement.messaging.supportedMessage.definition [
             fhir:value "http://hl7.org.nz/fhir/MessageDefinition/UpdateImmunisationResponsetMessageDefinition" ;
             fhir:link <http://hl7.org.nz/fhir/MessageDefinition/UpdateImmunisationResponsetMessageDefinition>
           ]
         ]
      ] .

    # - ontology header ------------------------------------------------------------

    <http://hl7.org/fhir/CapabilityStatement/AIRCapabilityStatement.ttl> a owl:Ontology ;
      owl:imports fhir:fhir.ttl ;
      owl:versionIRI <http://build.fhir.org/CapabilityStatement/AIRCapabilityStatement.ttl> .