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 | 🟢 Basic Stable | None, but not fully tested for edge cases | Bundled in default configs |
| Medications | 🟢 Basic Stable | None, but not fully tested for edge cases | Bundled in default configs |
| Notes | 🟢 Basic Stable | None, but not fully tested for edge cases, html tags are parsed as text | 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:
-
Copy experimental files to your custom config:
-
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:
- 🎯 Allergies stabilization - Fix clinical status parsing and round-trip issues
- 🔮 Future sections - Procedures, Vital Signs, Lab Results
- 🔧 Template tooling - Better validation and testing framework
Want to help? Check our contribution guidelines and pick up one of these challenges!