@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 -------------------------------------------------------------------

<https://haau3.com/fhir/Bundle/pharmacy-benefits-response-non-phi-not-available> a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "pharmacy-benefits-response-non-phi-not-available"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-response-bundle-non-phi|2.0.0-ballot" ;
       fhir:index 0 ;
       fhir:link <http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-response-bundle-non-phi|2.0.0-ballot>
     ]
  ] ;
  fhir:Bundle.type [ fhir:value "message"] ;
  fhir:Bundle.timestamp [ fhir:value "2026-10-20T14:00:01Z"^^xsd:dateTime] ;
  fhir:Bundle.entry [
     fhir:index 0 ;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:uuid:25b3cf12-0db4-40e6-8180-db3522cc34ce" ] ;
     fhir:Bundle.entry.resource <urn:uuid:25b3cf12-0db4-40e6-8180-db3522cc34ce>
  ], [
     fhir:index 1 ;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:uuid:6a32a1ef-940f-4d8c-8bb1-3085bbc45b74" ] ;
     fhir:Bundle.entry.resource <urn:uuid:6a32a1ef-940f-4d8c-8bb1-3085bbc45b74>
  ] .

<urn:uuid:25b3cf12-0db4-40e6-8180-db3522cc34ce> a fhir:MessageHeader ;
  fhir:Resource.id [ fhir:value "25b3cf12-0db4-40e6-8180-db3522cc34ce"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-response-messageheader-non-phi|2.0.0-ballot" ;
       fhir:index 0 ;
       fhir:link <http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-response-messageheader-non-phi|2.0.0-ballot>
     ]
  ] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"MessageHeader_25b3cf12-0db4-40e6-8180-db3522cc34ce\"> </a><p class=\"res-header-id\"><b>Generated Narrative: MessageHeader 25b3cf12-0db4-40e6-8180-db3522cc34ce</b></p><a name=\"25b3cf12-0db4-40e6-8180-db3522cc34ce\"> </a><a name=\"hc25b3cf12-0db4-40e6-8180-db3522cc34ce\"> </a><div style=\"display: inline-block; background-color: #fbffeb; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <code>http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-response-messageheader-non-phi|2.0.0-ballot</code></p></div><p><b>event</b>: rtpbc-event-type: rtpbc-response-non-phi (RTPBC Non-PHI Response)</p><h3>Sources</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Name</b></td><td><b>Endpoint</b></td></tr><tr><td style=\"display: none\">*</td><td>haau3 Pharmacy Benefits</td><td><a href=\"https://api.haau3.com/v1/fhir/r4\">https://api.haau3.com/v1/fhir/r4</a></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>non-phi-request</td><td>OK</td></tr></table><p><b>focus</b>: <a href=\"Bundle-pharmacy-benefits-response-non-phi-not-available.html#urn-uuid-6a32a1ef-940f-4d8c-8bb1-3085bbc45b74\">ClaimResponse: identifier = 6a32a1ef-940f-4d8c-8bb1-3085bbc45b74; status = active; type = Pharmacy; use = predetermination; created = 2026-10-20 14:00:01+0000; outcome = error; disposition = No source that answers this request is available to this caller.</a></p><p><b>definition</b>: <code>http://hl7.org/fhir/us/carin-rtpbc/MessageDefinition/rtpbc-response-non-phi</code></p></div>"
  ] ;
  fhir:MessageHeader.eventCoding [
     fhir:Coding.system [ fhir:value "http://hl7.org/fhir/us/carin-rtpbc/CodeSystem/rtpbc-event-type" ] ;
     fhir:Coding.code [ fhir:value "rtpbc-response-non-phi" ] ;
     fhir:Coding.display [ fhir:value "RTPBC Non-PHI Response" ]
  ] ;
  fhir:MessageHeader.source [
     fhir:MessageHeader.source.name [ fhir:value "haau3 Pharmacy Benefits" ] ;
     fhir:MessageHeader.source.endpoint [ fhir:value "https://api.haau3.com/v1/fhir/r4" ]
  ] ;
  fhir:MessageHeader.response [
     fhir:MessageHeader.response.identifier [ fhir:value "non-phi-request" ] ;
     fhir:MessageHeader.response.code [ fhir:value "ok" ]
  ] ;
  fhir:MessageHeader.focus [
     fhir:index 0 ;
     fhir:Reference.reference [ fhir:value "urn:uuid:6a32a1ef-940f-4d8c-8bb1-3085bbc45b74" ]
  ] ;
  fhir:MessageHeader.definition [
     fhir:value "http://hl7.org/fhir/us/carin-rtpbc/MessageDefinition/rtpbc-response-non-phi" ;
     fhir:link <http://hl7.org/fhir/us/carin-rtpbc/MessageDefinition/rtpbc-response-non-phi>
  ] .

