-
Notifications
You must be signed in to change notification settings - Fork 15
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
align Reference with canonical #120
Comments
BTW, while dealing with this, you may stumble on a bunch of commented-out
That's not a bug, just an odd editorial choice in the authoritative XML which includes scads of commented-out markup. These comments are not present in JSON 'cause no comments are present in JSON. |
Note that Reference has
|
John Moehrke responded to my zulip question about fhir:reference containing a version. Apparently, the version in fhir:reference has different syntax and meaning than the version in a fhir:canonical, as explained here: https://www.hl7.org/fhir/search.html#versions . However, I'm still trying to determine whether the vertical bar in a fhir:canonical is supposed to be percent encoded. |
1 similar comment
John Moehrke responded to my zulip question about fhir:reference containing a version. Apparently, the version in fhir:reference has different syntax and meaning than the version in a fhir:canonical, as explained here: https://www.hl7.org/fhir/search.html#versions . However, I'm still trying to determine whether the vertical bar in a fhir:canonical is supposed to be percent encoded. |
Discussed on today's call: https://www.w3.org/2023/07/13-hcls-minutes.html |
I also see vertical bar in a few R5 examples of grep -E '.*\|.*\^\^xsd:anyURI' *.ttl
bundle-request-simplesummary.ttl: fhir:url [ fhir:v "/Observation?patient=example&code=http://loinc.org|55284-4&date=ge2015-01-01"^^xsd:anyURI ]
bundle-search-warning.ttl: fhir:url [ fhir:v "https://example.org/fhir/Observation?patient.identifier=http://example.com/fhir/identifier/mrn|123456"^^xsd:anyURI ]
bundle-transaction.ttl: fhir:url [ fhir:v "Patient?identifier=http:/example.org/fhir/ids|456456"^^xsd:anyURI ] # actually, in a transaction, you don't specify the [base], \n so [base]\/Patient?params becomes just 'Patient?params':
codesystem-example-metadata-2.ttl: fhir:v "http://hl7.org/fhir/CodeSystem/example-metadata|20210701"^^xsd:anyURI ;
conceptmap-example-metadata-2.ttl: fhir:v "http://hl7.org/fhir/ConceptMap/example-metadata|20210701"^^xsd:anyURI ;
namingsystem-example-metadata-2.ttl: fhir:v "http://hl7.org/fhir/NamingSystem/example-metadata|20210701"^^xsd:anyURI ;
valueset-example-metadata-2.ttl: fhir:v "http://hl7.org/fhir/ValueSet/example-metadata|20210701"^^xsd:anyURI ; I found these with HermiT. Which ShEx schemas are used to validate these? |
I believe changes to this will need to be made somewhere in here: |
Option 4 looks best to me. What do others think? |
I'm not seeing a difference between Option 1 and Option 4, but that's the one I like the best :) |
@ericprud maybe it would be helpful to show both a Reference and a canonical example in the proposed Option 4 syntax. |
With respect to the apparently invalid See: https://stackoverflow.com/questions/33826104/can-xsd-type-of-anyuri-contain-spaces/33832910#33832910 Replacing the vertical bar with The precedent for making modifications to FHIR RDF to support OWL use cases is to offer separate scripts, such as the one which converts RDF lists, here: https://github.com/w3c/hcls-fhir-rdf/tree/gh-pages/scripts This is probably the best option to avoid complicating broader use cases. ShEx implementers would then need to adopt the XSD 1.1 interpretation, which is far less useful for validation but is technically more up-to-date. |
AGREED to 4B on today's call: https://www.w3.org/2024/01/04-hcls-irc#T16-36-22 |
Reopened pending the merge of the actual fix. |
This still needs to be fixed. |
I'll take a look at this one. |
Turtle filename
procedure-example-f201-tpf.ttl
FHIR Resource
Reference:
canonical:
ShEx shape
@<Reference>~fhir:link
@<Canonical>
example use:
@<Procedure>~fhir:instantiatesCanonical
and@<Procedure>~fhir:subject
Description
Reference
is a (complex) datatype,canonical
is a primitive type. Currently, FHIR/RDF adds afhir:link
to the root of theReference
datatype; there's no analog forcanonical
. Since canonical is a primitive datatype, it would have to go on the bnode that has thefhir:v
property.subject Reference
instantiates Reference
instantiates canonical
Reference aligned with canonical
Options:
fhir:link
from canonical?version=X
search parameter.proposal 4B example
diff from proposal 1
See related #138
The text was updated successfully, but these errors were encountered: