Stream: shorthand
Topic: codeableReference
Catherine Hosage Norman (Jan 14 2022 at 02:18):
I am getting an error on the for element in Ingredient. Not that fond of for as a name for an element, but it is not in the list of sushi reserved words.
Profile: DrugProductComponent
Parent: Ingredient
Id: pqcmc-Component
Title: "Drug Product Component"
Description: "The amount detais about the drug product compoents to define the product composition in a product unit."
- status.code
- for only Reference(pqcmc-RoutineDrugProduct)
- for ^short = "Reference to MedicinalProductDefinition"
Getting these error
error No element found at path for for OnlyRule in DrugProductComponent, skipping rule
File: C:\pqcmcsushi\input\fsh\DrugSubstanceResources.fsh
Line: 250
error No element found at path for for CaretValueRule in DrugProductComponent, skipping rule
File: C:\pqcmcsushi\input\fsh\DrugSubstanceResources.fsh
Line: 251
The profile referred to is:
Profile: RoutineDrugProduct
Parent: MedicinalProductDefinition
Id: pqcmc-RoutineDrugProduct
Title: "Drug Product"
Description: "Includes the identfying information of the drug product"
- identifier 1..1 MS
- description 1..1 MS
- description ^short = "Drug Product Description"
- name 1..1 MS
- name.productName 1..1 MS
- name.productName ^short = "Product Proprietary name/ Product Non-proprietary Name"
- name.type 1..1 MS
Jean Duteau (Jan 14 2022 at 03:08):
I'm running Sushi v2.2.1 and that works fine for me with no errors.
Catherine Hosage Norman (Jan 14 2022 at 12:43):
odd. I am using SUSHI v2.2.1 (implements FHIR Shorthand specification v1.2.0). and still get the errors.
Catherine Hosage Norman (Jan 14 2022 at 13:31):
updated my publisher and sushi and same errors
Chris Moesel (Jan 14 2022 at 14:16):
@Catherine Hosage Norman -- What do you have fhirVersion
set to in your sushi-config.yaml
file?
Catherine Hosage Norman (Jan 14 2022 at 14:18):
id: pqcmc_ig
canonical: http://example.org
name: pqcmcsushi
title: Example Title
description: Example Implementation Guide for getting started with SUSHI
status: draft # draft | active | retired | unknown
version: 0.1.0
fhirVersion: 4.6.0 # https://www.hl7.org/fhir/valueset-FHIR-version.html
copyrightYear: 2021+
Chris Moesel (Jan 14 2022 at 14:30):
@Catherine Hosage Norman: The definition of Ingredient
in FHIR 4.6.0 does not contain an element named for
. See: http://hl7.org/fhir/2021May/ingredient.html
If you want to use Ingredient.for
, then you need to change fhirVersion
to 5.0.0-snapshot1
.
Catherine Hosage Norman (Jan 14 2022 at 14:38):
Thanks. That was the problem. I was finding for in the inputcasche for R5 schema, so I thought it was the correct set. It did download a new version when I ran sushi with the new fhir version.
Last updated: Apr 12 2022 at 19:14 UTC