{"node":"mcp.hospital-b-poc.weget.cc","did":"did:web:mcp.hospital-b-poc.weget.cc","simulation":true,"status":"SIMULĀCIJA","organisation":"Slimnīca B (sintētiska)","trust_anchor":"did:web:aimedexchange.pppa.lv:poc-anchor","mcpEndpoints":["https://mcp.hospital-b-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":"hospital.get_discharge_summary","node":"mcp.hospital-b-poc.weget.cc","title":"Izraksts","description":"Returns the latest discharge report for a synthetic patient as a FHIR Composition, shaped after the HL7 Europe Hospital Discharge Report profile.","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":"HL7 Europe Hospital Discharge Report (FHIR R4)"},"inputSchema":{"type":"object","required":["patient_pseudonym"],"properties":{"patient_pseudonym":{"type":"string","pattern":"^PSN-[A-Z0-9]{10}$","description":"Synthetic patient pseudonym issued by the requesting org's anonymisation gateway"},"encounter_id":{"type":"string"}}},"outputSchema":{"type":"object","required":["composition","source"],"properties":{"composition":{"type":"object"},"source":{"type":"object"}}}},{"name":"hospital.get_patient_summary","node":"mcp.hospital-b-poc.weget.cc","title":"Pacienta kopsavilkums","description":"Returns an International Patient Summary (IPS) document for a synthetic patient.","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":"HL7 IPS (FHIR R4)"},"inputSchema":{"type":"object","required":["patient_pseudonym"],"properties":{"patient_pseudonym":{"type":"string","pattern":"^PSN-[A-Z0-9]{10}$","description":"Synthetic patient pseudonym issued by the requesting org's anonymisation gateway"}}},"outputSchema":{"type":"object","properties":{"bundle":{"type":"object"},"source":{"type":"object"}}}},{"name":"hospital.submit_referral","node":"mcp.hospital-b-poc.weget.cc","title":"Nosūtījuma projekts","description":"Creates a referral DRAFT at the receiving hospital. Never final: status stays 'draft' until a clinician at the sending organisation commits it outside the agent.","x-lv-mcp-med":{"clinical_role":"clinical_documentation_support","data_tier":"T0","mode":"propose","allowed_purposes":["treatment"],"legal_basis_required":true,"treatment_relationship_required":true,"simulation":true},"inputSchema":{"type":"object","required":["patient_pseudonym","specialty","reason_text"],"properties":{"patient_pseudonym":{"type":"string","pattern":"^PSN-[A-Z0-9]{10}$","description":"Synthetic patient pseudonym issued by the requesting org's anonymisation gateway"},"specialty":{"type":"string"},"reason_text":{"type":"string","maxLength":2000}}},"outputSchema":{"type":"object","properties":{"draft_id":{"type":"string"},"status":{"const":"draft"}}}}]}