w3c / hcls-fhir-rdf

Sketching out an RDF representation for FHIR
39 stars 15 forks source link

missing datatype for FHIR primitive types #117

Open ericprud opened 1 year ago

ericprud commented 1 year ago

Turtle filename codesystem-contact-point-use

FHIR Resource http://build.fhir.org/datatypes.html#code http://build.fhir.org/datatypes.html#date http://build.fhir.org/datatypes.html#instant http://build.fhir.org/datatypes.html#uri

ShEx shape @<code>~fhir:v @<date>~fhir:v @<instant>~fhir:v @<uri>~fhir:v

Description What the Turtle should be. Can express as diff à la:

   fhir:meta [
-     fhir:lastUpdated [ fhir:v "2023-05-26T00:17:51.868+00:00" ]
+     fhir:lastUpdated [ fhir:v "2023-05-26T00:17:51.868+00:00"^^xsd:dateTime ]
   ] ;
   …
-  fhir:url [ fhir:v "http://hl7.org/fhir/contact-point-use"] ;
+  fhir:url [ fhir:v "http://hl7.org/fhir/contact-point-use"^^xsd:anyURI] ;
   …
   fhir:text [
-     fhir:status [ fhir:v "generated" ]
+     fhir:status [ fhir:v "generated"^^xsd:token ]
   ] ;
   …
-  fhir:date [ fhir:v "2023-05-26T00:17:51+00:00"] ;
+  fhir:date [ fhir:v "2023-05-26T00:17:51+00:00"^^xsd:dateTime] ;
dbooth-boston commented 1 month ago

This is partially fixed by https://github.com/HL7/kindling/pull/148 . These parts are fixed:

+     fhir:lastUpdated [ fhir:v "2023-05-26T00:17:51.868+00:00"^^xsd:dateTime ]
+  fhir:url [ fhir:v "http://hl7.org/fhir/contact-point-use"^^xsd:anyURI] ;
+  fhir:date [ fhir:v "2023-05-26T00:17:51+00:00"^^xsd:dateTime] ;

But this one still needs the xsd:token type:

-     fhir:status [ fhir:v "generated" ]
+     fhir:status [ fhir:v "generated"^^xsd:token ]