Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SAGE-285-encounter-class-priority #57

Merged
merged 3 commits into from
Mar 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ editor.iml
.classpath
.firebase
.env
public/bundle.js.LICENSE.txt
26,813 changes: 26,813 additions & 0 deletions fhir_profiles/r4/valuesets.json

Large diffs are not rendered by default.

26,837 changes: 26,837 additions & 0 deletions public/profiles/r4.json

Large diffs are not rendered by default.

9 changes: 4 additions & 5 deletions src/helpers/schema-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1075,11 +1075,7 @@ export async function getConceptsOfValueSet(valueSet: ValueSet, valueSetDefs: Si
})
)
}
else if (include.filter) {
if (include.system !== "http://snomed.info/sct") {
console.log(warningText(`SAGE only supports "include.filter" for SNOMEDCT. Some codes may be missing`));
continue;
}
else if (include.filter && include.system == "http://snomed.info/sct") {
let filteredElements: SageCodeConcept[] = [];
let firstFilter = true;
for (const filter of include.filter) {
Expand All @@ -1102,6 +1098,9 @@ export async function getConceptsOfValueSet(valueSet: ValueSet, valueSetDefs: Si
codesOfValueSet.push(...filteredElements)
}
else {
if (include.filter) {
console.log(warningText(`SAGE only supports "include.filter" for SNOMEDCT. Some codes may be missing`));
}
// Add everything from system
const codeSystemDef = codeSystemDefs[include.system];
if (codeSystemDef) {
Expand Down