Create a quote for patient home visits based on the specified visit details.
This action is available in API version 63.0 and later.
Special Access Rules
The Create Quote for Home Visits action is available when Home Health is enabled. This action is available to users that have access to Home Health Quote perm set.
Required The name of the quote to be created for a patient’s home visits.
priceBookId
String
Required The ID of the price book to use to create the quote for a patient’s home visits.
accountId
String
The person account ID of the patient for whom the quote is to be created.
opportunityId
String
The ID of the opportunity to use to create the quote for a patient’s home visits.
startDateTime
DateTime
The date and time when the quote takes effect.
endDateTime
DateTime
The date and time after which the quote is no longer valid.
workTypeIds
List<String>
The collection of IDs of work types that the quote is created for.
visitCount
Integer
The number of home visits that the quote is created for.
isTravelInventoryIncluded
Boolean
Indicates whether the travel and inventory associated with the home visit are included in the quote.
resourceTravelDistance
Double
The distance that a care resource has to travel to provide home healthcare to the patient.
pricingPreference
String
The attribute-based pricing preference that’s used as an input in the PlaceQuote API for creating the quote. Possible values are:
System
Force
Skip.
The default value is System.
currencyCode
String
The currency code to be used in the quote.
productPricingAttributeDetails
List<Object>
A collection of Apex heathcloudext_productPricingAttributeDetails records that contain the pricing attribute details for the products included in the quote.
Outputs
Output
Type
Description
quoteId
String
The ID of the quote record that was created for the patient’s home visits.
errorMessage
String
The description of the error encountered while creating the quote.
errorCode
String
The code of the error encountered while creating the quote.
Example
POST
This sample request is for the Create Quote for Home Visits action.