We’re starting to implement this and one of our first steps will be to document and set up testing resources for our local system.
To do this I’m looking at using HL7 igPublisher which will allow us to use open source FHIR Testing tools.
However when I try to use the packages from this service I get this error.
Sushi: info Attempting to download uk.nhsdigital.genomics.r4#0.4.2 from https://packages.fhir.org/uk.nhsdigital.genomics.r4/0.4.2 (00:00.001 / 00:07.818, 23Mb)
Sushi: info Attempting to download uk.nhsdigital.genomics.r4#0.4.2 from https://packages2.fhir.org/packages/uk.nhsdigital.genomics.r4/0.4.2 (00:00.186 / 00:08.004, 23Mb)
Sushi: error Failed to load uk.nhsdigital.genomics.r4#0.4.2: Failed to download uk.nhsdigital.genomics.r4#0.4.2 from the registry (00:00.509 / 00:08.514, 23Mb)
Sushi: info Loaded hl7.fhir.r4.core#4.0.1 with 4581 resources (00:03.117 / 00:11.631, 23Mb)
Sushi: info Loaded virtual package sushi-local#LOCAL with 0 resources (00:00.011 / 00:11.642, 23Mb)
Sushi: info Converting FSH to FHIR resources... (00:00.023 / 00:11.666, 23Mb)
Sushi: error Parent https://fhir.hl7.org.uk/StructureDefinition/UKCore-DiagnosticReport not found for DiagnosticReport (00:00.008 / 00:11.675, 23Mb)
Sushi: File: /Users/kevinmayfield/github/MFT/FHIRGenomics/input/fsh/DiagnosticReport.fsh (00:00.001 / 00:11.676, 23Mb)
Sushi: Line: 1 - 75 (00:00.000 / 00:11.677, 23Mb)
Sushi: error Parent https://fhir.hl7.org.uk/StructureDefinition/UKCore-ServiceRequest not found for ServiceRequest (00:00.164 / 00:11.842, 23Mb)
Sushi: File: /Users/kevinmayfield/github/MFT/FHIRGenomics/input/fsh/ServiceRequest.fsh (00:00.001 / 00:11.843, 23Mb)
I believe the package I should be using is uk.nhsdigital.genomics.r4 version 0.4.2 which is the FHIR IG (FHIR Genomics Implementation Guide) the OAS specification points to.
To work around this I’ve tried
fhir.r4.ukcore.stu2 2.0.1-pre-release
Which finds the package but then gives
Sushi: error Structure Definition https://fhir.hl7.org.uk/StructureDefinition/UKCore-DiagnosticReport is missing a snapshot. Snapshot is required for import. (00:00.009 / 00:16.428, 23Mb)
Sushi: File: /Users/kevinmayfield/github/MFT/FHIRGenomics/input/fsh/DiagnosticReport.fsh (00:00.001 / 00:16.430, 23Mb)
Sushi: Line: 1 - 75 (00:00.001 / 00:16.432, 23Mb)
Sushi: error Structure Definition https://fhir.hl7.org.uk/StructureDefinition/UKCore-ServiceRequest is missing a snapshot. Snapshot is required for import. (00:00.157 / 00:16.589, 23Mb)
Sushi: File: /Users/kevinmayfield/github/MFT/FHIRGenomics/input/fsh/ServiceRequest.fsh (00:00.001 / 00:16.591, 23Mb)
Sushi: Line: 1 - 18 (00:00.001 / 00:16.593, 23Mb)
Sushi: info Converted 11 FHIR StructureDefinitions. (00:00.063 / 00:16.656, 23Mb)
To work around this I’ve used
package fhir.r4.ukcore.stu2 version 2.1.0
Could you please advise if this is ok?