@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> a fhir:Bundle ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:Resource.id [ fhir:value "pharmacy-benefits-response-non-phi"] ;
  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:cfe4fe76-8b70-4edc-af4b-7e2f8c25b3e8" ] ;
     fhir:Bundle.entry.resource <urn:uuid:cfe4fe76-8b70-4edc-af4b-7e2f8c25b3e8>
  ], [
     fhir:index 1 ;
     fhir:Bundle.entry.fullUrl [ fhir:value "urn:uuid:a7fb50aa-3ca5-47a1-96f8-67ec1e95546e" ] ;
     fhir:Bundle.entry.resource <urn:uuid:a7fb50aa-3ca5-47a1-96f8-67ec1e95546e>
  ] .

<urn:uuid:cfe4fe76-8b70-4edc-af4b-7e2f8c25b3e8> a fhir:MessageHeader ;
  fhir:Resource.id [ fhir:value "cfe4fe76-8b70-4edc-af4b-7e2f8c25b3e8"] ;
  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_cfe4fe76-8b70-4edc-af4b-7e2f8c25b3e8\"> </a><p class=\"res-header-id\"><b>Generated Narrative: MessageHeader cfe4fe76-8b70-4edc-af4b-7e2f8c25b3e8</b></p><a name=\"cfe4fe76-8b70-4edc-af4b-7e2f8c25b3e8\"> </a><a name=\"hccfe4fe76-8b70-4edc-af4b-7e2f8c25b3e8\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; 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.html#urn-uuid-a7fb50aa-3ca5-47a1-96f8-67ec1e95546e\">ClaimResponse: identifier = a7fb50aa-3ca5-47a1-96f8-67ec1e95546e; status = active; type = Pharmacy; use = predetermination; created = 2026-10-20 14:00:01+0000; outcome = error; disposition = No price source this service connects to returned a price for this request.</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:a7fb50aa-3ca5-47a1-96f8-67ec1e95546e" ]
  ] ;
  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:a7fb50aa-3ca5-47a1-96f8-67ec1e95546e> a fhir:ClaimResponse ;
  fhir:Resource.id [ fhir:value "a7fb50aa-3ca5-47a1-96f8-67ec1e95546e"] ;
  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_a7fb50aa-3ca5-47a1-96f8-67ec1e95546e\"> </a><p class=\"res-header-id\"><b>Generated Narrative: ClaimResponse a7fb50aa-3ca5-47a1-96f8-67ec1e95546e</b></p><a name=\"a7fb50aa-3ca5-47a1-96f8-67ec1e95546e\"> </a><a name=\"hca7fb50aa-3ca5-47a1-96f8-67ec1e95546e\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; 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>: a7fb50aa-3ca5-47a1-96f8-67ec1e95546e</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 price source this service connects to returned a price for this request.</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 no-price-source}\">No price source returned a price</span></td></tr></table></div>"
  ] ;
  fhir:ClaimResponse.identifier [
     fhir:index 0 ;
     fhir:Identifier.value [ fhir:value "a7fb50aa-3ca5-47a1-96f8-67ec1e95546e" ]
  ] ;
  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 price source this service connects to returned a price for this request."] ;
  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 "no-price-source" ] ;
         fhir:Coding.display [ fhir:value "No price source returned a price" ]
       ]
     ]
  ] .

# - ontology header ------------------------------------------------------------

<https://haau3.com/fhir/Bundle/pharmacy-benefits-response-non-phi.ttl> a owl:Ontology ;
  owl:imports fhir:fhir.ttl .

# -------------------------------------------------------------------------------------

