Stream: Profiling Academy - archived
Topic: Dependencies
Kailash (Oct 13 2020 at 09:16):
Hi, I am creating profiles using Forge 25.1.1 for STU3 with dependencies on hl7.fhir.us.core, where I am adding extension from the added dependency, now getting error while reopening the same profiling "The snapshot generator returned one or more issues" and details is like "Unable to resole reference to profile 'http://hl7............../us-core-race'", I have already added project dependencies. just want to know if this is tool issue or i am missing anything.
Ward Weistra (Oct 13 2020 at 15:01):
@Matthijs van der Wielen Can you debug this?
@Kailash I'll assume it doesn't really have all those ....... in the canonical, but that was just for brevity?
Kailash (Oct 13 2020 at 15:52):
@Ward Weistra yes, canonical was - http://hl7.org/fhir/us/core/StructureDefinition/us-core-race
Ward Weistra (Oct 13 2020 at 16:19):
@Kailash Great. Few things to check:
- Please use a dedicated local folder for the project (so for example, not your Downloads folder). The dependencies will be saved in a package.json file in that folder. In a folder you use for other things too that might be overwritten.
- Please share the contents of that package.json file, to see whether the dependency was really installed.
Kailash (Oct 14 2020 at 04:42):
for first point - used a dedicated folder for project, can see fhirpkg.lock.json and package.json added after adding dependency.
for second point - yes, can see dependency added to package.json -
{
"name": "Dependency Test",
"version": "0.1.0",
"description": "Dependency Test",
"author": null,
"dependencies": {
"hl7.fhir.us.core": "2.0.0"
},
"fhirVersions": [
"3.0.1"
],
"devDependencies": null,
"canonicals": null
}
Matthijs van der Wielen (Oct 19 2020 at 14:20):
@Kailash
So you created a new Patient profile and added the us-core-race extension to it: image.png
And after re-opening this profile you got the error? While the dedicated folder contained both the profile and the package.json?
Kailash (Oct 20 2020 at 13:12):
@Matthijs van der Wielen Yes
Matthijs van der Wielen (Oct 20 2020 at 13:24):
@Kailash Is it possible for you to share the profile where this error occurs? Because I've tried a couple of things but have been unable to reproduce the error so far.
Last updated: Apr 12 2022 at 19:14 UTC