@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.au/fhir/Patient/DateAccuracyIndicatorAAUexample1> a fhir:Patient ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "DateAccuracyIndicatorAAUexample1"] ; # 
  fhir:text [
     fhir:status [ fhir:v "additional" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n            <p>This example demonstrates birth date and deceased date with an accurate day, month and unknown year.</p>\n            <p>Note that \"0000-08-23\" is a NOT a valid FHIR date.</p>\n            <p>Details include:</p>\n            <ul>\n                <li>A valid FHIR date example for birth date and deceased date is \"2004-08-23” but not \"0000-08-23\".</li>\n                <li>A date accuracy indicator of \"AAU\" indicates that day and month are accurate but year is unknown.</li>\n                <li>When a code value contains \"A\", the corresponding date components (individual or combination) for birth or deceased dates must be accurate.</li>\n                <li>When a code value contains \"U\", the corresponding date components (individual or combination) for birth or deceased dates must be ignored.</li>\n            </ul>\n        </div>"^^rdf:XMLLiteral ]
  ] ; # 
  fhir:birthDate [
     fhir:v "2004-08-23"^^xsd:date ;
     fhir:extension ( [
       fhir:url [
         fhir:v "http://hl7.org.au/fhir/StructureDefinition/date-accuracy-indicator"^^xsd:anyURI ;
         fhir:l <http://hl7.org.au/fhir/StructureDefinition/date-accuracy-indicator>
       ] ;
       fhir:value [
         a fhir:Coding ;
         fhir:system [
           fhir:v "https://healthterminologies.gov.au/fhir/CodeSystem/date-accuracy-indicator-1"^^xsd:anyURI ;
           fhir:l <https://healthterminologies.gov.au/fhir/CodeSystem/date-accuracy-indicator-1>
         ] ;
         fhir:code [ fhir:v "AAU" ] ;
         fhir:display [ fhir:v "Day and month are accurate, year is unknown" ]
       ] #  this part of the extension states that date of birth is partially accurate 
     ] )
  ] ; # 
  fhir:deceased [
     a fhir:DateTime ;
     fhir:v "2004-08-23T13:42:00+10:00"^^xsd:dateTime ;
     fhir:extension ( [
       fhir:url [
         fhir:v "http://hl7.org.au/fhir/StructureDefinition/date-accuracy-indicator"^^xsd:anyURI ;
         fhir:l <http://hl7.org.au/fhir/StructureDefinition/date-accuracy-indicator>
       ] ;
       fhir:value [
         a fhir:Coding ;
         fhir:system [
           fhir:v "https://healthterminologies.gov.au/fhir/CodeSystem/date-accuracy-indicator-1"^^xsd:anyURI ;
           fhir:l <https://healthterminologies.gov.au/fhir/CodeSystem/date-accuracy-indicator-1>
         ] ;
         fhir:code [ fhir:v "AAU" ] ;
         fhir:display [ fhir:v "Day and month are accurate, year is unknown" ]
       ] #  this part of the extension states that deceased date is partially accurate 
     ] )
  ] . # 

# -------------------------------------------------------------------------------------

