Web interface
matchbox-server contains a web interface, served under the context path of the server (by default /matchboxv3/).
Pages
| Page | Path | Purpose |
|---|---|---|
| Home | /matchboxv3/ |
Entry page |
| Validate | /matchboxv3/validate |
Validate a resource against a profile and show the result |
| Implementation guides | /matchboxv3/igs |
List, install and remove implementation guides |
| Mapping language | /matchboxv3/mappinglanguage |
Edit a map in the FHIR mapping language and run it |
| Transform | /matchboxv3/transform |
Transform a resource with an installed StructureMap |
| Capability statement | /matchboxv3/CapabilityStatement |
Show the CapabilityStatement of the server |
| Settings | /matchboxv3/settings |
Settings of the web interface |
| Statistics | /matchboxv3/statistics |
Statistics of the stored validation results (requires matchbox.validation.save-statistics) |
The pages call the FHIR API of the same server, so they can do what the API allows and nothing more. Two settings of the server change what is available:
| Page | Read-only mode (httpReadOnly: true) |
Without the onlyOneEngine mode |
|---|---|---|
| Validate | the implementation guides aren't installed automatically | available |
| Implementation guides | install, update and delete are hidden | available |
| Mapping language | not available (creating a StructureMap is rejected) | not available (HTTP 405) |
| Transform | available | available |
Home
Links to the validation, implementation guides and settings pages, the version of Matchbox, and links to other tools: the FHIRPath Lab (to run maps on a Matchbox server) and the terminology server registry of tx.fhir.org.
Validate
Validates a resource with $validate:
- Load the resource: drop a file or select it. The resource type and id are shown.
- Choose the profile. The list contains the profiles that the server accepts (the
targetProfiles of the OperationDefinition), with their implementation guide and version; type to filter it. For a documentBundle, the Proposed profiles found with$get-profilesare listed, and can be selected with a click. When the profile is unlocked, it is taken frommeta.profileof each new resource; lock it to keep it. - Optionally, choose the implementation guide: Automatic selection, or a specific version of an installed one
(the
igparameter). - Click Validate.
The button with the gear shows the validation parameters of the server (the parameters of the OperationDefinition), which can be changed for the next validations.
Each validation is added to the Validation history (kept in the browser tab until it is reloaded): select an entry to
show its result, remove it, or copy a direct link to it. The result lists the issues by
severity; click an issue to go to its location in the resource. The editor shows the validated resource or the
OperationOutcome. If an LLM is configured, Analyze Operation Outcome with AI explains the
issues.
Implementation guides
- Installed: the implementation guides installed on the server, with their package id, version and title. Click a row to select it.
- Browse the package registry: search packages2.fhir.org by package name, FHIR version and publication date. Select a package to choose one of its versions and install (or reinstall) it.
- Install an ImplementationGuide: install a package by its id and version (Upload), from the package registry or, if it isn't published there, from a URL. With an installed implementation guide selected, Update installs it again with the given id, version and URL, and Delete removes it and its conformance resources.
The result of the last action is shown as an OperationOutcome. These actions are hidden when the server doesn't
offer $install-npm-package (read-only mode).
Mapping language
An editor for maps in the FHIR mapping language, see
Use the mapping editor of the web interface.
Paste or upload a source resource (Source) and a map: one second after each change, the map is stored on the server
(POST StructureMap) and the source is transformed with it (Transformed). It needs a server in the onlyOneEngine
mode.
Transform
Transforms a resource with $transform:
- Upload the resource to transform.
- Choose the map: By reference, from the StructureMaps installed on the server (type to filter), or By uploading a StructureMap in JSON or XML.
- Optionally, upload a StructureDefinition, or a
Bundleof them, that the map uses. - Click Transform: the result is shown in Transformed, or the errors of the transformation.
A map or model that is uploaded is only used for the transformation, it isn't stored. The page works in all modes.
CapabilityStatement
Shows the CapabilityStatement of the server (GET [base]/metadata) in JSON.
Statistics
Shown only when the server stores the validation results (matchbox.validation.save-statistics). Lists the stored
OperationOutcomes with their date, profile, implementation guide, duration and number of issues, and filters them by
date, severity of the issues, implementation guide and profile. Click a row to show the whole OperationOutcome.
Settings
Shows the version of Matchbox and a link to the source code. There are no settings to change.
Validation page URL
The validation page reads its input from the fragment of the URL (the part after #). The parameters are written as
in a query string:
| Parameter | Card. | Description |
|---|---|---|
resource |
1..1 | The resource to validate, encoded in base64url. |
profile |
0..1 | The canonical URL of the profile. Default: http://hl7.org/fhir/StructureDefinition/{resourceType}. |
filename |
0..1 | The file name to show for the resource. |
| other parameters | 0..1 | Any validation parameter of $validate, e.g. txServer. |
Example: