FHIR/HL7 Interoperability & Compliance

Lambent Synapse - Healthcare Data Standards Readiness

FHIR R4 Capability Statement

Lambent provides a FHIR R4 capability statement endpoint that describes the platform's readiness for healthcare data interoperability. This is currently a stub implementation with documented data mappings.

Endpoint:

GET https://api.example.com/api/integrations/fhir

Response (HTTP 200):

{ "resourceType": "CapabilityStatement", "status": "draft", "kind": "capability", "fhirVersion": "4.0.1", "format": ["json"], "rest": [{ "mode": "server", "resource": [ { "type": "Patient", "interaction": [{"code":"read"},{"code":"search-type"}] }, { "type": "Observation", "interaction": [{"code":"read"},{"code":"search-type"}] } ] }] }

Data Mapping: Lambent -> FHIR

Lambent FieldFHIR Resource.PathNotes
patients.pseudonymPatient.name[0].textPseudonym only - no real name stored
patients.age_rangePatient.extension(age-range)Range, not exact date of birth
patients.genderPatient.genderFHIR gender valueset
patients.diagnosisCondition.code.textICD-10 coding planned for v2
patients.consent_givenConsent.statusBoolean mapped to active/inactive
therapy_sessions.fluency_scoreObservation.component[0].valueQuantityCode: fluency-score
therapy_sessions.syntax_scoreObservation.component[1].valueQuantityCode: syntax-score
therapy_sessions.semantic_scoreObservation.component[2].valueQuantityCode: semantic-score
therapy_sessions.created_atObservation.effectiveDateTimeISO 8601
therapy_sessions.difficulty_levelObservation.extension(difficulty)Custom extension, 1-10 scale

HL7 v2.x Readiness

HL7 v2 ADT (Admit/Discharge/Transfer) message mapping is planned for a future release. Current data structures are designed to be compatible with ADT message segments:

  • PID: patients table
  • OBX: therapy_sessions
  • EVN: audit_logs

Synapse Approval Workflow

For safety and professional accountability, Synapse enforces a draft -> governance -> therapist approval -> session completion chain. No unapproved pack can be executed.

POST https://api.example.com/api/synapse/cases POST https://api.example.com/api/synapse/cases/:caseId/session-packs/draft POST https://api.example.com/api/synapse/session-packs/:packId/approve POST https://api.example.com/api/synapse/session-packs/:packId/complete GET https://api.example.com/api/synapse/cases/:caseId/timeline GET https://api.example.com/api/synapse/cases/:caseId/report

Audit Trail Specification

All critical clinical actions are logged in the audit_logs table. Synapse approval events are mandatory before session execution. Audit payloads are PII-free: raw patient text is never stored in audit records.

Event TypePayload Fields
user.loginuser_id
user.registeruser_id, role
patient.createpseudonym (no real name)
patient.uploadpatientId, input_type, word_count, text_hash_prefix
patient.exportpatientId
eval.runword_count, text_hash_prefix
synapse.case.upsertpatient_id, goals_count, language
synapse.pack.draftpack_id, blocked, issues
synapse.pack.reviewdecision, edited_task_count
synapse.pack.completetask_result_count, has_notes
synapse.case.reportcase_id
api_key.createkey_id
api_key.revokekey_id

Related Documentation

Privacy PolicyTerms of ServiceData ProtectionAPI Documentation