40.18.1UUID API

 

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

40.18.2Method: 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();