A Maven plugin for converting terminology from version 3.1 of the Standards for Pathology Informatics in Australia (SPIA) into a set of FHIR STU3 and FHIR R4 terminology resources.
The input is the ZIP archive distributed on the National Clinical Terminology Service web site.
The output is two FHIR Bundles (one for each FHIR version), each containing the following resources:
- Requesting reference set (SNOMED CT ValueSet)
- Chemical pathology reporting reference set (LOINC ValueSet)
- Chemical pathology unit map (ConceptMap)
- Chemical pathology combining results flag map (ConceptMap)
- Microbiology serology molecular reporting reference set (LOINC ValueSet)
- Microbiology serology molecular unit map (ConceptMap)
- Microbiology subset of organisms (SNOMED CT ValueSet)
- Haematology reporting reference set (LOINC ValueSet)
- Haematology unit map (ConceptMap)
- Immunopathology reporting reference set (LOINC ValueSet)
- Immunopathology unit map (ConceptMap)
- Preferred unit reference set (UCUM ValueSet)
- SPIA combining result flag (CodeSystem)
A FHIR terminology server that contains SNOMED CT and LOINC is required for the build process, as it is used to validate the content within the source files.
You can execute the plugin with the following commands:
mvn install
mvn -DinputPath=[zip file] \
-DoutputDirectory=[path to output directory] \
-DterminologyServerUrl=[FHIR terminology server endpoint] \
-DpublicationDate=[publication date] \
au.csiro:spia-to-fhir-maven-plugin:transform
Here is a description of the input parameters for the plugin:
inputPath
: Path to the ZIP archive used to distribute the SPIA spreadsheets.outputDirectory
: Path where the output FHIR Bundles will be created (spia-stu3.Bundle.json
andspia-r4.Bundle.json
).terminologyServerUrl
: Endpoint of a FHIR terminology server which contains SNOMED CT and LOINC.publicationDate
: Date (in the formatyyyy-MM-dd
) used to populate theValueSet.date
andConceptMap.date
elements.