@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/Coverage/CoverageCSC> a fhir:Coverage ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "CoverageCSC"] ; # 
  fhir:meta [
     fhir:profile ( [
       fhir:v "http://hl7.org.nz/fhir/StructureDefinition/NzCoverage"^^xsd:anyURI ;
       fhir:l <http://hl7.org.nz/fhir/StructureDefinition/NzCoverage>
     ] )
  ] ; # 
  fhir:text [
     fhir:status [ fhir:v "additional" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">Community Services Card for Raewyn Joseph<br/>NHI ZZZ0032<br/>CSC number 12345689<br/></div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:identifier ( [
     fhir:use [ fhir:v "official" ] ;
     fhir:system [
       fhir:v "https://standards.digital.health.nz/ns/csc-id"^^xsd:anyURI ;
       fhir:l <https://standards.digital.health.nz/ns/csc-id>
     ] ;
     fhir:value [ fhir:v "123456789" ]
  ] ) ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:type [
     fhir:coding ( [
       fhir:system [
         fhir:v "https://standards.digital.health.nz/ns/coverage-type-code"^^xsd:anyURI ;
         fhir:l <https://standards.digital.health.nz/ns/coverage-type-code>
       ] ;
       fhir:code [ fhir:v "csc" ] ;
       fhir:display [ fhir:v "Community Services Card" ]
     ] )
  ] ; # 
  fhir:beneficiary [
     fhir:l <http://hl7.org.nz/fhir/Patient/patient-dhb> ;
     fhir:reference [ fhir:v "Patient/patient-dhb" ]
  ] ; # 
  fhir:relationship [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/subscriber-relationship"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/subscriber-relationship>
       ] ;
       fhir:code [ fhir:v "self" ]
     ] )
  ] ; # 
  fhir:period [
     fhir:start [ fhir:v "2022-04-01"^^xsd:date ] ;
     fhir:end [ fhir:v "2023-04-01"^^xsd:date ]
  ] ; # 
  fhir:payor ( [
     fhir:l <http://hl7.org.nz/fhir/Organization/organization-moh> ;
     fhir:reference [ fhir:v "Organization/organization-moh" ]
  ] ) . # 

# -------------------------------------------------------------------------------------

