{
  "services": [
    {
      "hook": "order-select",
      "id": "aimedagent-medication-screen",
      "title": "AI MedAgent medication screen",
      "description": "Screens selected and drafted medication orders against the patient's recorded allergies, existing orders and renal function, and states which of the eight standard screening classes it performed and which it did not. Returns a coverage card on every invocation, including when it finds nothing. DEMONSTRATION ENDPOINT. Not a medical device, not for clinical use, and not authenticated. Do not connect to a production EHR.",
      "prefetch": {
        "patient": "Patient/{{context.patientId}}",
        "conditions": "Condition?patient={{context.patientId}}&category=problem-list-item",
        "allergies": "AllergyIntolerance?patient={{context.patientId}}",
        "medications": "MedicationRequest?patient={{context.patientId}}&status=active",
        "renal": "Observation?patient={{context.patientId}}&code=http://loinc.org|33914-3,http://loinc.org|77147-7,http://loinc.org|48642-3,http://loinc.org|2160-0&_count=5"
      }
    },
    {
      "hook": "patient-view",
      "id": "aimedagent-record-review",
      "title": "AI MedAgent record review",
      "description": "On opening a chart, reports what can and cannot be established about this patient's medication safety from the data supplied. Informational only. DEMONSTRATION ENDPOINT. Not a medical device, not for clinical use, and not authenticated. Do not connect to a production EHR.",
      "prefetch": {
        "patient": "Patient/{{context.patientId}}",
        "conditions": "Condition?patient={{context.patientId}}&category=problem-list-item",
        "allergies": "AllergyIntolerance?patient={{context.patientId}}",
        "medications": "MedicationRequest?patient={{context.patientId}}&status=active",
        "renal": "Observation?patient={{context.patientId}}&code=http://loinc.org|33914-3,http://loinc.org|77147-7,http://loinc.org|48642-3,http://loinc.org|2160-0&_count=5"
      }
    }
  ]
}