Skip to content

Instantly share code, notes, and snippets.

{
"name": "fhir-package-loader",
"version": "0.7.0",
"description": "JavaScript package for downloading and accessing FHIR definitions",
"scripts": {
"build": "tsc",
"build:watch": "tsc -w",
"test": "jest --coverage",
"test:watch": "npm run test -- --watchAll",
"coverage": "opener coverage/lcov-report/index.html",
Logical: ViewDefinition
Title: "View Definition"
* select 0..* BackboneElement "The select stanza defines the actual content of the view itself"
* name 1..1 string "Name of field produced in the output."
* expression 1..1 string "FHIRPath expression, can include %constant"
* forEach 0..1 BackboneElement "Expression unnest a new row for each item in the specified FHIRPath expression."
* expression 1..1 string "FHIRPath expression for the parent path to select values from"
* select 0..* contentReference #ViewDefinition.select "See select" "Nested select"
Instance: PatientAddresses

Internal

  • Convert back to use sushi (the longer we wait, the more difficult it will be)
    • Create a branch off master where FSH was removed (e.g. master-fsh)
    • Work on parity with IG Publisher in this branch
    • Promote master-fsh to master

Issues

  • Add support to definitional resource types that are not currently canonical in R4:
    • In the definitional resource:
  • Add extensions: canonical-url, canonical-version (these already exist as: valueUri, valueString)

Background, this configuration --

- http://artifacts.org
  server-a-1
  
- http://artifacts.org
  server-a-2
  
- http://artifacts.org/ValueSet
{
"resourceType": "ValueSet",
"id": "VSPHQ9",
"meta": {
"profile": [
"http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-valueset"
]
},
"url": "http://hl7.org/fhir/uv/sdc/ValueSet/VSPHQ9",
"name": "VSPHQ9",
<!-- see: https://validator.w3.org/feed/docs/atom.html -->
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:hl7="http://hl7.org/fhir/uv/crmi/syndication">
<title>HL7 CRMI Knowledge Artifact Server Feed</title>
<link rel="self" type="application/atom+xml" href="https://crmi-server/syndication/v1/feed.xml" />
<id>urn:uuid:e39958d4-380e-4252-8707-6afeff8b7911</id>
<updated>2023-01-01T01:00:00Z</updated>
<entry>
<id>urn:uuid:2c466218-337c-3367-95d9-57f65cd1a572</id>
<title>SomeMeasure Package</title>
<updated>2020-08-23T23:37:17Z</updated>
@bkaney
bkaney / debug.shell
Last active February 18, 2023 18:33
[~/projects/fhir-dts-generator/fhir-codegen] git reset --hard origin/main
HEAD is now at 25dd68566 Merge pull request #126 from FirelyTeam/main
[~/projects/fhir-dts-generator/fhir-codegen] dotnet clean
MSBuild version 17.3.2+561848881 for .NET
Build started 2/18/2023 1:21:16 PM.
1>Project "/Users/bkaney/projects/fhir-dts-generator/fhir-codegen/fhir-codegen.sln" on node 1 (Clean target(s)).
1>ValidateSolutionConfiguration:
Building solution configuration "Debug|Any CPU".
1>Project "/Users/bkaney/projects/fhir-dts-generator/fhir-codegen/fhir-codegen.sln" (1) is building "/Users/bkaney/projects/fhir-dts-generator/fhir-codegen/src/fhir-codegen-cli/fhir-codegen-cli.csproj.metaproj" (2) on node 1 (Clean target(s)).
// # Introduction
// This CDS logic is based on the Pooled Cohort Equations for Estimation of 10-Year Risk for Hard ASCVD, featured by
// CMS's Million Hearts (c) Model Longitudinal ASCVD Risk Assessment Tool for Baseline 10-Year ASCVD Risk. In the
// process of authoring the logic, certain assumptions were made and details developed when the guideline did not
// provide enough specificity. These decisions were made in the context of the CDS Connection Cholesterol Workgroup
// and are documented in the logic and/or in the CDS Connect artifact metadata.
//
// Version 1.0.1 adds a statement to include the FHIRHelpers library. Although this is not used directly by the logic,
// it is needed to support implicit conversions from FHIR to CQL types in recent versions of the CQL-to-ELM translator.
//
@bkaney
bkaney / all-in-one.cql
Last active October 11, 2021 13:43
Example Bundle of Measure and related Libraries, ValueSets
library AllInOne version '0.1.0'
using FHIR version '4.0.1'
include FHIRHelpers version '4.0.1' called FHIRHelpers
codesystem "LOINC": 'http://loinc.org'
codesystem "SNOMEDCT": 'http://snomed.info/sct/731000124108'
codesystem "RoleCode": 'http://hl7.org/fhir/v3/RoleCode'
codesystem "Diagnosis Role": 'http://terminology.hl7.org/CodeSystem/diagnosis-role'