Stream: IG creation
Topic: non FSH examples
Brett Esler (Jun 17 2021 at 02:15):
hi I am looking at how to include resource examples that are not authored in FSH in a FSH project e.g. adding Patient resource examples directly as FHIR json rather than generated by FSH - any advice would be great
Shovan Roy (Jun 17 2021 at 02:18):
@Brett Esler did you with placing the json file directly under "input/examples" folder ? name the file like "Patient-2643ada4-a175-11ea-9c20-47ffa6607fbc.json" where the uuid is the 'id' of the resource (Patient in this case)
Brett Esler (Jun 17 2021 at 02:33):
thanks @Shovan Roy i'll give ita go
Brett Esler (Jun 17 2021 at 03:24):
Thanks @Shovan Roy that is working
Jose Costa Teixeira (Jun 17 2021 at 06:53):
FWIW, you can put examples in the resources folder as well. the important thing is the id of the resource and the file have to be in the form <resourcetype>-id.json
or <resourcetype>/id.json
or id.json
Last updated: Apr 12 2022 at 19:14 UTC