{"node":"mcp.lab-poc.weget.cc","did":"did:web:mcp.lab-poc.weget.cc","simulation":true,"status":"SIMULĀCIJA","organisation":"Laboratorija B (sintētiska)","trust_anchor":"did:web:aimedexchange.pppa.lv:poc-anchor","mcpEndpoints":["https://mcp.lab-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":"lab.get_results","node":"mcp.lab-poc.weget.cc","title":"Laboratorijas rezultāti","description":"Returns laboratory results for a synthetic patient as a FHIR Bundle (DiagnosticReport + Observation, LOINC-coded), shaped after the HL7 Europe Laboratory 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 Laboratory 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"},"date_from":{"type":"string","format":"date"},"date_to":{"type":"string","format":"date"},"loinc_codes":{"type":"array","items":{"type":"string"},"description":"Optional filter, e.g. ['718-7','2160-0']"}}},"outputSchema":{"type":"object","required":["bundle","source"],"properties":{"bundle":{"type":"object","description":"FHIR R4 Bundle (type=collection)"},"source":{"type":"object","properties":{"node_did":{"type":"string"},"retrieved_at":{"type":"string","format":"date-time"}}}}}},{"name":"lab.list_reports","node":"mcp.lab-poc.weget.cc","title":"Laboratorijas pārskatu saraksts","description":"Lists report identifiers, dates and panel names for a synthetic patient, without result values.","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},"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":{"reports":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"issued":{"type":"string","format":"date-time"},"panel":{"type":"string"}}}}}}}]}