Stream: committers
Topic: Process Question
Gino Canessa (Oct 25 2021 at 22:04):
I was doing a clean build of R4B and got the following error:
Caused by: java.io.IOException: Error parsing JSON source: Duplicated property name: equivalence at Line 133 (path=[//contained[]/contained/group[]/group/element[]/equivalence/target[]/targetequivalent])
Looking at /source/valueset/valueset-nhin-purposeofuse.xml
, I assume the error is on line 134, that code THREAT
has a listed equivalent
target of itself.
I don't know how it got into the main R4B branch, but I am wary of changing something like that (since I neither have a ticket nor even know who is managing it). Do I fix or just notify, e.g., @Grahame Grieve =)
Thanks!
John Moehrke (Oct 25 2021 at 22:06):
same code, but different codesystem. right?
John Moehrke (Oct 25 2021 at 22:07):
the nhin codes should not be in the fhir core. I didn't know they were anywhere near HL7. They borrowed what they thought were our codes many many years ago, and have evolved them themselves.
John Moehrke (Oct 25 2021 at 22:08):
git shows they have been here for a long time
John Moehrke (Oct 25 2021 at 22:09):
hmmm, concept maps are in the valueset? WHY!? that would be a nice thing for Sequoia to own, but that should not be in FHIR core.... where is this used?
John Moehrke (Oct 25 2021 at 22:14):
these codes have a different codeSystem - http://healthit.gov/nhin/purposeofuse
Why would the same code name be seen as a conflict? It is not nice, but it should not be a conflict... right?
John Moehrke (Oct 25 2021 at 22:19):
looking at the rendering it says everything I just said... so it knows what itself is.... is it intended as an example of ConceptMap?
http://hl7.org/fhir/codesystem-nhin-purposeofuse.html
John Moehrke (Oct 25 2021 at 22:31):
guessing the build was "improved" with stricter rules?
John Moehrke (Oct 25 2021 at 23:06):
to your original question of process.... this specific example shows that there is no easy answer.
John Moehrke (Oct 25 2021 at 23:07):
I would like to know what rule changed to make this a error. duplicate code value should not matter with different codesystem .. right? So is this a bug in the build tools?
John Moehrke (Oct 25 2021 at 23:12):
so the nhin valueSet and codesystem are referenced on only on the ValueSet and CodeSystem resources "examples".
- http://hl7.org/fhir/codesystem-examples.html
- http://hl7.org/fhir/valueset-examples.html
there is a conceptMap, but it is .contained in the valueSet.
Thus the provenance of these would be the Vocabulary workgroup... not the Security Workgroup (who would normally be the guilty one with regard to PurposeOfUse).
Gino Canessa (Oct 26 2021 at 14:45):
I'd say that listing a code as an equivalent to itself is at least poor practice, if not an outright error. I also think it is good that the build tools improve and start finding issues that have been missed in previous iterations. (edit: this is not what is happening here)
I would love to see updates to the tooling run against the 'main' branches before they are pushed out, but I also understand that 'tooling' is stretched a bit thin.
Thanks for the insight into that particular VS John. Given that the page it points to (http://healthit.gov/nhin/purposeofuse) is 404, I'd guess that someone added it at one point and it has bit rot. Given the git history on the file, it seems reasonable.
That said, what's the path to unblock on R4B work? This should be affecting everyone working on R4B, since the source branch fails to build (e.g., nothing can be merged since no branch will pass checks). I'm happy to make a change here and possibly in other places, but I generally avoid tromping around the spec making changes =) (edit: cannot fix in source content, this is a build tooling issue)
Is the process to fix and file a ticket as pre-applied? (edit: cannot fix in source content, this is a build tooling issue)
@Lloyd McKenzie ? (trying to avoid just tagging everyone =)
Lloyd McKenzie (Oct 26 2021 at 15:08):
If you mean "update the ticket to mark it as pre-applied", then yes - with a comment indicating your local commit id. (And then merge once the tooling stack allows)
Gino Canessa (Oct 26 2021 at 15:24):
@John Moehrke - it also helps if I fully read your messages =). I agree that it is incorrect for that to be flagged as an error. The contained ConceptMap
is linking two systems that have the same code value, which should not be an error.
So, I guess I need to reframe this for @Mark Iantorno and @Grahame Grieve , that the tooling is incorrectly flagging that as an error (when a ConceptMap
has a code
and target.code
of the same value).
Grahame Grieve (Oct 29 2021 at 03:48):
so this is definitely on my list but it's not holding anyone up at the moment, right?
John Moehrke (Oct 29 2021 at 11:48):
I think it is holding everyone wanting to make their CR changes to FHIR core.
Grahame Grieve (Oct 29 2021 at 11:54):
why?
John Moehrke (Oct 29 2021 at 11:58):
when Gino first mentioned it, the build was failing with that error
John Moehrke (Oct 29 2021 at 11:58):
I tried it at that time and got the same thing
John Moehrke (Oct 29 2021 at 11:58):
I just pulled, clean, and am trying a build
John Moehrke (Oct 29 2021 at 11:58):
Ill let you know the success/failure in a couple of hours
John Moehrke (Oct 29 2021 at 13:15):
fails
John Moehrke (Oct 29 2021 at 13:20):
note that it seems to fail differently. the validate nhin does not throw errors or warnings
John Moehrke (Oct 29 2021 at 13:21):
so the new "Process Question" is about the new set of errors... I would guess...
John Moehrke (Oct 29 2021 at 13:22):
Summary: Errors=47, Warnings=3786, Information messages=657
ERROR @ CapabilityStatement.url (line 0, col0): capabilitystatement-example:: CapabilityStatement.url: UUIDs must be valid (src = InstanceValidator)
ERROR @ CapabilityStatement2.url (line 0, col0): capabilitystatement2-example:: CapabilityStatement2.url: UUIDs must be valid (src = InstanceValidator)
ERROR @ Citation.url (line 0, col0): citation-example-systematic-meta-review:: Citation.url: Canonical URLs must be absolute URLs if they are not fragment references (Citation/citation-example-systematic-meta-review) (src = InstanceValidator)
ERROR @ Composition.category[0].coding[0] (line 0, col0): composition-example:: Composition.category[0].coding[0]: The code "LP173421-1" is not valid in the system http://loinc.org; The code provided (http://loinc.org#LP173421-1) is not valid in the value set 'All codes known to the system' (from http://tx.fhir.org/r4) for 'http://loinc.org#LP173421-1' (src = TerminologyEngine)
...
Grahame Grieve (Oct 29 2021 at 18:35):
right nhin is not the issue. I'm planning on releasing a fix for R4B over the weekend
Last updated: Apr 12 2022 at 19:14 UTC