FHIR Mapping Language ToolsDeveloper tools for working with the FHIR Mapping Language (FML) in Visual Studio Code. FHIR® is the registered trademark of HL7 and is used with permission. Use of the FHIR trademark does not constitute endorsement of this repository by HL7. Features
Getting startedOpen a file with the Use the Command Palette or editor context menu to access:
FML validationRun Validate FML from the command palette or the editor context menu while an FML document is active. The extension starts the bundled FML language server and synchronizes open documents incrementally. After a short debounce, the editor-independent language service parses the current text and validates standard transform parameters without requiring the file to be saved. Errors and warnings appear as editor squiggles and clickable entries in the Problems panel. Unknown transforms produce warnings so custom or newer functions remain usable. Invalid standard transform parameters are errors, and FHIRPath expression parameters are only permitted for At startup, workspace FML files are indexed by canonical URL. Cross-file group navigation follows each source map's wildcard-capable Language server status and recoveryThe status bar displays
The status menu provides:
Re-index FML Workspace and Restart FML Language Server are also available directly from the command palette. Live map previewRun Open FML Preview to the Side from the editor title, context menu, or command palette. A preview panel opens beside the active FML editor and refreshes from unsaved edits. The instance diagram shows source and target types, the properties read and written by each rule, and the connections between them. Select a diagram row or header to navigate back to the corresponding FML source. Trace replay debuggerThe FML Debug adapter calls a remote Create a
Start debugging with
Runtime engine failures pause with reason exception and are shown in the
Debug Console. Static syntax and semantic issues remain in the Problems panel.
The endpoint can be changed with TemplatesUse Insert template FML from the editor context menu, or choose the FML snippet from Visual Studio Code's snippet picker. AutocompletionAutocompletion uses FHIR core and project definitions. Suggestions for FHIR attributes appear after a mapped object followed by a dot, such as Current validation scopeThe current validator checks FML syntax and standard transform parameters. It does not yet:
Feedback and sourceSource code and issue tracking are available in the FHIRPath Lab repository. LicenseThis project is licensed under the MIT License. |