<urn:uuid:6a32a1ef-940f-4d8c-8bb1-3085bbc45b74> a fhir:ClaimResponse ;
  fhir:Resource.id [ fhir:value "6a32a1ef-940f-4d8c-8bb1-3085bbc45b74"] ;
  fhir:Resource.meta [
     fhir:Meta.profile [
       fhir:value "http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-response-claimresponse-non-phi|2.0.0-ballot" ;
       fhir:index 0 ;
       fhir:link <http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-response-claimresponse-non-phi|2.0.0-ballot>
     ]
  ] ;
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ] ;
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"ClaimResponse_6a32a1ef-940f-4d8c-8bb1-3085bbc45b74\"> </a><p class=\"res-header-id\"><b>Generated Narrative: ClaimResponse 6a32a1ef-940f-4d8c-8bb1-3085bbc45b74</b></p><a name=\"6a32a1ef-940f-4d8c-8bb1-3085bbc45b74\"> </a><a name=\"hc6a32a1ef-940f-4d8c-8bb1-3085bbc45b74\"> </a><div style=\"display: inline-block; background-color: #fbffeb; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <code>http://hl7.org/fhir/us/carin-rtpbc/StructureDefinition/rtpbc-response-claimresponse-non-phi|2.0.0-ballot</code></p></div><p><b>identifier</b>: 6a32a1ef-940f-4d8c-8bb1-3085bbc45b74</p><p><b>status</b>: Active</p><p><b>type</b>: <span title=\"Codes:{http://terminology.hl7.org/CodeSystem/claim-type pharmacy}\">Pharmacy</span></p><p><b>use</b>: Predetermination</p><p><b>patient</b>: ?rref?</p><p><b>created</b>: 2026-10-20 14:00:01+0000</p><p><b>insurer</b>: ?rref?</p><p><b>request</b>: Identifier: price-check-0001</p><p><b>outcome</b>: Error</p><p><b>disposition</b>: No source that answers this request is available to this caller.</p><h3>Errors</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Code</b></td></tr><tr><td style=\"display: none\">*</td><td><span title=\"Codes:{https://haau3.com/fhir/CodeSystem/pharmacy-benefits-processing-code source-not-available-to-caller}\">Source not available to this caller</span></td></tr></table></div>"
  ] ;
  fhir:ClaimResponse.identifier [
     fhir:index 0 ;
     fhir:Identifier.value [ fhir:value "6a32a1ef-940f-4d8c-8bb1-3085bbc45b74" ]
  ] ;
  fhir:ClaimResponse.status [ fhir:value "active"] ;
  fhir:ClaimResponse.type [
     fhir:CodeableConcept.coding [
       fhir:index 0 ;
       fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/claim-type" ] ;
       fhir:Coding.code [ fhir:value "pharmacy" ] ;
       fhir:Coding.display [ fhir:value "Pharmacy" ]
     ]
  ] ;
  fhir:ClaimResponse.use [ fhir:value "predetermination"] ;
  fhir:ClaimResponse.patient [
     fhir:Element.extension [
       fhir:index 0 ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/data-absent-reason" ] ;
       fhir:Extension.valueCode [ fhir:value "masked" ]
     ]
  ] ;
  fhir:ClaimResponse.created [ fhir:value "2026-10-20T14:00:01Z"^^xsd:dateTime] ;
  fhir:ClaimResponse.insurer [
     fhir:Element.extension [
       fhir:index 0 ;
       fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/data-absent-reason" ] ;
       fhir:Extension.valueCode [ fhir:value "masked" ]
     ]
  ] ;
  fhir:ClaimResponse.request [
     fhir:Reference.identifier [
       fhir:Identifier.value [ fhir:value "price-check-0001" ]
     ]
  ] ;
  fhir:ClaimResponse.outcome [ fhir:value "error"] ;
  fhir:ClaimResponse.disposition [ fhir:value "No source that answers this request is available to this caller."] ;
  fhir:ClaimResponse.error [
     fhir:index 0 ;
     fhir:ClaimResponse.error.code [
       fhir:CodeableConcept.coding [
         fhir:index 0 ;
         fhir:Coding.system [ fhir:value "https://haau3.com/fhir/CodeSystem/pharmacy-benefits-processing-code" ] ;
         fhir:Coding.code [ fhir:value "source-not-available-to-caller" ] ;
         fhir:Coding.display [ fhir:value "Source not available to this caller" ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://haau3.com/fhir/Bundle/pharmacy-benefits-response-non-phi-not-available.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

