You are here:
InsContractService:getContractDetail
Use
this service to return a ProductJSON that you can use with the
InsQuoteService:createUpdateQuote service to update the
Contract JSON with, or to create a renewal quote with replacement products.
Method: getContractDetail
How It Works
For example, if the Silver My Choice HDHP 300 product has a replacement product of Silver My Choice HDHP 400, the Contract JSON will replace the Silver My Choice HDHP 300 product with Silver My Choice HDHP 400.
-
Uses the
contractIdto retrieve contract information. -
Using the contract information, retrieves all of the
ContractLineItemsassociated with the contract.If
rootItemIdsis specified, the service retrieves only theContractLineItemswith ids in therootItemIdslist and their childContractLineItems. -
If the
getReplacementProductsoption is set totrue, the service iterates through all the root-levelContractLineItems. If the product associated with a givenContractLineItemhas a replacement product, the service replaces the child product with the replacement product in the contract JSON.
An
effectiveDate option is also available if you want to use a
replacement product that will be effective until some future date. To do this,
select the replacement product whose effective date is less than the
effectiveDate and whose end date is null or is greater than the
effectiveDate.
By default, the service will use the active census type System that is attached to the contracted Group. If this is not available, it uses the enrollment census from the contract.
Remote Options
Option |
Description |
|---|---|
|
Required. Id of target contract. |
|
Optional. Default = If
set to |
|
Optional. Used if If this option is not provided, default = today. |
|
Optional. Use only when you set Value must be No default value is entered if no value is set. Use this option when you need to price
replacement products. It corresponds to the |
|
When set to
When set to This option is useful if you're running an Integration Procedure in batch mode and it contains this service. |
Output JSON
Contract JSON of target contract. (Sample below.)
The fields returned in the Contract JSON can be modified by updating the
GetContractDetailFields fieldSets on the Contract and
ContractLineItem objects.
{
"totalSize": 1,
"records": [
{
"displaySequence": -1,
"Id": "800f4000000Bi7mAAC",
"AccountId": "001f400000emqVVAAY",
"ContractNumber": "00024803",
"effectiveDate": "2018-12-28",
"endDate": "2019-01-27",
"ContractTerm": 1,
"EnrollmentCensusId__c": "a3wf4000000LspPAAS",
"Pricebook2Id": "01sf4000007PvM2AAK",
"childProducts": {
"totalSize": 2,
"records": [
{
"displaySequence": -1,
"Id": "a2If4000001HvLtEAK",
"renewalSourceId": "a2If4000001HvLtEAK",
"AttributeSelectedValues__c": "{\"SLEEPSTUDIESOON\":\"Not covered.\",\"SLEEPSTUDIESIN\":80,\"HITECHIMAGINGOON\":\"Not covered.\",\"HITECHIMAGINGIN\":90,\"XRAYLABOON\":\"Not covered.\",\"XRAYLABIN\":90,\"InpatHabOutofnetwork\":50,\"InpatHabInnetwork\":80,\"InpatRehabOutOfnetwork\":50,\"InpatRehabInnetwork\":80,\"SNFOut-of-network\":50,\"SNFIn-network\":80,\"Inpatoutofnetwork\":50,\"Inpatinnetwork\":80,\"ATTRIBUTE-079\":80,\"ATTRIBUTE-078\":100,\"ATTRIBUTE-081\":70,\"ATTRIBUTE-080\":80,\"ATTRIBUTE-083\":80,\"ATTRIBUTE-082\":10,\"WELLBABYOON\":50,\"WELLBABYINN\":\"No charge.\",\"Tobacco OON\":\"No charge.\",\"Tobacco INN\":\"No charge.\",\"MAMMOOON\":80,\"MAMMOIN\":90,\"IMMUNOON\":80,\"IMMUNIN\":\"No charge.\",\"GYNOON\":80,\"GYNINN\":\"No charge.\",\"EXAMOON\":70,\"EXAMIN\":10,\"OUTPAT Treatment OON\":60,\"OUTPAT Treatment IN\":50,\"OUTPAT SVC OON\":50,\"OUTPAT SVC IN\":20,\"PROSORTHOON\":50,\"PROSORTHIN\":75,\"DIABETESOON\":50,\"DIABETESIN\":75,\"EQOON\":50,\"EQINN\":75,\"RESPITE OON\":30,\"RESPITE IN\":80,\"HOSPICE OON\":30,\"HOSPICE IN\":80,\"HOMEOON\":30,\"HOMEIN\":80,\"ATTRIBUTE-073\":12000,\"ATTRIBUTE-071\":5000,\"ATTRIBUTE-072\":6000,\"ATTRIBUTE-070\":3000,\"ATTRIBUTE-076\":60,\"ATTRIBUTE-075\":80,\"ATTRIBUTE-069\":50,\"INCP\":25,\"ATTRIBUTE-066\":50000,\"ATTRIBUTE-064\":3000,\"EMPLOYEEFAMILY\":5775,\"SGCOINSURANCE\":\"$70\",\"SGDEDUCTIBLE\":\"$6000\"}",
"productId": "01tf4000003GgJUAA0",
"Price": 4504.5,
"productName": "Silver My Choice HDHP 3000",
"ProductCode": "MCHDHPCA3000",
"RecordTypeName__c": "Product",
"childProducts": {
"totalSize": 0,
"records": [
{
"displaySequence": -1,
"Id": "a2If4000001HvLvEAK",
"renewalSourceId": "a2If4000001HvLvEAK",
"AttributeSelectedValues__c": "{\"WELLNESS-EXAM\":20,\"ILLNESS\":4}",
"ParentItemId__c": "a2If4000001HvLtEAK",
"productId": "01tf4000003GgJjAAK",
"pciId": "a2vf4000000RLG2AAO",
"Price": 0,
"productName": "Acupuncture Office Professional",
"ProductCode": "AOP",
"RecordTypeName__c": "CoverageSpec",
"isSelected": true
},
{
"displaySequence": -1,
"Id": "a2If4000001HvLwEAK",
"renewalSourceId": "a2If4000001HvLwEAK",
"AttributeSelectedValues__c": "{\"WELLNESS-EXAM\":20,\"ILLNESS\":4}",
"ParentItemId__c": "a2If4000001HvLtEAK",
"productId": "01tf4000003GgJeAAK",
"pciId": "a2vf4000000RLG3AAO",
"Price": 0,
"productName": "Acupuncture Outpatient Professional",
"ProductCode": "AOUP",
"RecordTypeName__c": "CoverageSpec",
"isSelected": true
}
]
}
},
{
"displaySequence": -1,
"Id": "a2If4000001HvLuEAK",
"renewalSourceId": "a2If4000001HvLuEAK",
"AttributeSelectedValues__c": "{\"SQUAREFEET\":\"2018-04-02T07:00:00.000Z\"}",
"productId": "01tf4000003GgIvAAK",
"Price": 3575,
"productName": "Bronze My Choice HDHP 2500 CA",
"ProductCode": "MCHDHPCA2500",
"RecordTypeName__c": "Product",
"childProducts": {
"totalSize": 0,
"records": [
{
"displaySequence": -1,
"Id": "a2If4000001HvLxEAK",
"renewalSourceId": "a2If4000001HvLxEAK",
"AttributeSelectedValues__c": "{\"WELLNESS-EXAM\":20,\"ILLNESS\":4}",
"ParentItemId__c": "a2If4000001HvLuEAK",
"productId": "01tf4000003GgJeAAK",
"pciId": "a2vf4000000RLFtAAO",
"Price": 2788.5,
"productName": "Acupuncture Outpatient Professional",
"ProductCode": "AOUP",
"RecordTypeName__c": "CoverageSpec",
"isSelected": true
},
{
"displaySequence": -1,
"Id": "a2If4000001HvLyEAK",
"renewalSourceId": "a2If4000001HvLyEAK",
"AttributeSelectedValues__c": "{\"WELLNESS-EXAM\":20,\"ILLNESS\":4}",
"ParentItemId__c": "a2If4000001HvLuEAK",
"productId": "01tf4000003GgJjAAK",
"pciId": "a2vf4000000RLFsAAO",
"Price": 2788.5,
"productName": "Acupuncture Office Professional",
"ProductCode": "AOP",
"RecordTypeName__c": "CoverageSpec",
"isSelected": true
}
]
}
}
]
}
}
]

