Stream: IG creation
Topic: error in logical model rendering
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>
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.
Jose Costa Teixeira (Aug 05 2020 at 20:39):
what could this be?
Jose Costa Teixeira (Aug 05 2020 at 20:41):
or should the logical models be based on Resource?
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
Grahame Grieve (Aug 05 2020 at 20:41):
only if you want to generally, Base would be right
Grahame Grieve (Aug 05 2020 at 20:43):
looks like it comes from the template to me
Jose Costa Teixeira (Aug 05 2020 at 20:44):
Right, I was looking in the wrong place. Found it
Jose Costa Teixeira (Aug 05 2020 at 20:47):
well,
Jose Costa Teixeira (Aug 05 2020 at 20:47):
structuredefinitions.json is not getting the information it needs
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."
},
Jose Costa Teixeira (Aug 05 2020 at 20:49):
for models (1st entry), basename and basepath are not present
Jose Costa Teixeira (Aug 05 2020 at 20:49):
(which is what the template uses)
Jose Costa Teixeira (Aug 05 2020 at 20:51):
Jose Costa Teixeira (Aug 05 2020 at 20:52):
this seems to be where it is
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"
Jose Costa Teixeira (Aug 05 2020 at 21:01):
and that is as far as I can go to figure it out....
Jose Costa Teixeira (Aug 06 2020 at 04:54):
@Grahame Grieve ?
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