CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

assembling-fhir-bundles

Package multiple FHIR R4 resources produced from OpenMed output into a single valid transaction Bundle ready to POST to an EHR, using OpenMed's verified bundle assembler openmed.clinical.exporters.fhir.to_bundle. Covers deterministic urn:uuid fullUrls, automatic in-Bundle reference rewriting, request blocks (method/url) for transaction vs batch, and conditional create. Use after exporting-to-fhir when the user has several Condition/Observation/MedicationStatement resources and wants one transaction Bundle, mentions Bundle, transaction, references, or posting to a FHIR server. Builds on exporting-to-fhir; pairs after.

72

Quality

90%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Low

Low-risk findings worth noting

SKILL.md
Quality
Evals
Security

Quality

Content

82%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A tight, highly actionable single-file skill: verified API contract, executable quick start, expected output, and a well-signaled workflow with validation and error-outcome handling. Weaknesses are minor — some repetition across sections and a workflow step whose 'validate first' instruction sits after the POST step.

Suggestions

Reorder the Workflow so validation against US Core is an explicit numbered step before the POST, e.g. '4. Validate against US Core (validating-us-core); 5. Only when valid, POST [base] {Bundle}' — this is a batch write, so the checkpoint ordering must be unambiguous.

Deduplicate the duplicate-id and US Core validation notes (each currently appears 2–3 times across API section, Workflow, and Edge cases).

Consider moving the worked transaction Bundle JSON into a references/ file to slim the main body while keeping it one click away.

DimensionReasoningScore

Conciseness

The body is lean and code-first with no 'what is FHIR' padding; every section is concrete. Minor trimming opportunities exist: the duplicate-id behavior is stated twice (in the API section and again under Edge cases), and the US Core validation note appears three times (When to use, Workflow, Edge cases). Fits the 4 anchor (efficient, minor instances that could be trimmed) rather than 5.

4 / 5

Actionability

Copy-paste-ready quick start with a complete resource list and to_bundle call, the exact verified API signature with parameter comments, a concrete conditional-create post-processing loop, the expected output Bundle, and the exact ValueError conditions. Fully executable guidance covering the common cases.

5 / 5

Workflow Clarity

The numbered Workflow gives a clear sequence (build → co-locate referenced resources → to_bundle → POST → validate) with a validation checkpoint, and the OperationOutcome guidance covers error surfacing. However, step 5 says 'Validate first against US Core' yet is listed after the POST step in step 4, an ordering ambiguity; this is a batch write operation, so the sequence should unambiguously put validation before POST. Clear sequence with a minor checkpoint gap fits 4, not 5.

4 / 5

Progressive Disclosure

No bundle files exist (no references/, scripts/, or assets/), so the skill is self-contained; the body's only pointers are to sibling skills and external spec URLs, all clearly signaled and one level deep. Section organization is clean (When to use, verified API, Quick start, Worked, Workflow, Conditional create, Hand-off, Edge cases, Standards). The ~180-line body is appropriately placed for a single-purpose skill, though the worked JSON example and standards links could arguably live in a reference file. Good structure with minor organization gaps fits 4.

4 / 5

Total

17

/

20

Passed

Description

92%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description: concrete capabilities, an explicit 'Use when' clause with natural trigger terms, and clear positioning relative to neighboring skills in the pipeline. The only gap is a few missing natural synonyms (batch, assemble, combine).

Suggestions

Add a synonym or two to the trigger clause, e.g. 'or wants to batch/combine resources into one Bundle', to catch users who say 'assemble' or 'batch' rather than 'transaction'.

Optionally include 'send/submit to an EHR or FHIR server' phrasing to broaden the posting trigger.

DimensionReasoningScore

Specificity

The description enumerates concrete capabilities — 'deterministic urn:uuid fullUrls, automatic in-Bundle reference rewriting, request blocks (method/url) for transaction vs batch, and conditional create' — matching the anchor for multiple specific concrete actions with comprehensive coverage. Nothing is vague or padded.

5 / 5

Completeness

It explicitly answers 'what' (packages FHIR R4 resources into a transaction Bundle via to_bundle, with the four listed behaviors) and 'when' ('Use after exporting-to-fhir when the user has several Condition/Observation/MedicationStatement resources and wants one transaction Bundle, mentions Bundle, transaction, references, or posting to a FHIR server'). This matches the anchor for both what and when with concrete trigger phrases.

5 / 5

Trigger Term Quality

Natural trigger phrases are present ('mentions Bundle, transaction, references, or posting to a FHIR server', 'wants one transaction Bundle') plus resource-type names (Condition/Observation/MedicationStatement), but a few natural synonyms users might say — 'batch', 'combine/assemble resources', 'send to EHR' — are missing. Good keyword coverage with a few gaps fits the 4 anchor; not 5 because synonym coverage is not comprehensive, not 3 because the core natural phrasings are all there.

4 / 5

Distinctiveness Conflict Risk

It occupies a clear niche (assembling a transaction Bundle from already-exported resources) and explicitly delimits sibling skills — 'Builds on exporting-to-fhir; pairs after' and 'ready to POST to an EHR' vs validating-us-core — so triggers are unlikely to fire the wrong skill. Conflict risk is minimal, matching the 5 anchor.

5 / 5

Total

19

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

maziyarpanahi/openmed

Path

skills/assembling-fhir-bundles/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.