Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing datatype for FHIR primitive types #117

Closed
ericprud opened this issue Jun 2, 2023 · 3 comments · Fixed by HL7/kindling#148
Closed

missing datatype for FHIR primitive types #117

ericprud opened this issue Jun 2, 2023 · 3 comments · Fixed by HL7/kindling#148
Assignees
Labels
Turtle FHIR specification Turtle examples

Comments

@ericprud
Copy link
Member

ericprud commented Jun 2, 2023

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
Copy link
Contributor

This is partially fixed by HL7/kindling#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 ]

@balhoff
Copy link
Contributor

balhoff commented Oct 24, 2024

@dbooth-boston you can assign me.

@dbooth-boston
Copy link
Contributor

Closing as fixed in #117

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Turtle FHIR specification Turtle examples
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants