O3 Framework / usePrimaryIdentifierCode
usePrimaryIdentifierCode():
object
Defined in: packages/framework/esm-react-utils/src/usePrimaryIdentifierResource.ts:21
A React hook that retrieves the UUID of the primary patient identifier type from the metadata mapping configuration. This identifier type is commonly used to display the main identifier for a patient, such as their medical record number.
object
An object containing the primary identifier type UUID, loading state, and any error.
error:
undefined|Error
isLoading:
boolean
primaryIdentifierCode:
undefined|string