REST API Scenarios
The following scenarios provide examples of how to create orders with the REST API. Each scenario includes a sample payload and a description of the order being created.
These examples are not entirely comprehensive. However, since the REST API is a wrapper on top of the GraphQL API, the easiest way to determine the correct request body is to review the GraphQL schema. The GraphQL playground will display the correct enums and specific personalCancerHistory request objects.
Sample Request Payload | Sample Request Payload |
---|---|
Female Patient with personal history of breast cancer, family history of prostate cancer, ordering BRACANALYSIS with MyRisk Update. Also includes an insurance policy. | Show Example
|
Unaffected Female Patient with family history of breast cancer ordering BRACANALYSIS with MyRisk Update. Also includes a request for TC and RiskScore. No insurance. | Show Example
|
Male Patient with personal history of prostate cancer ordering PROLARIS. Billing provided by institution. | Show Example
|
Male Patient with personal history of colon cancer, colon polyps, family history of endometrial cancer ordering Colaris. | Show Example
|
Female Patient with Ovarian Cancer ordering MyChoice. | Show Example
|