FHIR Chat · PlanDefinition.action.triggerDefinition error · IG creation

Stream: IG creation

Topic: PlanDefinition.action.triggerDefinition error


view this post on Zulip Sarah Gaunt (Aug 17 2018 at 23:59):

@Grahame Grieve when we (@Kanwarpreet Sethi ) add a triggerDefinition into this PlanDefinition (https://github.com/HL7/case-reporting/blob/master/source/resources/instances/ecr-bundle-knowledge-distribution.xml)

<action id="Orchestration">
          <textEquivalent
            value="Pick between the two sequence options based on rules processing: Healthcare-based processing, or RCKMS Rules Processing on AIMS Platform" />
          <triggerDefinition>
            <type value="data-added" />
            <eventName value="Diagnoses or problems documented in a clinical record." />
            <!--<eventData>
              <type value="Condition" />
              <codeFilter>
                <path value="code" />
                <valueSetReference>
                  <reference value="diagnosis-value-set" />
                </valueSetReference>
              </codeFilter>
            </eventData>-->
          </triggerDefinition>

we are getting this error:

exception in thread "main" java.lang.Error: Unknown type TriggerDefinition
    at org.hl7.fhir.convertors.VersionConvertor_30_40.convertType(VersionConvertor_30_40.java:2781)
    at org.hl7.fhir.igtools.publisher.Publisher$TypeParserR3.parseType(Publisher.java:313)
    at org.hl7.fhir.r4.utils.NarrativeGenerator.parseType(NarrativeGenerator.java:966)
    at org.hl7.fhir.r4.utils.NarrativeGenerator$BaseWrapperMetaElement.getBase(NarrativeGenerator.java:542)
    at org.hl7.fhir.r4.utils.NarrativeGenerator.renderLeaf(NarrativeGenerator.java:1330)
    at org.hl7.fhir.r4.utils.NarrativeGenerator.addColumnValues(NarrativeGenerator.java:1269)
    at org.hl7.fhir.r4.utils.NarrativeGenerator.generateByProfile(NarrativeGenerator.java:1143)
    at org.hl7.fhir.r4.utils.NarrativeGenerator.generate(NarrativeGenerator.java:1048)
    at org.hl7.fhir.igtools.publisher.Publisher.generateNarratives(Publisher.java:654)
    at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:538)
    at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:498)
    at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:4761)

Log here: http://build.fhir.org/ig/HL7/case-reporting/build.log

It works when the triggerDefinition is commented out and fails when it isn't... I've tried all permutations of including/not including the stuff inside the triggerDefinition too...

view this post on Zulip Grahame Grieve (Aug 18 2018 at 00:05):

ok I'll look at it in a few minutes

view this post on Zulip Grahame Grieve (Aug 18 2018 at 00:49):

ok try again after the next build

view this post on Zulip Sarah Gaunt (Aug 18 2018 at 01:22):

Thanks @Grahame Grieve - that worked...


Last updated: Apr 12 2022 at 19:14 UTC