@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/fhir/us/davinci-pdex/Group/example-provider-consent-constrained-group> a fhir:Group ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "example-provider-consent-constrained-group"] ; # 
  fhir:meta [
     fhir:lastUpdated [ fhir:v "2024-12-16T10:00:00Z"^^xsd:dateTime ] ;
     fhir:profile ( [
       fhir:v "http://hl7.org/fhir/us/davinci-pdex/StructureDefinition/pdex-provider-member-no-match"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/us/davinci-pdex/StructureDefinition/pdex-provider-member-no-match>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h2>Provider Consent Constrained Group</h2><p>Members matched but opted out of Provider Access API data sharing.</p></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:contained ( [
     a fhir:Patient ;
     fhir:id [ fhir:v "prov-patient-3" ] ;
     fhir:meta [
       fhir:profile ( [
         fhir:v "http://hl7.org/fhir/us/davinci-hrex/StructureDefinition/hrex-patient-demographics"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/us/davinci-hrex/StructureDefinition/hrex-patient-demographics>
       ] )
     ] ;
     fhir:name ( [
       fhir:use [ fhir:v "official" ] ;
       fhir:family [ fhir:v "Williams" ] ;
       fhir:given ( [ fhir:v "Sarah" ] )
     ] ) ;
     fhir:gender [ fhir:v "female" ] ;
     fhir:birthDate [ fhir:v "1982-11-05"^^xsd:date ]
  ] ) ; # 
  fhir:identifier ( [
     fhir:system [
       fhir:v "http://example.org/payer/match-groups"^^xsd:anyURI ;
       fhir:l <http://example.org/payer/match-groups>
     ] ;
     fhir:value [ fhir:v "CCG-2024-12-16-001" ] ;
     fhir:assigner [
       fhir:display [ fhir:v "Example Payer" ]
     ]
  ] ) ; # 
  fhir:active [ fhir:v true] ; # 
  fhir:type [ fhir:v "person"] ; # 
  fhir:actual [ fhir:v true] ; # 
  fhir:code [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://hl7.org/fhir/us/davinci-pdex/CodeSystem/PdexMultiMemberMatchResultCS"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/us/davinci-pdex/CodeSystem/PdexMultiMemberMatchResultCS>
       ] ;
       fhir:code [ fhir:v "consentconstraint" ] ;
       fhir:display [ fhir:v "Consent Constraint" ]
     ] )
  ] ; # 
  fhir:managingEntity [
     fhir:identifier [
       fhir:system [
         fhir:v "http://hl7.org/fhir/sid/us-npi"^^xsd:anyURI ;
         fhir:l <http://hl7.org/fhir/sid/us-npi>
       ] ;
       fhir:value [ fhir:v "5555555555" ]
     ] ;
     fhir:display [ fhir:v "Example Payer Organization" ]
  ] ; # 
  fhir:member ( [
     fhir:entity [
       fhir:l <#prov-patient-3> ;
       fhir:extension ( [
         fhir:url [
           fhir:v "http://hl7.org/fhir/us/davinci-pdex/StructureDefinition/base-ext-match-parameters"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/us/davinci-pdex/StructureDefinition/base-ext-match-parameters>
         ] ;
         fhir:value [
           a fhir:Reference ;
           fhir:l <#prov-patient-3> ;
           fhir:reference [ fhir:v "#prov-patient-3" ]
         ]
       ] ) ;
       fhir:reference [ fhir:v "#prov-patient-3" ]
     ]
  ] ) . # 

# -------------------------------------------------------------------------------------

