Node/Typescript module for generating random test FHIR data.
This library provides a set of factory functions for generating test FHIR data. Its purpose is to allow for easy on-the-fly generation of FHIR resources for writing unit tests. The factory functions use the fishery module for factory generation.
Due to how this module uses DeepPartial<T> objects to allow for overriding resource properties during generation, the factory functions do not check for required FHIR properties. FHIR resources returned from these factory functions are not guaranteed to be
Randomly generated resources will not pass back any References in any properties. Due to the relational nature of these fields, it would not make sense to randomly generate a reference to a resource that doesn't exist.
- STU3
- R4 (Partial)
Auto-generated docs can found in ./docs.md
.
Read the guide for contributing in CONTRIBUTING.md.