@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://hl7.org.nz/fhir/ig/nes/Bundle/34567> a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "34567"] ; # 
  fhir:meta [
     fhir:tag ( [
       fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v3-ProcessingID"^^xsd:anyURI ] ;
       fhir:code [ fhir:v "P" ]
     ] )
  ] ; # 
  fhir:type [ fhir:v "message"] ; # 
  fhir:entry ( [
     fhir:fullUrl [ fhir:v "34567"^^xsd:anyURI ] ;
     fhir:resource ( <34567> )
  ] [
     fhir:fullUrl [ fhir:v "OperationOutcome/success"^^xsd:anyURI ] ;
     fhir:resource ( <OperationOutcome/success> )
  ] ) . # 

<34567> a fhir:MessageHeader ;
  fhir:id [ fhir:v "123123123"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"MessageHeader_123123123\"> </a><p class=\"res-header-id\"><b>Generated Narrative: MessageHeader 123123123</b></p><a name=\"123123123\"> </a><a name=\"hc123123123\"> </a><a name=\"123123123-en-US\"> </a><p><b>event</b>: <a href=\"https://common-ig.hip.digital.health.nz/site/CodeSystem-nes-event-type-1.0.html#nes-event-type-1.0-FLS_ENROLMENT_NOMINATION_ACK\">NES Event Type FLS_ENROLMENT_NOMINATION_ACK</a>: GP Enrolment Nomination Acknowledgement</p><h3>Sources</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Name</b></td><td><b>Software</b></td><td><b>Endpoint</b></td></tr><tr><td style=\"display: none\">*</td><td>facid123</td><td>HSAP22222</td><td>pmsedi</td></tr></table><h3>Responses</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Identifier</b></td><td><b>Code</b></td></tr><tr><td style=\"display: none\">*</td><td>66778899</td><td>OK</td></tr></table><p><b>focus</b>: <a href=\"Bundle-34567.html#OperationOutcome_success\">Bundle: type = message</a></p></div>"^^rdf:XMLLiteral
  ] ; # 
  fhir:event [
     a fhir:Coding ;
     fhir:system [ fhir:v "https://standards.digital.health.nz/ns/nes-event-type"^^xsd:anyURI ] ;
     fhir:code [ fhir:v "FLS_ENROLMENT_NOMINATION_ACK" ]
  ] ; # 
  fhir:source [
     fhir:name [ fhir:v "facid123" ] ;
     fhir:software [ fhir:v "HSAP22222" ] ;
     fhir:endpoint [ fhir:v "pmsedi"^^xsd:anyURI ]
  ] ; # 
  fhir:response [
     fhir:identifier [ fhir:v "66778899" ] ;
     fhir:code [ fhir:v "ok" ]
  ] ; # 
  fhir:focus ( [
     fhir:link <http://hl7.org.nz/fhir/ig/nes/OperationOutcome/success> ;
     fhir:reference [ fhir:v "OperationOutcome/success" ]
  ] ) . # 

<OperationOutcome/success> a fhir:OperationOutcome ;
  fhir:id [ fhir:v "success"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"OperationOutcome_success\"> </a><p class=\"res-header-id\"><b>Generated Narrative: OperationOutcome success</b></p><a name=\"success\"> </a><a name=\"hcsuccess\"> </a><a name=\"success-en-US\"> </a><h3>Issues</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Severity</b></td><td><b>Code</b></td><td><b>Details</b></td><td><b>Diagnostics</b></td></tr><tr><td style=\"display: none\">*</td><td>Information</td><td>Informational Note</td><td><span title=\"Codes:{http://terminology.hl7.org/CodeSystem/v2-0008 AA}\">Original mode: Application Accept - Enhanced mode: Application acknowledgment: Accept</span></td><td>accepted</td></tr></table></div>"^^rdf:XMLLiteral
  ] ; # 
  fhir:issue ( [
     fhir:severity [ fhir:v "information" ] ;
     fhir:code [ fhir:v "informational" ] ;
     fhir:details [
       fhir:coding ( [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/v2-0008"^^xsd:anyURI ] ;
         fhir:code [ fhir:v "AA" ]
       ] )
     ] ;
     fhir:diagnostics [ fhir:v "accepted" ]
  ] ) . # 

# -------------------------------------------------------------------------------------

