FHIR Chat · error in logical model rendering · IG creation

Stream: IG creation

Topic: error in logical model rendering


view this post on Zulip Jose Costa Teixeira (Aug 05 2020 at 20:39):

I'm getting this in my logical models, whether I base them on Base or Element
This structure is derived from <a href="null"></a>

view this post on Zulip Jose Costa Teixeira (Aug 05 2020 at 20:39):

I'm sure I'm missing something (unless it's a new check) but I cannot find it in the code.

view this post on Zulip Jose Costa Teixeira (Aug 05 2020 at 20:39):

what could this be?

view this post on Zulip Jose Costa Teixeira (Aug 05 2020 at 20:41):

or should the logical models be based on Resource?

view this post on Zulip Jose Costa Teixeira (Aug 05 2020 at 20:41):

Here's a draft one:
http://build.fhir.org/ig/IHE/pharm-supply/StructureDefinition-model-inventory-status.html

view this post on Zulip Grahame Grieve (Aug 05 2020 at 20:41):

only if you want to generally, Base would be right

view this post on Zulip Grahame Grieve (Aug 05 2020 at 20:43):

looks like it comes from the template to me

view this post on Zulip Jose Costa Teixeira (Aug 05 2020 at 20:44):

Right, I was looking in the wrong place. Found it

view this post on Zulip Jose Costa Teixeira (Aug 05 2020 at 20:47):

well,

view this post on Zulip Jose Costa Teixeira (Aug 05 2020 at 20:47):

structuredefinitions.json is not getting the information it needs

view this post on Zulip Jose Costa Teixeira (Aug 05 2020 at 20:49):

  "be-model-medication-dispense": {
    "index": 0,
    "url": "https://www.hl7belgium.org/fhir/StructureDefinition/be-model-medication-dispense",
    "name": "BeMedicationDispense",
    "path": "StructureDefinition-be-model-medication-dispense.html",
    "kind": "logical",
    "type": "BeMedicationDispense",
    "base": "http://hl7.org/fhir/StructureDefinition/Base",
    "status": "draft",
    "date": "Wed Aug 05 22:27:12 CEST 2020",
    "abstract": false,
    "derivation": "specialization",
    "publisher": "HL7 Belgium",
    "description": "This is the logical model for the Dispense Record entry - the information that can be captured upon the act of dispensing - in a hospital pharmacy, or a community pharmacy. This is not for a future dispense, rather a record of an actual dispense."
  },
  "be-medicationdispense": {
    "index": 1,
    "url": "https://www.hl7belgium.be/fhir/StructureDefinition/be-medicationdispense",
    "name": "BeMedicationDispense",
    "path": "StructureDefinition-be-medicationdispense.html",
    "kind": "resource",
    "type": "MedicationDispense",
    "base": "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
    "basename": "MedicationDispense",
    "basepath": "http://hl7.org/fhir/R4/medicationdispense.html",
    "status": "active",
    "date": "Wed Aug 05 22:27:12 CEST 2020",
    "abstract": false,
    "derivation": "constraint",
    "publisher": "HL7 Belgium",
    "description": "Defines constraints and extensions on the Medication Dispense resource for n."
  },

view this post on Zulip Jose Costa Teixeira (Aug 05 2020 at 20:49):

for models (1st entry), basename and basepath are not present

view this post on Zulip Jose Costa Teixeira (Aug 05 2020 at 20:49):

(which is what the template uses)

view this post on Zulip Jose Costa Teixeira (Aug 05 2020 at 20:51):

https://github.com/HL7/fhir-ig-publisher/blob/a6711a4249c441e851a3d8f23bb8c0f798812d01/org.hl7.fhir.publisher.core/src/main/java/org/hl7/fhir/igtools/publisher/Publisher.java#L5500

view this post on Zulip Jose Costa Teixeira (Aug 05 2020 at 20:52):

this seems to be where it is

view this post on Zulip Jose Costa Teixeira (Aug 05 2020 at 20:58):

yes,
context.fetchResource(StructureDefinition.class, sd.getBaseDefinition()) is null
when
sd.getBaseDefinition() is "http://hl7.org/fhir/StructureDefinition/Base"

view this post on Zulip Jose Costa Teixeira (Aug 05 2020 at 21:01):

and that is as far as I can go to figure it out....

view this post on Zulip Jose Costa Teixeira (Aug 06 2020 at 04:54):

@Grahame Grieve ?

view this post on Zulip Grahame Grieve (Aug 06 2020 at 08:07):

the reason is because Base doesn't exist in R4. There, you need to use Element, I think


Last updated: Apr 12 2022 at 19:14 UTC