On this page:

20.13UUID API

 

The Uuid object can be used to generate UUIDs, which are sometimes useful as temporary placeholders in message processing.

20.13.1Method: newPlaceholderId()

 

This method generates a new UUID suitable for use as a FHIR placeholder resource ID.

Inputs:

  • This method does not take any arguments.

Outputs:

  • Returns a UUID suitable for use as a placeholder resource ID (e.g. urn:uuid:ea193c37-55a3-4d36-9833-0e26f467be23).

Example:

var condition = ResourceBuilder.build('Condition');
condition.id = Uuid.newPlaceholderId();