Stream: shorthand
Topic: Error in generatin extension
Juan Manuel Caputo (Mar 28 2022 at 18:48):
Hello im having some problems with this extension :
Extension: xHISStatusAntecedent
Id: xhis-status-antecedent
Title: "XhisStatusAntecedent"
Description: "Extension for indicating the Status of an antecedent in xHIS"
// publisher, contact, and other metadata could be defined here using caret syntax (omitted)
- extension 0..0
- id 0..0
- value[x] only Coding
- value[x].id 0..0
- value[x].system = "https://www.dedalusgs.com/healthcare/fhir/xHIS/status-antecedents-xhis-system"
- value[x].version 0..0
- value[x].code 1..1
- value[x].display 1..1
- value[x].userSelected 0..0
- value[x].extension 0..0
when i tried to do sushi ., ti says that is ok, but when i do the _genonce.bat i have this error:
Exception in thread "main" java.lang.Error: Case mismatch of file C:\Git-Repos\Master\Develop\Documentation\FHIR-Shorthand\fish-files\temp\qa\StructureDefinition-xhis-status-antecedent-validation.html: found StructureDefinition-Xhis-status-antecedent-validation.html
at org.hl7.fhir.utilities.CSFile.<init>(CSFile.java:69)
at org.hl7.fhir.utilities.TextFile.stringToFile(TextFile.java:131)
at org.hl7.fhir.igtools.publisher.Publisher.fragment(Publisher.java:9503)
at org.hl7.fhir.igtools.publisher.Publisher.saveFileOutputs(Publisher.java:8569)
at org.hl7.fhir.igtools.publisher.Publisher.generateHtmlOutputs(Publisher.java:8042)
at org.hl7.fhir.igtools.publisher.Publisher.generate(Publisher.java:5856)
at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:1018)
at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:856)
at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:10010)
if i change the id for status-antecedent it works, but i need the id with xhis, could anyone help me?, i already upgrade the
publisher.jar.
Thank you in advance :).
Jean Duteau (Mar 28 2022 at 18:50):
it's a case-sensitivity thing. you defined the ID as 'xhis-status-antecedent' but the file name it is looking for is 'Xhis-status-antecedent-validation'. Do you have something named 'Xhis' instead of 'xhis'?
Juan Manuel Caputo (Mar 28 2022 at 18:58):
In fact i have this other extension, that does not give any problem:
Extension: XhisImmunizationStatusExtension
Id: xhis-immunization-status-extension
Title: "xhis-immunization-status-extension"
Description: "This extension has information about the state of the vaccine"
// publisher, contact, and other metadata could be defined here using caret syntax (omitted)
- value[x] only date
Jean Duteau (Mar 28 2022 at 19:00):
you need to find out why the system is producing 'StructureDefinition-Xhis-status-antecedent-validation.html' instead of 'StructureDefinition-xhis...'
Chris Moesel (Mar 28 2022 at 19:28):
Hi @Juan Manuel Caputo. I just tried to reproduce this locally and it worked fine for me. Is it possible that you previously had a version w/ Xhis-status-antecedent
and then changed it to xhis-status-antecedent
? Sometimes case-insensitive file systems will keep the same case for existing files, even if you try to write them with a different case. I'd suggest deleting the output
and temp
folders, then trying again.
Last updated: Apr 12 2022 at 19:14 UTC