FHIR Chat · Firely Terminal: Restore: Package not found · implementers

Stream: implementers

Topic: Firely Terminal: Restore: Package not found


view this post on Zulip Markus Bentrup (Mar 21 2021 at 15:20):

Dear all,

I try to install a package from a local file that I haven't uploaded yet.
According to the documentation, this should work with the flag --file, cf.
https://docs.fire.ly/projects/Firely-Terminal/Commands/Managing-packages/Install.html

However, fhir gives me this output:

$ fhir install my-package.tgz --here --file
Updated: package.json
Restore could not be completed.
Package not found: my-package 0.1.0

In a previous step I have generated this package in a subfolder that contains only one Resource (a CodeSystem):

$ fhir pack
Package 'my-package' created. Saved as 'my-package.tgz'.

I then moved my-package.tgz to the parent directory, changed into this directory and entered the command stated above,
which creates the folder my-package#0.1.0/ with a subfolder package which contains three files: my CodeSystem definition, package.json, and .index.json.

I've tried several variants, including omitting the argument --here and other Resource types; all resulted in the same error message.

Does anyone have an idea what I am missing?

view this post on Zulip Lloyd McKenzie (Mar 21 2021 at 16:25):

@Ward Weistra

view this post on Zulip Ward Weistra (Mar 22 2021 at 13:15):

Hi @Markus Bentrup, it's not you, I can reproduce it here. We'll work on resolving that.
For now, I think if you do the install --here so the resources are placed in a subfolder, they will be resolved in the parent folder as if they were resources within the current project. So you should be able to validate against them regardless of the restore error.

view this post on Zulip Markus Bentrup (Mar 22 2021 at 17:55):

Hi @Ward Weistra, thank you for your reply and your confirmation.
I've tried to validate examples that do validate with validator_cli.jar, but it didn't work:

$ fhir validate
error: Unable to resolve reference to profile 'http://portal.esysta.com/fhir/StructureDefinition/DiabetesPatient'
Result: INVALID

$ grep 'http://portal.esysta.com/fhir/StructureDefinition/DiabetesPatient' ESYSTA-resources#0.1.0/package/StructureDefinition-DiabetesPatient.json
  "url": "http://portal.esysta.com/fhir/StructureDefinition/DiabetesPatient",

view this post on Zulip Ward Weistra (Mar 22 2021 at 19:02):

@Markus Bentrup Sorry, forgot I was running an unreleased newer version of Firely Terminal. Your version doesn't resolve in subfolders yet.
That improvement will be out very soon luckily. I'll try to remember to keep you posted on that one :smile:

view this post on Zulip Markus Bentrup (Mar 22 2021 at 19:03):

@Ward Weistra Thank you for the clarification! :)


Last updated: Apr 12 2022 at 19:14 UTC