Feature/mcp (#846)
* Added MCP support using SSE on http://localhost:8080/sse * Reverted change that IntelliJ complains about * Pre-rework * Cleaned up the code a fair bit * Renamed * Renamed * Running spotless * Reuse FhirContext in result serialization to make MCP server work with R5 * Added support for transactions * PoC tool for CDS Hooks * some cleanup * Upgrade of model protocol * Added comments * Removed field injection ... CDS to be changed to AutoConfig eventually * Adjusted to new builder pattern * Update src/main/java/ca/uhn/fhir/rest/server/MCPBridge.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * A bit of restructuring * More rework * Removing (suspected unnecessary) formatting * Add more example doc * Added a smoke- / passthrough-test * Applied spotless * Update src/main/java/ca/uhn/fhir/jpa/starter/mcp/RequestBuilder.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/main/java/ca/uhn/fhir/jpa/starter/mcp/RequestBuilder.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/main/java/ca/uhn/fhir/jpa/starter/mcp/ToolFactory.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/main/java/ca/uhn/fhir/rest/server/McpCdsBridge.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update src/main/java/ca/uhn/fhir/rest/server/McpCdsBridge.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Formatting * Added some documentation * spotless cares about MD? * Reverting back to default values * minor refinements * Fixed CDS hooks configuration * Fixed some wirings * Revert "Fixed some wirings" This reverts commit c9d3bc0b3b6756d7b15f5d2cf6100c99784fb868. * Revert "Fixed CDS hooks configuration" This reverts commit 67c4279100bf14432c164906235ea6348ee8af22. --------- Co-authored-by: Ádám Z. Kövér <adamzkover@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
5585170c7d
commit
680255ff62
42
src/test/resources/mcp/plandefinition-hello-patient.xml
Normal file
42
src/test/resources/mcp/plandefinition-hello-patient.xml
Normal file
@@ -0,0 +1,42 @@
|
||||
<PlanDefinition xmlns="http://hl7.org/fhir">
|
||||
<id value="HelloPatientPd" />
|
||||
<meta>
|
||||
<profile value="http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-recommendationdefinition" />
|
||||
</meta>
|
||||
<extension url="http://hl7.org/fhir/uv/cpg/StructureDefinition/cpg-knowledgeCapability">
|
||||
<valueCode value="executable" />
|
||||
</extension>
|
||||
<url value="http://example.org/PlanDefinition/HelloPatientPd" />
|
||||
<identifier>
|
||||
<use value="official" />
|
||||
<value value="PlanDefinition_HelloPatientPd" />
|
||||
</identifier>
|
||||
<name value="PlanDefinition_HelloPatientPd" />
|
||||
<title value="PlanDefinition - Hello Patient" />
|
||||
<type>
|
||||
<coding>
|
||||
<system value="http://terminology.hl7.org/CodeSystem/plan-definition-type" />
|
||||
<code value="eca-rule" />
|
||||
<display value="ECA Rule" />
|
||||
</coding>
|
||||
</type>
|
||||
<status value="draft" />
|
||||
<experimental value="true" />
|
||||
<date value="2024-09-28" />
|
||||
<description value="Demo PlanDefinition for Hello Patient" />
|
||||
<action>
|
||||
<title value="Hello, Patient!" />
|
||||
<description value="Please state the nature of the medical emergency." />
|
||||
<trigger>
|
||||
<type value="named-event" />
|
||||
<name value="patient-view" />
|
||||
</trigger>
|
||||
<condition>
|
||||
<kind value="applicability" />
|
||||
<expression>
|
||||
<language value="text/cql" />
|
||||
<expression value="true" />
|
||||
</expression>
|
||||
</condition>
|
||||
</action>
|
||||
</PlanDefinition>
|
||||
Reference in New Issue
Block a user