FHIR Chat · Profile on national profile · shorthand

Stream: shorthand

Topic: Profile on national profile


view this post on Zulip Barbro Vessman (Mar 05 2021 at 16:46):

Hello

I would like to make profiles on these two national profiles:

https://build.fhir.org/ig/HL7Sweden/basprofiler-r4/StructureDefinition-SEBasePatient.html (Defining URL: http://electronichealth.se/fhir/StructureDefinition/SEBasePatient)

https://simplifier.net/HL7Norwayno-basis/NoBasisPatient (Canonical: http://hl7.no/fhir/StructureDefinition/no-basis-Patient)

I have tried to use all the url's as Parent in my profiles but that gives error "Parent not found". I have also downloaded the StructureDefinitions for these profiles but I don't know where to put them and how to reference them.

Could someone here please give a hint?

view this post on Zulip David Pyke (Mar 05 2021 at 16:48):

You need to set those Implementation Guides as dependencies on yours.

view this post on Zulip Barbro Vessman (Mar 05 2021 at 16:56):

Thank you very much @David Pyke !
But where do I find the package id?

view this post on Zulip Chris Moesel (Mar 05 2021 at 17:04):

For the one on build.fhir.org, the publisher puts it in the footer of the page. So that one has package id se-baseprofile and version 0.0.1. image.png

view this post on Zulip Chris Moesel (Mar 05 2021 at 17:07):

I'm less familiar with the Simplifier interface, but it looks to me like package id hl7.fhir.no.basis and version 2.0.14. image.png

view this post on Zulip Barbro Vessman (Mar 05 2021 at 17:18):

Thanks a lot @Chris Moesel for a quick and clear answer! The Norwegian profile worked fine with a lower version. The Swedish does not. Maybe it is not ready for use? Page says it is not an authorized publication.

dependencies:
  hl7.fhir.no.basis:
      id: no-basis-Patient
      uri: http://hl7.no/fhir/StructureDefinition/no-basis-Patient
      version: 2.0.10
  se-baseprofile:
      id: SEBasePatient
      uri: http://electronichealth.se/fhir/StructureDefinition/SEBasePatient
      version: 0.0.1

error Failed to load se-baseprofile#0.0.1: Request failed with status code 404

view this post on Zulip Chris Moesel (Mar 05 2021 at 18:48):

Hi @Barbro Vessman. I think there are a few things going on here, but here is what seems to work OK for me:

dependencies:
  hl7.fhir.no.basis:
    uri: http://hl7.no/fhir/
    version: 2.0.14
  se-baseprofile: current

An explanation of my changes:

  • Since the package id is the key in the dependencies object, you don't need to put a separate id key underneath one.
  • You only need to provide the more complex structure if the package doesn't clearly identify it's IG URI. The se-baseprofile IG does indicate its IG URI, so we can use the shorter syntax for that one.
  • The hl7.fhir.no.basis package has no ImplementationGuide resource in it, and I couldn't find the URI, so I just made it be the canonical for the IG. I'm not sure if the IG Publisher will like this, but SUSHI likes it just fine.
  • The 2.0.14 version of hl7.fhir.no.basis downloaded just fine for me (you do not need to revert to 2.0.10 -- unless that's what you actually want).
  • It appears that the se-baseprofile hasn't yet published an official version (not even 0.0.1), so we actually need to use the current version (which is always the latest autobuild of the IG).

view this post on Zulip Barbro Vessman (Mar 05 2021 at 19:30):

Hi again @Chris Moesel . Thanks for showing how to solve it in the shortest and nicest way. That also works! And thank you for clear explanations! Now I'm good to go with both my profiles. Have a nice evening!


Last updated: Apr 12 2022 at 19:14 UTC