medplum-rules
Installation
SKILL.md
Medplum (FHIR healthcare) Rules
These rules come from app/rules/medplum/ in ai-toolkit. They cover
the project's standards for coding style, frameworks, patterns,
security, and testing in Medplum (FHIR healthcare). Apply them when writing or
reviewing Medplum (FHIR healthcare) code.
Medplum / FHIR Coding Style
Resource Structure
- Every FHIR object must include
resourceTypeas first field. - Use PascalCase for resource types (
Patient,ServiceRequest), camelCase for fields (birthDate,valueQuantity). - Never hardcode resource IDs. Let the server assign them on create.
- Include
meta.profilewhen creating resources that must conform to a StructureDefinition.