Top Banner
FHIR RDF and ShEx
16

FHIR RDF and ShEx · example.ttl.html • ShEx is available for all FHIR resources ... • Spot testing has been done using Eric Prud’hommeaux’s “Fancy ShEx Demo”

Jun 21, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: FHIR RDF and ShEx · example.ttl.html • ShEx is available for all FHIR resources ... • Spot testing has been done using Eric Prud’hommeaux’s “Fancy ShEx Demo”

FHIR RDF and ShEx

Page 2: FHIR RDF and ShEx · example.ttl.html • ShEx is available for all FHIR resources ... • Spot testing has been done using Eric Prud’hommeaux’s “Fancy ShEx Demo”

State of Affairs• RDF available for all FHIR examples in the latest build

• http://hl7-fhir.github.io/allergyintolerance-examples.html

• http://hl7-fhir.github.io/allergyintolerance-example.ttl.html

• ShEx is available for all FHIR resources

• http://hl7-fhir.github.io/allergyintolerance.shex.html

Page 3: FHIR RDF and ShEx · example.ttl.html • ShEx is available for all FHIR resources ... • Spot testing has been done using Eric Prud’hommeaux’s “Fancy ShEx Demo”

State of Affairs (continued)

• Grahame is working on integration of Jose Gayo’s Scala based ShEx validator into the FHIR test suite

• Spot testing has been done using Eric Prud’hommeaux’s “Fancy ShEx Demo”

• https://www.w3.org/2013/ShEx/FancyShExDemo

• Click on the “2” in the ShEx2 on the upper right part of the screen

• Paste ShEx into left window

• Paste RDF into middle window

Page 4: FHIR RDF and ShEx · example.ttl.html • ShEx is available for all FHIR resources ... • Spot testing has been done using Eric Prud’hommeaux’s “Fancy ShEx Demo”

FHIR Allergyintolerance

Page 5: FHIR RDF and ShEx · example.ttl.html • ShEx is available for all FHIR resources ... • Spot testing has been done using Eric Prud’hommeaux’s “Fancy ShEx Demo”

Collections1. Collections — decision not to use RDF Lists.

Had to add:

to ALL definitions because ordering occurs inside:

Page 6: FHIR RDF and ShEx · example.ttl.html • ShEx is available for all FHIR resources ... • Spot testing has been done using Eric Prud’hommeaux’s “Fancy ShEx Demo”

Types2. Type closure

Data types — Extension pretty much makes type closure a fixed quantity

Page 7: FHIR RDF and ShEx · example.ttl.html • ShEx is available for all FHIR resources ... • Spot testing has been done using Eric Prud’hommeaux’s “Fancy ShEx Demo”

Types (cont)Primitive Types: (_code)

id.profile.json

code.profile.json

Page 8: FHIR RDF and ShEx · example.ttl.html • ShEx is available for all FHIR resources ... • Spot testing has been done using Eric Prud’hommeaux’s “Fancy ShEx Demo”

code type

Page 9: FHIR RDF and ShEx · example.ttl.html • ShEx is available for all FHIR resources ... • Spot testing has been done using Eric Prud’hommeaux’s “Fancy ShEx Demo”

DateTime type

Page 10: FHIR RDF and ShEx · example.ttl.html • ShEx is available for all FHIR resources ... • Spot testing has been done using Eric Prud’hommeaux’s “Fancy ShEx Demo”

uri type

Page 11: FHIR RDF and ShEx · example.ttl.html • ShEx is available for all FHIR resources ... • Spot testing has been done using Eric Prud’hommeaux’s “Fancy ShEx Demo”

Coding

Page 12: FHIR RDF and ShEx · example.ttl.html • ShEx is available for all FHIR resources ... • Spot testing has been done using Eric Prud’hommeaux’s “Fancy ShEx Demo”

Reference

Page 13: FHIR RDF and ShEx · example.ttl.html • ShEx is available for all FHIR resources ... • Spot testing has been done using Eric Prud’hommeaux’s “Fancy ShEx Demo”

identifier

uri becomes URI rather than string

How are 2 identifiers represented???

Page 14: FHIR RDF and ShEx · example.ttl.html • ShEx is available for all FHIR resources ... • Spot testing has been done using Eric Prud’hommeaux’s “Fancy ShEx Demo”

Reference

Page 15: FHIR RDF and ShEx · example.ttl.html • ShEx is available for all FHIR resources ... • Spot testing has been done using Eric Prud’hommeaux’s “Fancy ShEx Demo”

Coding

Page 16: FHIR RDF and ShEx · example.ttl.html • ShEx is available for all FHIR resources ... • Spot testing has been done using Eric Prud’hommeaux’s “Fancy ShEx Demo”

Closure