Process Criteria Matching Response

Parses a GPT-generated JSON response to evaluate each inclusion and exclusion criterion for a given Research Study Candidate, determining whether each criterion is matched or not. This action stores the GPT response in the Care Program Enrollment Evaluation Result entity and computes the number of matched inclusion criteria and exclusion criteria, returning these counts as output.

This action is available in API version 62.0 and later.

Special Access Rules 

The Assign Candidate to Research Study Group action is available in Enterprise and Unlimited Editions with Life Sciences Cloud and the Participant Enrollment Add-On license. Additionally, the org must be enabled with Research Study Randomization.

Supported REST HTTP Methods 

URI: /services/data/vXX.X/actions/standard/processCriteriaMatchingResp

Where XX.X is the latest API version.

Formats: JSON, XML

HTTP Methods: POST

Authentication: Authorization: Bearer TOKEN

Where TOKEN is your OAuth access token.

Inputs 

InputTypeDescription
researchStudy​CandidateIdstringRequired
ID of the research study candidate for which GPT response is received.
gptResponsestringRequired
GPT Response of PromptTemplate Invocable action will be input to this action.

Outputs 

OutputTypeDescription
matchedInclusionCountstringNumber of inclusion criteria matched.
matchedExclusionCountstringNumber of exclusion criteria matched.

Example 

POST

This sample request is for the Process Criteria Matching Response action.

1{
2    "inputs": [
3        {
4            "researchStudyCandidateId": "7evxx0000000001AAA",
5            "gptResponse": {
6                "EligibilityResponse": [
7                    {
8                        "Id": "0bkxx0000000001AAA",
9                        "EligibilityCriteria": "Adult SARI patients with 2019-ncov infection confirmed by PCR",
10                        "Result": "Unknown",
11                        "Reason": "No information provided"
12                    },
13                    {
14                        "Id": "0bkxx000000001dAAA",
15                        "EligibilityCriteria": "Age < 78",
16                        "Result": "Match",
17                        "Reason": "Patient is 50 years old."
18                    },
19                    {
20                        "Id": "0bkxx000000003FAAQ",
21                        "EligibilityCriteria": "Pregnant",
22                        "Result": "Not Match",
23                        "Reason": "Patient is male."
24                    },
25                    {
26                        "Id": "0bkxx000000004rAAA",
27                        "EligibilityCriteria": "Allergic to Gluten",
28                        "Result": "Match",
29                        "Reason": "Patient has Gluten Allergy."
30                    }
31                ]
32            }
33        }
34    ]
35}

This sample response is for the Process Criteria Matching Response action.

1{
2  "inclusionCriteriaMatchCount": 1,
3  "exclusionCriteriaMatchCount": 1
4}