FHIR Chat · Invariant XPath not possible · IG creation

Stream: IG creation

Topic: Invariant XPath not possible


view this post on Zulip Lloyd McKenzie (May 27 2020 at 17:02):

I'm getting an error yelling at me that my invariant is missing an XPath - but there's no way to express my invariant in XPath because it's based on 'now' - which isn't available unless we bring saxon extensions into play. What is our convention for saying "there's no XPath possible"? (Agree that we should be forcing XPath to exist where it can be done.)

view this post on Zulip Grahame Grieve (May 27 2020 at 20:09):

what's the exact error (so I can find it)?

view this post on Zulip Lloyd McKenzie (May 28 2020 at 01:08):

java.lang.Exception: exception parsing pack CRD Patient: Profile profile-patient-deident Invariant null (Birthdate can only include month if 2 years old or less) has no XPath statement
at org.hl7.fhir.igtools.spreadsheets.IgSpreadsheetParser.parse(IgSpreadsheetParser.java:161)
at org.hl7.fhir.igtools.publisher.Publisher.loadSpreadsheet(Publisher.java:3454)
at org.hl7.fhir.igtools.publisher.Publisher.loadSpreadsheets(Publisher.java:3440)
at org.hl7.fhir.igtools.publisher.Publisher.load(Publisher.java:2895)
at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:830)
at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:696)
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:7383)
Caused by: java.lang.Exception: Profile profile-patient-deident Invariant null (Birthdate can only include month if 2 years old or less) has no XPath statement
at org.hl7.fhir.igtools.spreadsheets.IgSpreadsheetParser.parseProfileSheet(IgSpreadsheetParser.java:310)
at org.hl7.fhir.igtools.spreadsheets.IgSpreadsheetParser.parse(IgSpreadsheetParser.java:135)


Last updated: Apr 12 2022 at 19:14 UTC