CareRequestConfiguration defines record-type-specific configuration for care requests, such as service, drug, or admission requests. It associates a care request record type and request category with the objects selected to configure the request. A care request can have one or more associated record types.
This type configures how a care request is described; it does not define the referenced record type or objects. In particular, careRequestRecordType identifies a record type, while careRequestType describes the request category. The objects selected through careRequestRecords are metadata references, not individual care request data records.
Key Elements
| Element | What the Element Controls |
|---|---|
careRequestRecordType |
Required string identifying the care request's record type. It references RecordType metadata. The documented example uses DrugRequest. |
careRequestType |
Required string describing the request category, such as an appeal, service request, or admission. The documented drug-request example uses Drug Request. These examples are not an exhaustive list of allowed categories. |
careRequestRecords |
Repeated structure listing the objects selected to configure the care request. Each entry contains a careRequestRecord element. |
careRequestRecord |
Required string within each careRequestRecords entry. Identifies a selected object and references CustomObject metadata; it does not contain an object definition. |
isActive |
Boolean indicating whether the care request is active: true for active or false for inactive. |
isDefaultRecordType |
Boolean indicating whether the care request's record type is the default: true for default or false otherwise. This is separate from activation. |
masterLabel |
Required user-friendly name defined when the configuration is created. |
Behavior and Constraints
Keep the record type identifier separate from the request category. In the documented drug-request configuration, careRequestRecordType is DrugRequest, while careRequestType is Drug Request. These values serve different purposes and are not interchangeable.
Activation and default-record-type status are independent settings. isActive describes whether the care request is active; isDefaultRecordType describes whether its record type is the default. The documented example sets both to false, but those example values do not establish platform defaults.
Each careRequestRecords entry selects one object through its nested careRequestRecord. For example, a drug-request configuration selects CareRequestItem and CareRequestDrug in separate entries. Neither entry defines the object or contains a care request data record.
Deployment and Retrieval
Components use the .careRequestConfiguration suffix and reside in the careRequestConfigurations folder. The type extends Metadata and inherits its fullName field.
CareRequestConfiguration supports the wildcard * in a package.xml manifest. The documented manifest uses * as the member for this type. See Deploying and Retrieving Metadata with the Zip File for manifest-based deployment and retrieval.
Related record-type configuration can span several objects. The documented drug-request deployment example includes these accompanying components:
-
RecordTypemembersCareRequest.DrugRequest,CareRequestDrug.DrugRequest,CareRequestItem.DrugRequest, andCase.DrugRequest. - The
BusinessProcessmemberCase.DrugRequest.
That example illustrates a multi-object setup, not a mandatory dependency list for every CareRequestConfiguration. The business process is supporting metadata in the example, not a direct reference element on this type.
Relationships
The direct metadata connections are the record type identified by careRequestRecordType and the objects selected through careRequestRecords. These references are distinct from the additional components shown in the deployment example.
References
-
CustomObject:careRequestRecord, nested within eachcareRequestRecordsentry. -
RecordType:careRequestRecordType.
Common Questions
What is the difference between careRequestRecordType and careRequestType?
careRequestRecordType identifies a record type, such as DrugRequest. careRequestType describes the request category, such as Drug Request.
Does careRequestRecord contain a care request data record?
No. It identifies an object selected to configure the care request and references CustomObject metadata. It contains neither an object definition nor an individual data record.
Does making a care request active also make its record type the default?
Activation and default status are separate settings. Use isActive for activation and isDefaultRecordType for default-record-type status.
Can I retrieve CareRequestConfiguration with a wildcard?
Yes. The type supports * in package.xml. Its component files use the .careRequestConfiguration suffix in the careRequestConfigurations folder.