OFD-H medical extension
Connect institutional templates, shared clinical documents and issuance services to the general workspace.
Choose clinical fields and stationery
Under 文件 → 病历模板, select a blank document type or open the institutional designer. For an initial outpatient note, apply the field catalog for that type, then configure the hospital name, emblem, headers, footers and paper layout. Reopen a saved edition under 文件 → 病历模板 → 我的模板. General document masters use the separate 文档模板库 entry.
This version supplies 54 writing templates mapped to the 53 parts of WS/T 500—2016. The initial outpatient note, general outpatient/emergency record and lab report have built-in CDA field conversion. The other 51 templates accept host-supplied document headers, sections and entries through cdaData. Hospitals can design their own stationery and must confirm their document types, required data and recipient requirements.
From HIS input to issuance
- Use the common v3 fill input for patient and encounter identities, scalars and detail rows. A spreadsheet can produce the same payload. One fill-data contract
- Read
GET /ofd/templates/{id}/cda-profilefor the template OID, sections and structure. When structured data is required, supply approved identities and entries from the host. - Request
GET /ofd/drafts/{id}/cdafor the selected draft revision to obtain XML bytes andX-Content-SM3. For pre-issuance validation, submit those bytes asapplication/xmltoPOST /ofd/templates/{id}/cda-check. A failed check returns422with issue locations. - For issuance the hospital provides the approval record, signing service, certificates and trust configuration. The archive refers to that approved revision. Recipients verify against their own trust configuration. Sample seals and synthetic records exercise the workflow locally. Production interoperability requires testing in the institution's environment.
@quirekit/ofd-editor/medical exposes headless calls including getMedicalCdaProfile, inspectMedicalCda, exportMedicalRecordData and convertMedicalDraft. General editing, official documents and printing work independently. Workstation HTTP