Experimental Templates
This page tracks templates that are under development or have known issues. Use these at your own risk and please contribute fixes!
Template Status
Template Type | Status | Known Issues | Location |
---|---|---|---|
Problems | ✅ Stable | None | Bundled in default configs |
Medications | ✅ Stable | None | Bundled in default configs |
Notes | ✅ Stable | None | Bundled in default configs |
Allergies | ⚠️ Experimental | Clinical status parsing bugs, round-trip issues | dev-templates/allergies/ |
Using Experimental Templates
Allergies (AllergyIntolerance)
Status: ⚠️ Experimental - Known bugs prevent inclusion in bundled configs
Known Issues: - Clinical status parsing has bugs (see integration test comments) - Round-trip conversion may not preserve all data correctly - Template logic is fragile and may fail with edge cases
Location: dev-templates/allergies/
Usage: 1. Copy experimental files to your custom config:
# After running: healthchain init-configs my_configs
cp dev-templates/allergies/allergies.yaml my_configs/interop/cda/sections/
cp dev-templates/allergies/allergy_*.liquid my_configs/templates/cda_fhir/
cp dev-templates/allergies/allergy_*.liquid my_configs/templates/fhir_cda/
-
Enable in your CCD document config:
-
Test thoroughly with your specific data before production use.
Contributing Template Fixes
We welcome contributions to improve experimental templates!
For Allergies:
- Clinical status mapping - The biggest issue is parsing clinical status from CDA observations
- Round-trip fidelity - Ensure CDA → FHIR → CDA preserves all important data
- Edge case handling - Make templates robust to various CDA structures
General Guidelines:
- Test with real data - Use the example CDAs in
resources/
for testing - Add comprehensive tests - Include both unit and integration tests
- Document limitations - Be clear about what your fix does/doesn't solve
- Follow template patterns - Keep consistent with existing stable templates
Submitting Fixes:
- Fix the templates in
dev-templates/
- Add/update tests to cover your changes
- Move stable templates to bundled configs in your PR
- Update this documentation
Roadmap
Next Priorities: 1. 🎯 Allergies stabilization - Fix clinical status parsing and round-trip issues 2. 🔮 Future sections - Procedures, Vital Signs, Lab Results 3. 🔧 Template tooling - Better validation and testing framework
Want to help? Check our contribution guidelines and pick up one of these challenges!