FHIR Chat · Ingredient profile · IG creation

Stream: IG creation

Topic: Ingredient profile


view this post on Zulip Catherine Hosage Norman (Mar 24 2022 at 14:37):

The profile below is on Ingredient. The line that is comment out give is error:

Caused by: org.hl7.fhir.exceptions.FHIRException: Unable to generate snapshot for https://hl7.org/fhir/pq-cmc/StructureDefinition/prf-pqcmc-ingredient in C:\FHIR-us-pq-cmc\fsh-generated\resources\structuredefinition-pqcmc-ingredient
at org.hl7.fhir.igtools.publisher.Publisher.generateSnapshot(Publisher.java:5458)
at org.hl7.fhir.igtools.publisher.Publisher.generateSnapshots(Publisher.java:5403)
... 4 more
Caused by: org.hl7.fhir.exceptions.FHIRException: Unexpected condition in differential: type-slice.type-list.size() != 1 at Ingredient.substance.strength.concentrationText/null
at org.hl7.fhir.r5.conformance.ProfileUtilities.determineFixedType(ProfileUtilities.java:2066)
at org.hl7.fhir.r5.conformance.ProfileUtilities.processPaths(ProfileUtilities.java:1420)
at org.hl7.fhir.r5.conformance.ProfileUtilities.processPaths(ProfileUtilities.java:1109)
at org.hl7.fhir.r5.conformance.ProfileUtilities.processPaths(ProfileUtilities.java:1109)
at org.hl7.fhir.r5.conformance.ProfileUtilities.generateSnapshot(ProfileUtilities.java:669)
at org.hl7.fhir.igtools.publisher.Publisher.generateSnapshot(Publisher.java:5453)

However, concentrationText is not in a slice. It is an element on strength. Any ideas?

Profile: DrugProductIngredient
Parent: Ingredient
Id: pqcmc-ingredient
Title: "Drug Product Ingredient"
Description: "The amount detais about the drug product ingredients in the batch. Use for Batch Formula."

  • ^url = "https://hl7.org/fhir/pq-cmc/StructureDefinition/prf-pqcmc-ingredient"
  • .extension contains pq-additional-info-extension named additional-info 0..1 MS
  • .extension[additional-info] ^short = "Drug Product Ingredient Additional Information"
  • substance.code.reference 1..1 MS
  • substance.code.reference ^short = "Ingredient Substance"
  • substance.code.reference only Reference(pqcmc-routine-drug-substance)
  • substance.strength.extension contains pq-quantity-percent-extension named quantity-percent 1..1 MS
  • substance.strength.extension[quantity-percent] ^short = "Quantity Percent"
  • substance.strength.extension contains pq-overage-extension named overage 0..1 MS
  • substance.strength.extension[overage] ^short = "Overage"
  • substance.strength.concentration[x] 1..1 MS
  • substance.strength.concentration[x] only Quantity
  • substance.strength.concentrationQuantity ^short = "Component Quanty Per Batch"
    //* substance.strength.concentrationText 1..1 MS

  • substance.strength.concentrationText ^short = "Strength Textual"

view this post on Zulip Lloyd McKenzie (Mar 24 2022 at 16:20):

This seems like something that should be asked under #shorthand


Last updated: Apr 12 2022 at 19:14 UTC