Stream: IG creation
Topic: IG derived from US-Core for R4
John Moehrke (Feb 07 2019 at 15:56):
using the spreadsheet method (@Lloyd McKenzie ), how do I indicate that my profiles are starting with US-Core? For other Resources that I am not further constraining, but want to force the US-Core profiles; how do I indicate that in my IG? -- gladly will look at another profile that has done this using spreadsheet profiles.
Eric Haas (Feb 07 2019 at 16:00):
See my ig-template patient on patient...
https://github.com/Healthedata1/IG-Template2/blob/master/source/resources/patient-on-usprofile-spreadsheet.xml
John Moehrke (Feb 07 2019 at 16:00):
I did try that first, and it fails
John Moehrke (Feb 07 2019 at 16:01):
[java] Unable to generate snapshot for http://hl7.org/fhir/uv/eLTSS/StructureDefinition/patient-eltss because Profile patient-eltss (http://hl7.org/fhir/uv/eLTSS/StructureDefinition/patient-eltss) base http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient could not be resolved
John Moehrke (Feb 07 2019 at 16:01):
I likely did it wrong.
Eric Haas (Feb 07 2019 at 16:02):
See the ig.json file for how to set up the dependency ....
"dependencyList": [ { "version": "current", "name": "uscore", "location": "http://hl7.org/fhir/us/core-r4" } ],
Eric Haas (Feb 07 2019 at 16:03):
that points to the current version of US Core.
Eric Haas (Feb 07 2019 at 16:03):
package manager was messed up and was just fixed by GG so should be OK
Eric Haas (Feb 07 2019 at 16:04):
for a prior version ...say US-Core 2.0.0
"dependencyList": [ { "version": "2.0.0", "name": "uscore", "location": "http://hl7.org/fhir/us/core" } ],
Lloyd McKenzie (Feb 07 2019 at 16:06):
In my version, you'll specify the dependency in the implementation guide and that will propagate into the ig.json. In the spreadsheets, you'll list the URL of the parent profile in the type column.
Eric Haas (Feb 07 2019 at 16:08):
note that for US-Core r4 the base is http://hl7.org/fhir/us/core-r4
not http://hl7.org/fhir/us/core
so the canonical is http://hl7.org/fhir/us/core-r4/StructureDefinition/us-core-patient
not http://hl7.org/fhir/us/core/StructureDefinition/us-core-patient
Eric Haas (Feb 07 2019 at 16:12):
that caught me by surprise as well
John Moehrke (Feb 07 2019 at 18:29):
Okay, so I fixed the URL to US-Core r4... but the build still fails that it can't be resolved
[java] Unable to generate snapshot for http://hl7.org/fhir/uv/eLTSS/StructureDefinition/patient-eltss because Profile patient-eltss (http://hl7.org/fhir/uv/eLTSS/StructureDefinition/patient-eltss) base http://hl7.org/fhir/us/core-r4/StructureDefinition/us-core-patient could not be resolved
John Moehrke (Feb 07 2019 at 18:34):
I guess I need to twiddle something in the ig.json to indicate the us-core dependency?
Lloyd McKenzie (Feb 07 2019 at 19:16):
Is your IG.JSON being manually maintained? If so, yes
John Moehrke (Feb 07 2019 at 19:43):
im following your lead, so there is an ig.json in src that is manually maintained... so what do I need to say in there to indicate we are importing us-core?
Lloyd McKenzie (Feb 07 2019 at 19:48):
If you're using my template, the ig.json in src should be a redirect to the one that's automatically generated in src-generated. And if it's generating properly, the one in src-generated should have the import declared in it.
John Moehrke (Feb 07 2019 at 19:59):
I was speaking of the src/~ig.xml
John Moehrke (Feb 07 2019 at 20:00):
in my case eltss.xml
Lloyd McKenzie (Feb 07 2019 at 20:15):
Is that dependency propagating correctly into src-generated/eltss.json?
John Moehrke (Feb 07 2019 at 20:18):
I have no idea how to add a dependency, so no clue. I have followed your genomics-reporting project, which I don't think has a depends on US-Core... so I don't have much to go on. Is there a project that used your template that is dependent on us-core?
Lloyd McKenzie (Feb 07 2019 at 20:23):
Not publicly shared - and not using R4. However, this should work:
<dependsOn>
<uri value="http://hl7.org/fhir/us/core-r4"/>
<packageId value="hl7.fhir.us.core.r4"/>
<version value="current"/>
</dependsOn>
Lloyd McKenzie (Feb 07 2019 at 20:24):
If it doesn't, commit everything and I'll take a look
John Moehrke (Feb 07 2019 at 20:25):
okay... trying...
John Moehrke (Feb 07 2019 at 20:37):
so, that didn't create a failure..
John Moehrke (Feb 07 2019 at 20:43):
so, how do I indicate that the Patient profile in my IG is derived from US-Core Patient? I tried the thing @Eric Haas recommends, and get a error
[java] Unable to generate snapshot for http://hl7.org/fhir/uv/eLTSS/StructureDefinition/patient-eltss because Profile patient-eltss (http://hl7.org/fhir/uv/eLTSS/StructureDefinition/patient-eltss) base http://hl7.org/fhir/us/core-r4/StructureDefinition/us-core-patient could not be resolved
John Moehrke (Feb 07 2019 at 20:47):
that is to replace "Reference" with "Patient{http://hl7.org/fhir/us/core-r4/StructureDefinition/us-core-patient}" in the type column on the top level (Patient) row...
John Moehrke (Feb 07 2019 at 20:54):
Also, we are wanting to just use the us-core Observation without adding any constraints. How do I indicate that?
Lloyd McKenzie (Feb 07 2019 at 20:54):
The type should be just "{http://hl7.org/fhir/us/core-r4/StructureDefinition/use-core-patient}" - no "Patient"
Lloyd McKenzie (Feb 07 2019 at 20:55):
If you want to use it, you don't define a profile for it. You can just point to it in the narrative.
John Moehrke (Feb 07 2019 at 20:57):
The type should be just "{http://hl7.org/fhir/us/core-r4/StructureDefinition/use-core-patient}" - no "Patient"
no difference in the error... still fails same way
John Moehrke (Feb 07 2019 at 20:58):
If you want to use it, you don't define a profile for it. You can just point to it in the narrative.
so I have speak in narrative about US-Core... no need to do anything more aggressive?
John Moehrke (Feb 07 2019 at 20:59):
so http://build.fhir.org/ig/HL7/eLTSS/index.html
Lloyd McKenzie (Feb 07 2019 at 21:14):
I don't see <dependsOn> in your committed src
John Moehrke (Feb 07 2019 at 21:24):
I don't see <dependsOn> in your committed src
just now push(ed) stuff in... the dependsOn causes a failure too.
Lloyd McKenzie (Feb 07 2019 at 21:44):
My framework didn't like the "-" in core-r4. Or more specifically, the publisher didn't like having that as the ig name. I stripped out the '-' in my transform and it now seems to be good. Fix committed
John Moehrke (Feb 07 2019 at 22:22):
thanks. That also fixed the problem with my profiles wanting to be based on us-core
Last updated: Apr 12 2022 at 19:14 UTC