-
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
fhir:link missing from MedicationStatement.subject #121
fhir:link missing from MedicationStatement.subject #121
Comments
I just checked, and this is not fixed by HL7/kindling#148 |
@dbooth-boston can you assign to me? |
@tmprd Do you think this is a change needed in Kindling? |
No, I think this needs to be changed in https://github.com/hapifhir/org.hl7.fhir.core This might be the method used to add |
I think this may be the same issue causing the root node in the R5 examples to be a blank node, when it had an IRI in R4. E.g. This code checks if protected String getReferenceURI(String ref) {
if (ref != null && (ref.startsWith("http://") || ref.startsWith("https://")))
return "<" + ref + ">";
else if (base != null && ref != null && ref.contains("/"))
return "<" + Utilities.appendForwardSlash(base) + ref + ">";
else
return null;
} I think the calling code needs to provide a value for |
I verified my idea above by hardcoding a base string. It fixes both the resource IRI and the This must be called somewhere else as well, since R5 generation has been happening. I don't know enough about the full build. |
Discussed in WG meeting, if base is null, in the code default to base As a larger project, we think it would be nice if the example IRIs were dereferenced in a cleaner way, e.g. for something like |
I opened a pull request for the above change: hapifhir/org.hl7.fhir.core#1858 |
Turtle filename
This R4 example has a fhir:link inside the fhir:MedicationStatement.subject:
https://hl7.org/fhir/R4B/medicationstatementexample1.ttl.html
But it is missing in the R5 example. Look for fhir:subject in this example:
https://build.fhir.org/medicationstatementexample1.ttl.html
FHIR Resource
https://build.fhir.org/medicationstatement.html#af
ShEx shape
https://build.fhir.org/medicationstatement.shex.html
Description
The turtle probably should have the fhir:link or something equivalent, but we should discuss.
This issue is related to #120
The text was updated successfully, but these errors were encountered: