{"node":"mcp.eu-hospital-poc.weget.cc","did":"did:web:mcp.eu-hospital-poc.weget.cc","simulation":true,"status":"SIMULĀCIJA","organisation":"ES slimnīca (sintētiska, EE)","trust_anchor":"did:web:mcp.eu-hospital-poc.weget.cc:anchor","mcpEndpoints":["https://mcp.eu-hospital-poc.weget.cc/mcp/"],"profile":"LV-MCP-MED-0.1-draft","request_envelope":{"type":"object","description":"Carried in MCP request _meta on every call; verified by the called node before any data is returned.","required":["agent_did","org_did","presentation","purpose","correlation_id"],"properties":{"agent_did":{"type":"string","example":"did:web:rakus.weget.cc:agents:rakus-agt-003"},"org_did":{"type":"string","example":"did:web:rakus.weget.cc"},"presentation":{"type":"string","description":"VP (JWT) containing the ExchangeParticipantCredential of the org and the agent mandate credential issued by the org IdP"},"purpose":{"type":"string","enum":["treatment","administration","procurement","ai_governance","secondary_use"]},"legal_basis_ref":{"type":"string","description":"Code of the declared legal basis, e.g. 'lv.treatment_law', 'consent:<credential-id>'; required when the tool's data_tier is T2 or T3, or the tool's legal_basis_required is true"},"treatment_relationship_ref":{"type":"string","description":"Reference to the encounter/episode establishing the treatment relationship (synthetic in the pilot)"},"correlation_id":{"type":"string","format":"uuid"}}},"errors":[{"code":"DENIED_NO_CREDENTIAL","when":"presentation missing, expired, revoked or issuer not in the trust registry"},{"code":"DENIED_PURPOSE","when":"declared purpose not in the tool's allowed_purposes"},{"code":"DENIED_LEGAL_BASIS","when":"legal_basis_ref missing or not accepted for this tool"},{"code":"DENIED_TREATMENT_RELATIONSHIP","when":"tool requires a treatment relationship and none is referenced"},{"code":"DENIED_DATA_TIER","when":"requested data exceeds the tier permitted in this environment (pilot: T0 only for clinical tools)"},{"code":"NOT_FOUND","when":"no record for the given pseudonym or identifier"}],"tools":[{"name":"xborder.get_patient_summary","node":"mcp.eu-hospital-poc.weget.cc","title":"Pārrobežu pacienta kopsavilkums","description":"Same contract as hospital.get_patient_summary, served by a node whose credential chains to a DIFFERENT trust anchor. Demonstrates cross-anchor verification: the RAKUS node accepts the answer only if the foreign anchor is listed as trusted in registry.pppa.lv, and the foreign node accepts RAKUS only if PPPA is trusted by its anchor.","x-lv-mcp-med":{"clinical_role":"clinical_documentation_support","data_tier":"T0","mode":"read","allowed_purposes":["treatment"],"legal_basis_required":true,"treatment_relationship_required":true,"simulation":true,"exchange_format":"European EHR exchange format — Patient Summary (FHIR R4)"},"inputSchema":{"type":"object","required":["patient_pseudonym","country"],"properties":{"patient_pseudonym":{"type":"string","pattern":"^PSN-[A-Z0-9]{10}$","description":"Synthetic patient pseudonym issued by the requesting org's anonymisation gateway"},"country":{"type":"string","pattern":"^[A-Z]{2}$"}}},"outputSchema":{"type":"object","properties":{"bundle":{"type":"object"},"source":{"type":"object","properties":{"node_did":{"type":"string"},"trust_anchor":{"type":"string"}}}}}}]}