template-authoringlisted
Install: claude install-skill Cadasto/openehr-assistant-plugin
# Template Authoring
## Conflict Resolution
When guides conflict, apply this priority (highest first):
1. Rules and syntax specifications
2. Idioms and structural constraints
3. Principles
4. Convenience
## Step 1: Load Guides (MANDATORY)
Before any template work, load the authoritative guides:
```
guide_get("templates/principles")
guide_get("templates/rules")
```
Load additional guides as needed:
- `guide_get("templates/oet-syntax")` — OET authoring syntax
- `guide_get("templates/oet-idioms-cheatsheet")` — common OET patterns
## Step 2: Research Before Creating
Search for existing templates first:
```
ckm_template_search("<use-case>")
```
If creating a new template, search for archetypes to include:
```
ckm_archetype_search("<concept>")
```
## Step 3: Use-Case Specificity
Templates target particular clinical workflows. Define the use-case clearly:
- What clinical scenario does this template serve? (e.g., discharge summary, vital signs form, medication reconciliation)
- What data points are required vs optional?
- Who will use it? (clinician, nurse, admin)
## Step 4: Archetype Aggregation
### Selecting Archetypes
- Choose archetypes that precisely fit the use-case
- Minimize archetype count — each should serve a clear purpose
- Prefer well-established CKM archetypes over custom ones
### COMPOSITION Structure
Templates are rooted in a COMPOSITION archetype. Nest entry archetypes (OBSERVATION, EVALUATION, INSTRUCTION, ACTION) and CLUSTER archetypes within it.
U