FHIR Chat · Using Inferno to test a new IG · inferno

Stream: inferno

Topic: Using Inferno to test a new IG


view this post on Zulip Stephen Moore (Jan 06 2022 at 17:01):

@Robert Scanlon I believe you told me at one time there exists a procedure that would allow someone to take an IG and perform some magic to generate Ruby code that could then be used in Inferno to test implementations of the IG. That is a huge hand wave, and I know that. If my memory is correct, can you point me at documentation or a github repo where this is done. I would like to explore so we can make use of existing tooling (e.g., Inferno). If my memory is wrong and there is a better tool for this, a pointer in that direction would be most appreciated.

view this post on Zulip Yunwei Wang (Jan 19 2022 at 14:56):

Hello Stephen, Inferno provide a GenericGenerator to generate tests from StructureDefinitions. What you need to do is,

  • unzip IG to /resources/[ig folder name] folder
  • run command bundle exec rake:generate['generic','ig folder name']
    For example, if I want to generate tests for IPS without any special treatment, then I copies IPS to /resources/ips folder and run command bundle exec rake:generate['generic','ips']
    If you need special treatment, then you need to create your own generator inheriting from Base generator. There are three generators under /generator folder which demo how to create your own generators.
    Please let me know if you have more questions.

Last updated: Apr 12 2022 at 19:14 UTC