- 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"],