Stream: IG creation
Topic: examples referencing
John Moehrke (Jul 10 2020 at 17:56):
I notice that the build now considers an references in examples must be resolvable. I am trying to do an example an an AuditEvent, it will thus point at many other things (devices, patient, observation, location, etc). The other things are not important for my use-case of showing an example of an AuditEvent. I guess I could include a bunch of dummy resources just to make the build happy. I was just wondering if there is a pattern where I can avoid that? I had hoped that there was a http root that the build tools would know were examples and thus not throw the error. This is an error, so I can't just suppress it.
error Unable to resolve resource "Patient/example"
John Moehrke (Jul 10 2020 at 19:02):
all these errors are nicely grouped at the bottom of the QA as Reference_REF_CantResolve
David Pyke (Jul 10 2020 at 19:19):
I had to include them in my IG. I'm not aware of a canonical URL for core examples
John Moehrke (Jul 10 2020 at 20:03):
good thing sushi makes that easy. so now have a dummy fsh file to create all my dummy examples
Mohammad Jafari (Jul 10 2020 at 20:24):
is it possible to use dummy contained resources if that makes this easier?
John Moehrke (Jul 10 2020 at 20:25):
it is. but doesn't really make anything more easy
Grahame Grieve (Jul 10 2020 at 20:28):
it's possible but it's a bad idea.
John Moehrke (Jul 10 2020 at 21:10):
understand. I am not against doing the dummy examples. I just didn't want to do it and find out that there was an established pattern that I was ignorant of.
Last updated: Apr 12 2022 at 19:14 UTC