Stream: committers
Topic: add just validator to github
John Moehrke (May 01 2019 at 17:24):
IHE is taking baby steps toward full use of HL7 IG publication. However today I have them managing their conformance resources in GitHub. This is an intermediate step that will go away when we move to full IG publication. I would like to add the FHIR validator to pull requests. Not the whole IG build, just validator. Can someone walk me through how I can do this? see our github repository https://github.com/IHE/fhir
Josh Mandel (May 01 2019 at 21:12):
Can you clarify what "validator" means here? What would be validated, what would the output be, and where would the output go?
Josh Mandel (May 01 2019 at 21:12):
Is there a particular CLI invocation you do today to generate the output you have in mind ?
John Moehrke (May 02 2019 at 02:43):
if I knew those details, I likely would be much further along. I understand that within the IG build, it does a validation on the capabilityStatement, StructureDefinition, etc... to assure that they are well formed. That is, Valid relative to the FHIR schema. When they are not valid, the tool kicks out errors... like we see in the output of the IG build. However I don't have an IG, I just want to have the validator look at all of the files in that GitHub and validate them... this would be part of a Pull Request validation...
Grahame Grieve (May 02 2019 at 18:03):
you still need an IG. you just don't need to write any content
John Moehrke (May 02 2019 at 18:39):
I was thinking I could do that... but the struggle is that I want new xml files picked up automatically... AND the gitHub holds many ImplementationGuide.xml files... not just one. and all I really want done is the validation with errors/warnings spit back.
John Moehrke (May 02 2019 at 18:39):
@Luke Duncan is thinking he can help automate it using hapi server validation?
Grahame Grieve (May 02 2019 at 19:17):
that would be a different stack
Grahame Grieve (May 02 2019 at 19:18):
but you can set up a single IG that picks up all the files automatically
Eric Haas (May 03 2019 at 20:13):
That is what I do. There is limit to the number of files. You can not validate 100 synthesis patient in one go. But it’s pretty slick
Grahame Grieve (May 04 2019 at 01:06):
what limit to file numbers?
Eric Haas (May 04 2019 at 02:34):
I run out of memory with too many files to validate. Synthea creates thousands of files for 100 patients. It still handles a bucketload of them at a time.
Grahame Grieve (May 04 2019 at 07:48):
hmm. ok. I'll investigate at some stage
Eric Haas (May 04 2019 at 22:29):
Well I could just bump up my heap size.
Grahame Grieve (May 04 2019 at 23:07):
what is it?
Last updated: Apr 12 2022 at 19:14 UTC