Home » Generators
Generators are algorithms or data sources used to assign variables with values. Several generators are available:
In Advanced Mode, you can generate data with complex data formats by combining generators for a single variable. For instance, a patient ID with the format XXX9999M (3 random characters, a number between 0000 and 9999 plus a static character at the end) can be generated by combining Excel, numeric, and string generators.
To combine generators:
Change the generator order by dragging and dropping them in the generator chain.
Use the Generator formatting field to add more formatting. You can create sophisticated values that mimic unstructured data using this functionality. Formatting can be quite powerful.
Generator | Formatting | Generated Value | Description |
Numeric 0-99 | He is {0} years old | He is 34 years old He is 17 years old He is 88 years old |
{0} is replaced with the generated value |
Numeric 0-99 | {0} + {0} = 2*{0} | 34 + 34 = 2*34 17 + 17 = 2*17 88 + 88 = 2*88 |
A generator can be used several times |
Numeric 0-99 | {0:D5} | 00042 93277 03007 15432 |
Adding leading zeros so the values has 5 digits |
String (length=1) Numeric 0-99999 |
{0} – {1} | P – 22 C – 42 I – 1 L – 82 |
Generators are combined and formatting is added |
Excel (first name) Excel (last name) |
{1}^{0} | Doe^John Smith^Suzan |
Generators are combined to create a field value having 2 components (subfields) |
NORTH AMERICA: +1 (877)-872-0027
WORLD: 1-418-872-4000
EMAIL: info@caristix.com
ASIA-PACIFIC
DENIS CANTIN
T: +61418441388
denis.cantin@caristix.com
NORTH AMERICA & EUROPE
JEAN-LUC MORIN
T: 418 872-4000
jeanluc.morin@caristix.com
HL7® / FHIR® are a registered trademarks of Health Level Seven International. The use of this trademark does not constitute an endorsement by HL7.