{"id":46498590,"url":"https://github.com/cqframework/sample-content-ig","last_synced_at":"2026-05-11T07:03:38.534Z","repository":{"id":43676353,"uuid":"253390456","full_name":"cqframework/sample-content-ig","owner":"cqframework","description":"Sample Content IG","archived":false,"fork":false,"pushed_at":"2026-02-26T20:04:41.000Z","size":17835,"stargazers_count":8,"open_issues_count":7,"forks_count":13,"subscribers_count":13,"default_branch":"master","last_synced_at":"2026-02-27T01:51:15.102Z","etag":null,"topics":["content-ig","cql","fhir"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cqframework.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-04-06T04:02:31.000Z","updated_at":"2026-02-26T20:03:53.000Z","dependencies_parsed_at":"2023-09-27T23:13:14.023Z","dependency_job_id":"9cc8225f-7c85-44d2-83f2-13e97c03879e","html_url":"https://github.com/cqframework/sample-content-ig","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/cqframework/sample-content-ig","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cqframework%2Fsample-content-ig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cqframework%2Fsample-content-ig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cqframework%2Fsample-content-ig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cqframework%2Fsample-content-ig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cqframework","download_url":"https://codeload.github.com/cqframework/sample-content-ig/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cqframework%2Fsample-content-ig/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30176322,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T11:48:51.886Z","status":"ssl_error","status_checked_at":"2026-03-06T11:48:51.460Z","response_time":250,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["content-ig","cql","fhir"],"created_at":"2026-03-06T12:34:10.406Z","updated_at":"2026-04-02T17:36:06.351Z","avatar_url":"https://github.com/cqframework.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sample-content-ig\nA sample, template-driven content implementation guide that provides an illustration of a content IG, with examples of using CQL with FHIR libraries and vocabulary. A content IG is one that includes computable representations of clinical knowledge artifacts as FHIR Resources, specifically Library, ActivityDefinition, PlanDefinition, and Measure resources.\n\nCI Build for master branch: [https://build.fhir.org/ig/cqframework/sample-content-ig/branches/master/](https://build.fhir.org/ig/cqframework/sample-content-ig/branches/master/)\n\n\n## Building the IG\nIn addition to the [FHIR Publisher](https://confluence.hl7.org/display/FHIR/IG+Publisher+Documentation), this\nIG makes use of the Refresh IG command of [CQF Tooling](https://github.com/cqframework/cqf-tooling). This\ncommand performs several functions related to knowledge artifact content processing:\n\n1. Validates CQL\n2. Includes CQL and ELM content in the appropriate Library resource\n3. Infers data requirements and dependencies and updates this information in each knowledge artifact\n4. Stamps each artifact with a software device that provides tooling information for the CQF Tooling\n5. Packages test data associated with each knowledge artifact\n6. Packages each artifact with its associated components, dependencies and test data\n\nThis refresh process must be performed prior to running the publisher. Just like the publisher, there are two steps:\n\n1. Ensure the CQFTooling is available in the local input-cache by running the _updateCQFTooling script\n2. Run the refresh using the _refresh script\n\nThe refresh process will update resources in place, as well as place bundled content in the bundles directory.\n\n## Directory Structure\nContent IGs follow the same general structure as any FHIR Implementation Guide, but add a few specific directories to support knowledge artifacts:\n\n```\nbundles/\u003cartifact-resource-type-name\u003e\ninput/cql\ninput/resources/\u003cartifact-resource-type-name\u003e\ninput/tests/\u003cartifact-resource-type-name\u003e/\u003cartifact-resource-name\u003e\ninput/tests/\u003cartifact-resource-type-name\u003e/\u003cartifact-resource-name\u003e/\u003cpatient-id\u003e\ninput/tests/\u003cartifact-resource-type-name\u003e/\u003cartifact-resource-name\u003e/\u003cpatient-id\u003e/\u003cresource-type-name\u003e/\u003cresource files\u003e // flexible structure\ninput/vocabulary/codesystem\ninput/vocabulary/codesystem/external\ninput/vocabulary/valueset\ninput/vocabulary/valueset/external\n```\n\nThis is also the same structure as the [VSCode CQL extension](https://github.com/cqframework/vscode-cql) uses to support CQL authoring and evaluation as part of the VSCode extension.\n\nThe `bundles/\u003cartifact-resource-type-name\u003e` folder is where artifact bundles are placed.\n\nThe `input/cql` folder contains all the source CQL files as well as the `cql-options.json` file.\n\nThe `input/resources/\u003cartifact-resource-type-name\u003e` folders (e.g. `input/resources/library`) contain all the source content for the various artifacts. For CQL Libraries in particular, ensure that a corresponding FHIR Library resource shell exists for each CQL source file. For example\n\n```json\n{\n  \"resourceType\": \"Library\",\n  \"id\": \"FirstExample\",\n  \"name\": \"FirstExample\",\n  \"title\": \"First Example\",\n  \"status\": \"active\",\n  \"experimental\": false,\n  \"type\": {\n    \"coding\": [ {\n      \"system\": \"http://terminology.hl7.org/CodeSystem/library-type\",\n      \"code\": \"logic-library\"\n    } ]\n  },\n  \"description\": \"This resource provides a simple example of a CQL library\"\n}\n```\n\nNote that the `name` element of the FHIR Library resource is required to match exactly the `name` of the CQL Library. The refresh tooling will automatically set the `url` element as follows:\n\n`\u003cig-base-canonical\u003e/Library/\u003clibrary-name\u003e`\n\nThis is important because this is how FHIR-based environments will resolve library name references in CQL.\n\nIn addition, because the Library is being published as a conformance resource in a FHIR IG, the `id` of the resource must match the tail (i.e. final path segment) of the `url`, so in this context, the `id` must also match the name of the library. Because the [id](https://hl7.org/fhir/datatypes.html#id) in FHIR cannot include underscores, this effectively means that CQL library names must not include underscores either.\n\nThe `input/tests/\u003cartifact-resource-type-name\u003e/\u003cartifact-resource-name\u003e` folders contain test cases for each artifact.\n\nThe `input/tests/\u003cartifact-resource-type-name\u003e/\u003cartifact-resource-name\u003e/\u003cpatient-id\u003e` folders contain each individual test case, per patient, and the resource files are expected to contain a Patient with the given id.\n\nThe `input/vocabulary/codesystem` folder contains code systems defined in this IG.\n\nThe `input/vocabulary/codesystem/external` folder contains code systems required by the content but defined in other sources.\n\nThe `input/vocabulary/valueset` folder contains value sets defined in this IG.\n\nThe `input/vocabulary/valueset/external` folder contains value sets required by the content but defined in other sources.\n\nNOTE: The `external` vocabulary directories here are intended to support evaluation of artifacts that reference external terminology (i.e. terminology defined in other sources such as the HL7 Terminology Authority, the FHIR Specification, the Value Set Authority Center, or other FHIR Implementation Guides). This is a stop-gap measure until the authoring environment and refresh tooling have the ability to resolve external terminologies.\n\n## Artifact Narratives\nThis sample content IG also contains [FHIR Liquid](https://confluence.hl7.org/display/FHIR/FHIR+Liquid+Profile) templates for knowledge artifacts. Ultimately, these templates should be part of the CQF Content IG Template, but until then, they are typically copied in to content IGs. They are maintained here as the source of truth, and so should be general-purpose templates suitable for use in any realm, and in any content IG. To use them in your IG, copy them in to the `templates/liquid` folder and set the `path-liquid` implementation guide parameter.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcqframework%2Fsample-content-ig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcqframework%2Fsample-content-ig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcqframework%2Fsample-content-ig/lists"}