- Check the canonical versioning algorithm and version don't contradict each other
- Add a warning that the canonical URL is highly recommended
- if status = published, ensure that has a canonical URL
- information/warning if derivedFRom isn't a versioned canonical URL
- Should subjectType and launch context be the same?
- Check the copyright label is from the set of approved licenses?
- Should there be some date checks on the approved, review and date etc?
- definitionBased flag
- anything needed for the replaces extension?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Hl7.Fhir.Introspection; | |
| using Hl7.Fhir.Support; | |
| using Hl7.Fhir.Utility; | |
| using Hl7.FhirPath.Expressions; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Collections.ObjectModel; | |
| using System.Linq; | |
| using System.Reflection; | |
| using System.Text; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import type { CodeableConcept, Coding, OperationOutcome, OperationOutcomeIssue, Reference, Resource, Parameters } from "fhir/r4b"; | |
| import fhirpath from "fhirpath"; | |
| import { logMessage, CreateOperationOutcome } from "~/utils/create-outcome"; | |
| // -------------------------------------------------------------------------- | |
| // The concept of this POC is to demonstrate an approach to perform some | |
| // async based methods as functions inside the fhirpath engine without | |
| // converting the entire engine to process things asynchronously. | |
| // e.g. Terminology functions such as memberOf, subsumes, or resolve() | |
| // |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Hl7.Fhir.Model; | |
| using Hl7.Fhir.Specification; | |
| using Hl7.Fhir.Specification.Navigation; | |
| using Hl7.Fhir.Specification.Snapshot; | |
| using Hl7.Fhir.Specification.Source; | |
| using Hl7.Fhir.Utility; | |
| using Hl7.Fhir.WebApi; | |
| using Hl7.FhirPath; | |
| using System; | |
| using System.Collections; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Hl7.Fhir.Model; | |
| using Hl7.Fhir.Utility; | |
| using Hl7.FhirPath; | |
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Threading.Tasks; | |
| using Hl7.Fhir.FhirPath; | |
| using Hl7.Fhir.ElementModel; |
The processing output lists for each IG and its dependencies (nested):
- Package ID
- Package Version
- Number of resources that are selected
- At the root level these are the canonical resoures, so remaining files are likely examples, indexes or non-canonical resources
- At the dependency level, the number of canonical resources that are required by one of the parent IGs in the dependency tree
- The total number of resources in the package
- The number of canonical resources that the package requires (that it does not conain itself) - external canonicals
- The number of those external canonicals that were not able to be resolved in the IGs dependency tree
- A bulletted list of the unresolved external canonicals
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extern alias r4; | |
| using r4.Hl7.Fhir.Model; | |
| using Hl7.Fhir.Model; | |
| using Hl7.Fhir.StructuredDataCapture; | |
| using Hl7.Fhir.Utility; | |
| using Hl7.FhirPath; | |
| using Hl7.FhirPath.Expressions; | |
| using Microsoft.AspNetCore.DataProtection.KeyManagement; | |
| using ModelContextProtocol.Server; | |
| using System.ComponentModel; |
This isn't a sensible fhirpath expression that does something useful, however it does check the edges of a fhirpath parser. I've tried to check every single parsing rule, not every function avaialable.
(
(
(( -5.25 * 2 div 3 mod 2 + +3 - 1).toString() & ' units' ) /* polarity + multiplicative + additive + concatenation */
|
( {} | true | %resource | false | 'hello' | 42 | 123L | @2025-08-21
| @2025-08-21T12:34:56.789Z | @T08:00:00 | 5 'mg' | 3 days ) /* union of (null, booleans, string, number, long, date, datetime, time, qty(STRING), qty(keyword-unit) */
| %ext
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "categories": [ | |
| { | |
| "name": "Existence", | |
| "sectionNumber": "5.1", | |
| "functions": [ | |
| { | |
| "functionName": "empty", | |
| "description": "Returns `true` if the input collection is empty (`{ }`) and `false` otherwise.", | |
| "arguments": [], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| This is a draft set of FML (fhir mapping language) transforms from FHIR R5 to R6 (normative ballot 1) | |
| ----------------------------------------- | |
| No target mapping for source type http://hl7.org/fhir/StructureDefinition/Contributor | |
| No target mapping for source type http://hl7.org/fhir/StructureDefinition/BiologicallyDerivedProductDispense | |
| No target mapping for source type http://hl7.org/fhir/StructureDefinition/ChargeItem | |
| No target mapping for source type http://hl7.org/fhir/StructureDefinition/ChargeItemDefinition | |
| No target mapping for source type http://hl7.org/fhir/StructureDefinition/Citation | |
| No target mapping for source type http://hl7.org/fhir/StructureDefinition/ClinicalImpression | |
| No target mapping for source type http://hl7.org/fhir/StructureDefinition/ConditionDefinition |