Stream: IG creation
Topic: UK Base IG Testing
Kevin Mayfield (Nov 30 2019 at 12:31):
Sorry - not sure if this the right forum
I've created a draft UK Base IG here: https://project-wildfyre.github.io/UK-STU3 and have populated a UK terminology server: https://ontoserver.dataproducts.nhs.uk/fhir
So when I use HL7 FHIR Validator, this should work:
java -jar org.hl7.fhir.validator.jar observation-9084.xml -ig https://project-wildfyre.github.io/UK-STU3 -tx https://ontoserver.dataproducts.nhs.uk/fhir
but fails with:
Exception in thread "main" org.hl7.fhir.exceptions.FHIRException: Unable to connect to terminology server. Use parameter '-tx n/a' tun run without using terminology services to validate LOINC, SNOMED, ICD-X etc. Error = Error parsing response message: Unknown Content acceptUnknown @ START_TAG seen ...<fhirVersion value="3.0.1"/><acceptUnknown value="extensions"/>... @1:929
It doesn't seem to like the STU3 OntoServer.
Trying without the onto server gives me these errors:
- Error @ Observation.category[0].coding[0] (line 13, col17) : Unknown Code System http://hl7.org/fhir/observation-category
Error @ Observation.category[0].coding[0].system (line 14, col71) : URL value 'http://hl7.org/fhir/observation-category' does not resolve*
Do I need to include these in my IG?
Note I am having to correct profiles as I am coming across a number of issues in UK profiles.
Grahame Grieve (Nov 30 2019 at 18:04):
did you try tx.fhir.org?
The source of the first error is that you did not specify -version 3.0, so the validator assumes R4 (which it will have said in the output)
Grahame Grieve (Nov 30 2019 at 18:05):
and no, you don't need to include those in your IG. The problem is that those don't exist in R4, and the validator is using R4. S0: -version 3.0
Kevin Mayfield (Dec 01 2019 at 09:18):
Many many thanks, working now. :)
tx.fhir.org works. Get the warning below and presume that is because this server doesn't have UK Base ValueSets (and CodeSystems). [Ideally: should HL7 UK be asking for these to be on the tx.fhir.org server? @Rik Smithies @Richard Kavanagh If so is this something we should do?]
Warning @ Observation.code.coding[0] (line 21, col17) : Could not confirm that the codes provided are in the value set https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-ObservationType-1 (https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-ObservationType-1, and a code should come from this value set unless it has no suitable code)
Richard Kavanagh (Dec 01 2019 at 12:50):
@Kevin Mayfield not sure what is loaded in tx.fhir.org but if the intent is to validate via the publisher you will need these
1) A TX server with all the CareConnect VS/CS loaded
2) A TX with the UK extensions of SNOMED loaded
3) The numerous technical issues in the CareConnect VS to be fixed
These could be loaded in the NHS Digital "test" OntoServer. The errors in the CareConnect VS should have been fixed a long time ago, but there does not appear to be any maintenance activity on these.
Grahame Grieve (Dec 01 2019 at 18:41):
tx.fhir.org does have UK Snomed on there, so what remains is to ask myself or @Rob Hausam to load the care connect value sets on there
Grahame Grieve (Dec 01 2019 at 18:41):
I'm not sure what #3 is about
Rob Hausam (Dec 01 2019 at 22:19):
@Kevin Mayfield @Richard Kavanagh Happy to help with getting the CareConnect value sets loaded on tx.fhir.org, if you want to do that. Are there also additional code system(s) to load, or is it all in the SNOMED CT UK Edition?
Kevin Mayfield (Dec 02 2019 at 09:00):
Re: 3 I had some issues with the valuesets & codesystems but the validatecode changes in the validator solved them for me.
What is the best way of sourcing the HL7 UK CodeSystems and ValueSets? Would an IG be suitable?
I'm going to raise a request to move https://project-wildfyre.github.io/UK-STU3/ to HL7 UK as an IG demonstrator (but it will work from technical pov).
I would suggest HL7 UK github could be an ideal place to record issues with HL7 UK profiles, ValueSets and CodeSystems.
Kevin Mayfield (Dec 02 2019 at 22:31):
Draft UK base now available :)
https://hl7-uk.github.io/UK-STU3/index.html
Richard Kavanagh (Dec 02 2019 at 22:37):
@Kevin Mayfield Good Work - will send through some pull request to address some of the technical defects....
Kevin Mayfield (Dec 03 2019 at 07:56):
Wondering if we should change the version numbering on altered resources and names?
We've got an issue with same name e.g. AdmissionMethod-1 is an extension, valueset and codessystem. In the IG I've prefixed the name with vs- and cs- for the ValueSets and CodeSystems. It works but may not be ideal.
For versioning I think we will need to up the version number in some way (I'm using software to identify to changes from fhir.hl7.org.uk/STU3, so incrementing version number will prevent overwrite). So a modified CareConnect-Patient-1 goes from 1.3 to 1.3.1. (Note the published resources will use the IG version - so in the IG the version number of the patient profile is 3.0.0)
As @Rik Smithies mentioned in the email, we don't need the 'CareConnect' and '-1' prefix and suffix on the profiles. In addition I think we may need to loose the fhir version from the url's. So https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1 would become
https://fhir.hl7.org.uk/StructureDefinition/Patient or https://fhir.hl7.org.uk/StructureDefinition/uk-Patient (for naming in the IG).
I'm thinking we should do this for R4/5 IG and so tackle later.
Rik Smithies (Dec 03 2019 at 10:44):
Internal version number change is fine, but I don't see others putting a version number in the profile name so neither should we. We should put forward the names that we think are the best. Then we may need to argue whether or not these are better than what exists, given that there has been some adoption. Whether or not we put "uk" in the name, rather than just in the path I am not sure. Let's see what is best practice. US core says "us-core-patient". I don't think that "core" adds much, and resource names are case sensitive, so perhaps https://fhir.hl7.org.uk/StructureDefinition/uk-Patient is best.
Kevin Mayfield (Dec 03 2019 at 10:52):
I'd followed Australian convention http://build.fhir.org/ig/hl7au/au-fhir-base/profiles.html
Was also wondering if the IG / repo name would be better as uk-fhir-base instead of UK-STU3, so following similar convention to AU (and so guide would be https://hl7-uk.github.io/uk-fhir-base/)
Rik Smithies (Dec 03 2019 at 11:38):
We don't want to put STU3 in any names at this stage, or any other FHIR version in fact. ??_fhir_base seems as good as any other form (and AU is recent I assume, so perhaps current best practice). Any other examples?
There is also the issue of https://fhir.hl7.org.uk/StructureDefinition/... vs. https://hl7.org.uk/fhir/StructureDefinition/... We went for fhir.hl7.org.uk for technical hosting reasons I think, not because it is was the preferred form. Maybe that can be changed now.
AU profile example is http://hl7.org.au/fhir/StructureDefinition/au-patient, with international being http://hl7.org/fhir/StructureDefinition/Patient. Profiles names tend to be all lower case in fact.
Last updated: Apr 12 2022 at 19:14 UTC