Skip to content

UploadFIG shows nondescript error when 'fhirVersions' is missing from package.json #24

@pieterbos

Description

@pieterbos
  • create FHIR package with only the following file in package/package.json:
{    
    "name": "com.nedap.custom",
    "version": "0.0.1",
    "description": "A simple test",
    "author": "Pieter Bos",
    "dependencies": {
        "hl7.fhir.r4.core": "4.0.1"
    },
    "canonical": "urn:something"
}

Then create a package.tgz with just that file. Run UploadFIG as follows:

UploadFIG -s package.tgz -t

The output will be:

HL7 FHIR Implementation Guide Uploader
--------------------------------------
Using local package: test.tar.gz
MD5 Checksum: E26525079993D3DBBFB73E8A4AAEFD52

Object reference not set to an instance of an object.

This is very hard to debug. Instead, it should indicate it cannot determine the FHIR version from the package. Also fhir version is not a mandatory field in package.json, but I can imagine it could be necessary for UploadFIG to work.

If you add the following to the package.json, it will work:

"fhirVersions" : ["4.0.1"],

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions