← Demo D3


In this phase 2 you

  • Create a folder for what you will create
  • Create AIP_logic
  • Add the Use_LLM

For details see:

The following diagram shows what you create:

P2
xxx


TOC:

  • P2.1 Create folder
  • P2.2 Configure
  • P2.3 Test Use_LLM (preview run)


P2.1 Create folder

If the marketplace has already been installed, you can not install it again. Instead, you need to create a folder for what you will install.

xxx


P2.2 Configure

  • Define Patient and Clinical Trial inputs
  • Read Ontology properties
  • Configure Use LLM
  • Define structured decision/reasoning output

File name / location.

xxx

Inputs

xxx

System prompt

I would like to determine if a patient is suitable for a trial depending on the trial’s inclusion and exclusion criteria, providing the reasoning to your decision.

If the patient is fully suitable for the trial, enroll it to the trial, return the following information in json form:

  • enrollment_decision: Suitable
  • enrollment_reasoning: 1 sentence reasoning why they are suitable

If the patient is NOT fully suitable for the trail, return the following information in json form:

  • enrollment_decision: Not suitable
  • enrollment_reasoning: 1 sentence reasoning why they are not suitable

If you are not able to determine whether the patient is suitable (e.g. because of relevant info missing), return the following information in json form:

  • enrollment_decision: Manual review required
  • enrollment_reasoning: 1 sentence reasoning why you couldn’t determine whether the patient is suitable or not

Task prompt

Here is the trial’s criteria: Criteria:

Here are details about the patient: Age:  Contraception: Diagnosis: Disease Stage: Gender: Health Status: Informed Consent: Lab results: Lifestyle Factors: Pregnancy Status: Treatment History:

Model: GPT-4.1 mini

xxx

Change the Output type to struct / Non-strict

  • Add first field: eligibility_decision of type String
  • Add second field: eligibility_reasoning of type String

xxx

xxx

View in folder

xxx

Save (do not publish yet)

xxx


P2.3 Test Use_LLM (preview run)

xxx

{
"eligibility_decision": "Not suitable",
"eligibility_reasoning": "The patient has been on metformin for only 2 months, 
   which is less than the required stable dose duration of at least 3 months prior to enrollment."
}

xxx


26.0902 (v1 26.0831)