web stats
Skip to end of metadata
Go to start of metadata

This code template type uses the FHIR Resource Builder to create a new FHIR resource or data type. Once created, you can store the object in a map (such as the channel map) or return the object directly from the function itself.

This code template creates a JavaScript function. You can edit the name of the function and the arguments it takes in with the Function Signature field. For example, you could rename the function "createPatient" and have it expect a single argument, "msg".

After adding or removing arguments, click on Update JSDoc and the JSDoc field below will automatically have those new arguments added into the documentation. You can then edit it to give your own argument descriptions.

With the Result option, you can choose to store the resource in a variable map, or just return it directly to the caller of the JavaScript function.

  • No labels