diff --git a/plugin/cr/src/main/java/org/opencds/cqf/ruler/cr/KnowledgeArtifactProcessor.java b/plugin/cr/src/main/java/org/opencds/cqf/ruler/cr/KnowledgeArtifactProcessor.java index 98b97cc1e..600847c7f 100644 --- a/plugin/cr/src/main/java/org/opencds/cqf/ruler/cr/KnowledgeArtifactProcessor.java +++ b/plugin/cr/src/main/java/org/opencds/cqf/ruler/cr/KnowledgeArtifactProcessor.java @@ -938,8 +938,19 @@ private void checkIfValueSetNeedsCondition(MetadataResource resource, RelatedArt .map(list -> { return list.stream().filter(ext -> ext.getUrl().equalsIgnoreCase(valueSetConditionUrl)).findFirst().orElse(null); }); - if (isLeaf && !maybeConditionExtension.isPresent()) { - throw new UnprocessableEntityException("Missing condition on ValueSet : " + valueSet.getUrl()); + Optional maybePriorityExtension = Optional.ofNullable(relatedArtifact) + .map(RelatedArtifact::getExtension) + .map(list -> { + return list.stream().filter(ext -> ext.getUrl().equalsIgnoreCase(valueSetPriorityUrl)).findFirst().orElse(null); + }); + if (isLeaf && (maybeConditionExtension.isEmpty() || maybePriorityExtension.isEmpty())) { + if (maybeConditionExtension.isEmpty() && maybePriorityExtension.isEmpty()) { + throw new UnprocessableEntityException("Missing condition and priority references on ValueSet : " + valueSet.getUrl()); + } else if (maybeConditionExtension.isEmpty()) { + throw new UnprocessableEntityException("Missing condition reference on ValueSet : " + valueSet.getUrl()); + } else { + throw new UnprocessableEntityException("Missing priority reference on ValueSet : " + valueSet.getUrl()); + } } } } diff --git a/plugin/cr/src/test/java/org/opencds/cqf/ruler/cr/r4/RepositoryServiceTest.java b/plugin/cr/src/test/java/org/opencds/cqf/ruler/cr/r4/RepositoryServiceTest.java index 924eda8f4..8b3c31904 100644 --- a/plugin/cr/src/test/java/org/opencds/cqf/ruler/cr/r4/RepositoryServiceTest.java +++ b/plugin/cr/src/test/java/org/opencds/cqf/ruler/cr/r4/RepositoryServiceTest.java @@ -713,7 +713,7 @@ void release_preserve_extensions() { @Test void release_test_condition_missing() { - loadTransaction("ersd-small-approved-draft-no-conditions.json"); + loadTransaction("ersd-small-approved-draft-missing-condition.json"); loadResource("artifactAssessment-search-parameter.json"); Parameters params = parameters( part("version", new StringType("1.2.3.23")), @@ -732,7 +732,55 @@ void release_test_condition_missing() { noConditionExtension = e; } assertNotNull(noConditionExtension); - assertTrue(noConditionExtension.getMessage().contains("Missing condition")); + assertTrue(noConditionExtension.getMessage().contains("Missing condition reference")); + } + + @Test + void release_test_priority_missing() { + loadTransaction("ersd-small-approved-draft-missing-priority.json"); + loadResource("artifactAssessment-search-parameter.json"); + Parameters params = parameters( + part("version", new StringType("1.2.3.23")), + part("versionBehavior", new StringType("default")) + ); + UnprocessableEntityException noPriorityExtension = null; + try { + getClient().operation() + .onInstance(specificationLibReference) + .named("$release") + .withParameters(params) + .returnResourceType(Bundle.class) + .execute(); + } catch (UnprocessableEntityException e) { + noPriorityExtension = e; + } + + assertNotNull(noPriorityExtension); + assertTrue(noPriorityExtension.getMessage().contains("Missing priority reference")); + } + + @Test + void release_test_condition_and_priority_missing() { + loadTransaction("ersd-small-approved-draft-missing-condition-and-priority.json"); + loadResource("artifactAssessment-search-parameter.json"); + Parameters params = parameters( + part("version", new StringType("1.2.3.23")), + part("versionBehavior", new StringType("default")) + ); + UnprocessableEntityException noConditionAndPriorityExtension = null; + try { + getClient().operation() + .onInstance(specificationLibReference) + .named("$release") + .withParameters(params) + .returnResourceType(Bundle.class) + .execute(); + } catch (UnprocessableEntityException e) { + noConditionAndPriorityExtension = e; + } + + assertNotNull(noConditionAndPriorityExtension); + assertTrue(noConditionAndPriorityExtension.getMessage().contains("Missing condition and priority references")); } @Test @@ -1323,7 +1371,7 @@ void packageOperation_big_bundle() { @Test void package_test_condition_missing() { - loadTransaction("ersd-small-approved-draft-no-conditions.json"); + loadTransaction("ersd-small-approved-draft-missing-condition.json"); loadResource("artifactAssessment-search-parameter.json"); UnprocessableEntityException noConditionExtension = null; try { @@ -1338,7 +1386,45 @@ void package_test_condition_missing() { noConditionExtension = e; } assertNotNull(noConditionExtension); - assertTrue(noConditionExtension.getMessage().contains("Missing condition")); + assertTrue(noConditionExtension.getMessage().contains("Missing condition reference")); + } + + @Test + void package_test_priority_missing() { + loadTransaction("ersd-small-approved-draft-missing-priority.json"); + loadResource("artifactAssessment-search-parameter.json"); + UnprocessableEntityException noPriorityExtension = null; + try { + getClient().operation() + .onInstance(specificationLibReference) + .named("$package") + .withNoParameters(Parameters.class) + .returnResourceType(Bundle.class) + .execute(); + } catch (UnprocessableEntityException e) { + noPriorityExtension = e; + } + assertNotNull(noPriorityExtension); + assertTrue(noPriorityExtension.getMessage().contains("Missing priority reference")); + } + + @Test + void package_test_condition_and_priority_missing() { + loadTransaction("ersd-small-approved-draft-missing-condition-and-priority.json"); + loadResource("artifactAssessment-search-parameter.json"); + UnprocessableEntityException noConditionAndPriorityExtension = null; + try { + getClient().operation() + .onInstance(specificationLibReference) + .named("$package") + .withNoParameters(Parameters.class) + .returnResourceType(Bundle.class) + .execute(); + } catch (UnprocessableEntityException e) { + noConditionAndPriorityExtension = e; + } + assertNotNull(noConditionAndPriorityExtension); + assertTrue(noConditionAndPriorityExtension.getMessage().contains("Missing condition and priority references")); } @Test diff --git a/plugin/cr/src/test/resources/ersd-active-transaction-bundle-example.json b/plugin/cr/src/test/resources/ersd-active-transaction-bundle-example.json index a95b69be3..311b38e92 100644 --- a/plugin/cr/src/test/resources/ersd-active-transaction-bundle-example.json +++ b/plugin/cr/src/test/resources/ersd-active-transaction-bundle-example.json @@ -196,6 +196,18 @@ }, { "extension": [ + { + "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-priority", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", + "code": "emergent" + } + ], + "text": "Emergent" + } + }, { "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-condition", "valueCodeableConcept": { @@ -214,6 +226,18 @@ }, { "extension": [ + { + "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-priority", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", + "code": "emergent" + } + ], + "text": "Emergent" + } + }, { "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-condition", "valueCodeableConcept": { @@ -232,6 +256,18 @@ }, { "extension": [ + { + "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-priority", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", + "code": "emergent" + } + ], + "text": "Emergent" + } + }, { "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-condition", "valueCodeableConcept": { @@ -250,6 +286,18 @@ }, { "extension": [ + { + "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-priority", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", + "code": "emergent" + } + ], + "text": "Emergent" + } + }, { "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-condition", "valueCodeableConcept": { @@ -268,6 +316,18 @@ }, { "extension": [ + { + "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-priority", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", + "code": "emergent" + } + ], + "text": "Emergent" + } + }, { "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-condition", "valueCodeableConcept": { @@ -286,6 +346,18 @@ }, { "extension": [ + { + "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-priority", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", + "code": "emergent" + } + ], + "text": "Emergent" + } + }, { "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-condition", "valueCodeableConcept": { @@ -304,6 +376,18 @@ }, { "extension": [ + { + "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-priority", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", + "code": "emergent" + } + ], + "text": "Emergent" + } + }, { "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-condition", "valueCodeableConcept": { @@ -322,6 +406,18 @@ }, { "extension": [ + { + "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-priority", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", + "code": "emergent" + } + ], + "text": "Emergent" + } + }, { "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-condition", "valueCodeableConcept": { @@ -340,6 +436,18 @@ }, { "extension": [ + { + "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-priority", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", + "code": "emergent" + } + ], + "text": "Emergent" + } + }, { "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-condition", "valueCodeableConcept": { @@ -358,6 +466,18 @@ }, { "extension": [ + { + "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-priority", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", + "code": "emergent" + } + ], + "text": "Emergent" + } + }, { "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-condition", "valueCodeableConcept": { @@ -376,6 +496,18 @@ }, { "extension": [ + { + "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-priority", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", + "code": "emergent" + } + ], + "text": "Emergent" + } + }, { "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-condition", "valueCodeableConcept": { @@ -394,6 +526,18 @@ }, { "extension": [ + { + "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-priority", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", + "code": "emergent" + } + ], + "text": "Emergent" + } + }, { "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-condition", "valueCodeableConcept": { @@ -412,6 +556,18 @@ }, { "extension": [ + { + "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-priority", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", + "code": "emergent" + } + ], + "text": "Emergent" + } + }, { "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-condition", "valueCodeableConcept": { @@ -430,6 +586,18 @@ }, { "extension": [ + { + "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-priority", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", + "code": "emergent" + } + ], + "text": "Emergent" + } + }, { "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-condition", "valueCodeableConcept": { @@ -448,6 +616,18 @@ }, { "extension": [ + { + "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-priority", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", + "code": "emergent" + } + ], + "text": "Emergent" + } + }, { "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-condition", "valueCodeableConcept": { @@ -466,6 +646,18 @@ }, { "extension": [ + { + "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-priority", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", + "code": "emergent" + } + ], + "text": "Emergent" + } + }, { "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-condition", "valueCodeableConcept": { @@ -484,6 +676,18 @@ }, { "extension": [ + { + "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-priority", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", + "code": "emergent" + } + ], + "text": "Emergent" + } + }, { "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-condition", "valueCodeableConcept": { @@ -502,6 +706,18 @@ }, { "extension": [ + { + "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-priority", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", + "code": "emergent" + } + ], + "text": "Emergent" + } + }, { "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-condition", "valueCodeableConcept": { @@ -520,6 +736,18 @@ }, { "extension": [ + { + "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-priority", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", + "code": "emergent" + } + ], + "text": "Emergent" + } + }, { "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-condition", "valueCodeableConcept": { @@ -538,6 +766,18 @@ }, { "extension": [ + { + "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-priority", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", + "code": "emergent" + } + ], + "text": "Emergent" + } + }, { "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-condition", "valueCodeableConcept": { @@ -556,6 +796,18 @@ }, { "extension": [ + { + "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-priority", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", + "code": "emergent" + } + ], + "text": "Emergent" + } + }, { "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-condition", "valueCodeableConcept": { @@ -574,6 +826,18 @@ }, { "extension": [ + { + "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-priority", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", + "code": "emergent" + } + ], + "text": "Emergent" + } + }, { "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-condition", "valueCodeableConcept": { @@ -592,6 +856,18 @@ }, { "extension": [ + { + "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-priority", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", + "code": "emergent" + } + ], + "text": "Emergent" + } + }, { "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-condition", "valueCodeableConcept": { @@ -610,6 +886,18 @@ }, { "extension": [ + { + "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-priority", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", + "code": "emergent" + } + ], + "text": "Emergent" + } + }, { "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-condition", "valueCodeableConcept": { @@ -628,6 +916,18 @@ }, { "extension": [ + { + "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-priority", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", + "code": "emergent" + } + ], + "text": "Emergent" + } + }, { "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-condition", "valueCodeableConcept": { @@ -646,6 +946,18 @@ }, { "extension": [ + { + "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-priority", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", + "code": "emergent" + } + ], + "text": "Emergent" + } + }, { "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-condition", "valueCodeableConcept": { @@ -664,6 +976,18 @@ }, { "extension": [ + { + "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-priority", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", + "code": "emergent" + } + ], + "text": "Emergent" + } + }, { "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-condition", "valueCodeableConcept": { diff --git a/plugin/cr/src/test/resources/ersd-active-transaction-capabilities-bundle.json b/plugin/cr/src/test/resources/ersd-active-transaction-capabilities-bundle.json index b2e0bb928..b17d57635 100644 --- a/plugin/cr/src/test/resources/ersd-active-transaction-capabilities-bundle.json +++ b/plugin/cr/src/test/resources/ersd-active-transaction-capabilities-bundle.json @@ -39,6 +39,18 @@ }, { "extension": [ + { + "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-priority", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", + "code": "emergent" + } + ], + "text": "Emergent" + } + }, { "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-condition", "valueCodeableConcept": { diff --git a/plugin/cr/src/test/resources/ersd-active-transaction-no-versions.json b/plugin/cr/src/test/resources/ersd-active-transaction-no-versions.json index c625e40c9..c63503d4d 100644 --- a/plugin/cr/src/test/resources/ersd-active-transaction-no-versions.json +++ b/plugin/cr/src/test/resources/ersd-active-transaction-no-versions.json @@ -39,6 +39,18 @@ }, { "extension": [ + { + "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-priority", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", + "code": "emergent" + } + ], + "text": "Emergent" + } + }, { "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-condition", "valueCodeableConcept": { @@ -300,4 +312,4 @@ } } ] -} \ No newline at end of file +} diff --git a/plugin/cr/src/test/resources/ersd-small-active-bundle.json b/plugin/cr/src/test/resources/ersd-small-active-bundle.json index 64121b46b..2b94b950a 100644 --- a/plugin/cr/src/test/resources/ersd-small-active-bundle.json +++ b/plugin/cr/src/test/resources/ersd-small-active-bundle.json @@ -110,6 +110,18 @@ }, { "extension": [ + { + "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-priority", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", + "code": "routine" + } + ], + "text": "routine" + } + }, { "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-condition", "valueCodeableConcept": { diff --git a/plugin/cr/src/test/resources/ersd-small-approved-draft-missing-condition-and-priority.json b/plugin/cr/src/test/resources/ersd-small-approved-draft-missing-condition-and-priority.json new file mode 100644 index 000000000..1cead1441 --- /dev/null +++ b/plugin/cr/src/test/resources/ersd-small-approved-draft-missing-condition-and-priority.json @@ -0,0 +1,288 @@ +{ + "resourceType": "Bundle", + "id": "rctc-release-2022-10-19-Bundle-rctc", + "type": "transaction", + "timestamp": "2022-10-21T15:18:28.504-04:00", + "entry": [ + { + "fullUrl": "http://ersd.aimsplatform.org/fhir/Library/SpecificationLibrary", + "resource": { + "resourceType": "Library", + "id": "SpecificationLibrary", + "url": "http://ersd.aimsplatform.org/fhir/Library/SpecificationLibrary", + "version": "1.2.3-draft", + "status": "draft", + "date": "2023-06-30", + "approvalDate": "2023-06-30", + "relatedArtifact": [ + { + "type": "composed-of", + "resource": "http://ersd.aimsplatform.org/fhir/PlanDefinition/us-ecr-specification|1.2.3-draft", + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/crmi-isOwned", + "valueBoolean": true + } + ] + }, + { + "type": "composed-of", + "resource": "http://ersd.aimsplatform.org/fhir/Library/rctc|1.2.3-draft", + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/crmi-isOwned", + "valueBoolean": true + } + ] + }, + { + "type": "depends-on", + "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.6|20210526", + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/crmi-isOwned", + "valueBoolean": false + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Library/SpecificationLibrary" + } + }, + { + "fullUrl": "http://ersd.aimsplatform.org/fhir/PlanDefinition/us-ecr-specification", + "resource": { + "resourceType": "PlanDefinition", + "id": "us-ecr-specification", + "url": "http://ersd.aimsplatform.org/fhir/PlanDefinition/us-ecr-specification", + "version": "1.2.3-draft", + "status": "draft", + "relatedArtifact": [ + { + "type": "depends-on", + "label": "RCTC Value Set Library of Trigger Codes", + "resource": "http://ersd.aimsplatform.org/fhir/Library/rctc|1.2.3-draft" + } + ] + }, + "request": { + "method": "PUT", + "url": "PlanDefinition/us-ecr-specification" + } + }, + { + "fullUrl": "http://ersd.aimsplatform.org/fhir/Library/rctc", + "resource": { + "resourceType": "Library", + "id": "rctc", + "url": "http://ersd.aimsplatform.org/fhir/Library/rctc", + "version": "1.2.3-draft", + "status": "draft", + "relatedArtifact": [ + { + "type": "composed-of", + "resource": "http://ersd.aimsplatform.org/fhir/ValueSet/dxtc|1.2.3-draft", + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/crmi-isOwned", + "valueBoolean": true + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Library/rctc" + } + }, + { + "fullUrl": "http://ersd.aimsplatform.org/fhir/ValueSet/dxtc", + "resource": { + "resourceType": "ValueSet", + "id": "dxtc", + "url": "http://ersd.aimsplatform.org/fhir/ValueSet/dxtc", + "version": "1.2.3-draft", + "status": "draft", + "compose": { + "include": [ + { + "valueSet": [ + "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.6|20210526" + ] + } + ] + }, + "expansion": { + "timestamp": "2022-10-21T15:18:29-04:00", + "contains": [ + { + "system": "http://hl7.org/fhir/sid/icd-10-cm", + "version": "Provisional_2022-01-12", + "code": "T40.0X1A" + }, + { + "system": "http://hl7.org/fhir/sid/icd-10-cm", + "version": "Provisional_2022-01-12", + "code": "T40.0X2A" + }, + { + "system": "http://hl7.org/fhir/sid/icd-10-cm", + "version": "Provisional_2022-01-12", + "code": "T40.0X3A" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "ValueSet/dxtc" + } + }, + { + "fullUrl": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.6", + "resource": { + "resourceType": "ValueSet", + "id": "2.16.840.1.113762.1.4.1146.6", + "url": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.6", + "identifier": [ + { + "system": "urn:ietf:rfc:3986", + "value": "urn:oid:2.16.840.1.113762.1.4.1146.6" + } + ], + "version": "20210526", + "status": "active", + "compose": { + "include": [ + { + "system": "http://snomed.info/sct", + "version": "Provisional_2022-04-25", + "concept": [ + { + "code": "1086051000119107", + "display": "Cardiomyopathy due to diphtheria (disorder)" + }, + { + "code": "1086061000119109", + "display": "Diphtheria radiculomyelitis (disorder)" + }, + { + "code": "1086071000119103", + "display": "Diphtheria tubulointerstitial nephropathy (disorder)" + }, + { + "code": "1090211000119102", + "display": "Pharyngeal diphtheria (disorder)" + }, + { + "code": "129667001", + "display": "Diphtheritic peripheral neuritis (disorder)" + }, + { + "code": "13596001", + "display": "Diphtheritic peritonitis (disorder)" + }, + { + "code": "15682004", + "display": "Anterior nasal diphtheria (disorder)" + }, + { + "code": "186347006", + "display": "Diphtheria of penis (disorder)" + }, + { + "code": "18901009", + "display": "Cutaneous diphtheria (disorder)" + }, + { + "code": "194945009", + "display": "Acute myocarditis - diphtheritic (disorder)" + }, + { + "code": "230596007", + "display": "Diphtheritic neuropathy (disorder)" + }, + { + "code": "240422004", + "display": "Tracheobronchial diphtheria (disorder)" + }, + { + "code": "26117009", + "display": "Diphtheritic myocarditis (disorder)" + }, + { + "code": "276197005", + "display": "Infection caused by Corynebacterium diphtheriae (disorder)" + }, + { + "code": "3419005", + "display": "Faucial diphtheria (disorder)" + }, + { + "code": "397428000", + "display": "Diphtheria (disorder)" + }, + { + "code": "397430003", + "display": "Diphtheria caused by Corynebacterium diphtheriae (disorder)" + }, + { + "code": "48278001", + "display": "Diphtheritic cystitis (disorder)" + }, + { + "code": "50215002", + "display": "Laryngeal diphtheria (disorder)" + }, + { + "code": "715659006", + "display": "Diphtheria of respiratory system (disorder)" + }, + { + "code": "75589004", + "display": "Nasopharyngeal diphtheria (disorder)" + }, + { + "code": "7773002", + "display": "Conjunctival diphtheria (disorder)" + }, + { + "code": "789005009", + "display": "Paralysis of uvula after diphtheria (disorder)" + } + ] + } + ] + }, + "expansion": { + "timestamp": "2022-10-21T15:18:29-04:00", + "contains": [ + { + "system": "http://snomed.info/sct", + "version": "Provisional_2022-04-25", + "code": "1086051000119107" + }, + { + "system": "http://snomed.info/sct", + "version": "Provisional_2022-04-25", + "code": "1086061000119109" + }, + { + "system": "http://snomed.info/sct", + "version": "Provisional_2022-04-25", + "code": "1086071000119103" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "ValueSet/2.16.840.1.113762.1.4.1146.6" + } + } + ] +} diff --git a/plugin/cr/src/test/resources/ersd-small-approved-draft-missing-condition.json b/plugin/cr/src/test/resources/ersd-small-approved-draft-missing-condition.json new file mode 100644 index 000000000..0bde9dd18 --- /dev/null +++ b/plugin/cr/src/test/resources/ersd-small-approved-draft-missing-condition.json @@ -0,0 +1,300 @@ +{ + "resourceType": "Bundle", + "id": "rctc-release-2022-10-19-Bundle-rctc", + "type": "transaction", + "timestamp": "2022-10-21T15:18:28.504-04:00", + "entry": [ + { + "fullUrl": "http://ersd.aimsplatform.org/fhir/Library/SpecificationLibrary", + "resource": { + "resourceType": "Library", + "id": "SpecificationLibrary", + "url": "http://ersd.aimsplatform.org/fhir/Library/SpecificationLibrary", + "version": "1.2.3-draft", + "status": "draft", + "date": "2023-06-30", + "approvalDate": "2023-06-30", + "relatedArtifact": [ + { + "type": "composed-of", + "resource": "http://ersd.aimsplatform.org/fhir/PlanDefinition/us-ecr-specification|1.2.3-draft", + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/crmi-isOwned", + "valueBoolean": true + } + ] + }, + { + "type": "composed-of", + "resource": "http://ersd.aimsplatform.org/fhir/Library/rctc|1.2.3-draft", + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/crmi-isOwned", + "valueBoolean": true + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/crmi-isOwned", + "valueBoolean": false + }, + { + "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-priority", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", + "code": "emergent" + } + ], + "text": "Emergent" + } + } + ], + "type": "depends-on", + "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.6|20210526" + } + ] + }, + "request": { + "method": "PUT", + "url": "Library/SpecificationLibrary" + } + }, + { + "fullUrl": "http://ersd.aimsplatform.org/fhir/PlanDefinition/us-ecr-specification", + "resource": { + "resourceType": "PlanDefinition", + "id": "us-ecr-specification", + "url": "http://ersd.aimsplatform.org/fhir/PlanDefinition/us-ecr-specification", + "version": "1.2.3-draft", + "status": "draft", + "relatedArtifact": [ + { + "type": "depends-on", + "label": "RCTC Value Set Library of Trigger Codes", + "resource": "http://ersd.aimsplatform.org/fhir/Library/rctc|1.2.3-draft" + } + ] + }, + "request": { + "method": "PUT", + "url": "PlanDefinition/us-ecr-specification" + } + }, + { + "fullUrl": "http://ersd.aimsplatform.org/fhir/Library/rctc", + "resource": { + "resourceType": "Library", + "id": "rctc", + "url": "http://ersd.aimsplatform.org/fhir/Library/rctc", + "version": "1.2.3-draft", + "status": "draft", + "relatedArtifact": [ + { + "type": "composed-of", + "resource": "http://ersd.aimsplatform.org/fhir/ValueSet/dxtc|1.2.3-draft", + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/crmi-isOwned", + "valueBoolean": true + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Library/rctc" + } + }, + { + "fullUrl": "http://ersd.aimsplatform.org/fhir/ValueSet/dxtc", + "resource": { + "resourceType": "ValueSet", + "id": "dxtc", + "url": "http://ersd.aimsplatform.org/fhir/ValueSet/dxtc", + "version": "1.2.3-draft", + "status": "draft", + "compose": { + "include": [ + { + "valueSet": [ + "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.6|20210526" + ] + } + ] + }, + "expansion": { + "timestamp": "2022-10-21T15:18:29-04:00", + "contains": [ + { + "system": "http://hl7.org/fhir/sid/icd-10-cm", + "version": "Provisional_2022-01-12", + "code": "T40.0X1A" + }, + { + "system": "http://hl7.org/fhir/sid/icd-10-cm", + "version": "Provisional_2022-01-12", + "code": "T40.0X2A" + }, + { + "system": "http://hl7.org/fhir/sid/icd-10-cm", + "version": "Provisional_2022-01-12", + "code": "T40.0X3A" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "ValueSet/dxtc" + } + }, + { + "fullUrl": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.6", + "resource": { + "resourceType": "ValueSet", + "id": "2.16.840.1.113762.1.4.1146.6", + "url": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.6", + "identifier": [ + { + "system": "urn:ietf:rfc:3986", + "value": "urn:oid:2.16.840.1.113762.1.4.1146.6" + } + ], + "version": "20210526", + "status": "active", + "compose": { + "include": [ + { + "system": "http://snomed.info/sct", + "version": "Provisional_2022-04-25", + "concept": [ + { + "code": "1086051000119107", + "display": "Cardiomyopathy due to diphtheria (disorder)" + }, + { + "code": "1086061000119109", + "display": "Diphtheria radiculomyelitis (disorder)" + }, + { + "code": "1086071000119103", + "display": "Diphtheria tubulointerstitial nephropathy (disorder)" + }, + { + "code": "1090211000119102", + "display": "Pharyngeal diphtheria (disorder)" + }, + { + "code": "129667001", + "display": "Diphtheritic peripheral neuritis (disorder)" + }, + { + "code": "13596001", + "display": "Diphtheritic peritonitis (disorder)" + }, + { + "code": "15682004", + "display": "Anterior nasal diphtheria (disorder)" + }, + { + "code": "186347006", + "display": "Diphtheria of penis (disorder)" + }, + { + "code": "18901009", + "display": "Cutaneous diphtheria (disorder)" + }, + { + "code": "194945009", + "display": "Acute myocarditis - diphtheritic (disorder)" + }, + { + "code": "230596007", + "display": "Diphtheritic neuropathy (disorder)" + }, + { + "code": "240422004", + "display": "Tracheobronchial diphtheria (disorder)" + }, + { + "code": "26117009", + "display": "Diphtheritic myocarditis (disorder)" + }, + { + "code": "276197005", + "display": "Infection caused by Corynebacterium diphtheriae (disorder)" + }, + { + "code": "3419005", + "display": "Faucial diphtheria (disorder)" + }, + { + "code": "397428000", + "display": "Diphtheria (disorder)" + }, + { + "code": "397430003", + "display": "Diphtheria caused by Corynebacterium diphtheriae (disorder)" + }, + { + "code": "48278001", + "display": "Diphtheritic cystitis (disorder)" + }, + { + "code": "50215002", + "display": "Laryngeal diphtheria (disorder)" + }, + { + "code": "715659006", + "display": "Diphtheria of respiratory system (disorder)" + }, + { + "code": "75589004", + "display": "Nasopharyngeal diphtheria (disorder)" + }, + { + "code": "7773002", + "display": "Conjunctival diphtheria (disorder)" + }, + { + "code": "789005009", + "display": "Paralysis of uvula after diphtheria (disorder)" + } + ] + } + ] + }, + "expansion": { + "timestamp": "2022-10-21T15:18:29-04:00", + "contains": [ + { + "system": "http://snomed.info/sct", + "version": "Provisional_2022-04-25", + "code": "1086051000119107" + }, + { + "system": "http://snomed.info/sct", + "version": "Provisional_2022-04-25", + "code": "1086061000119109" + }, + { + "system": "http://snomed.info/sct", + "version": "Provisional_2022-04-25", + "code": "1086071000119103" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "ValueSet/2.16.840.1.113762.1.4.1146.6" + } + } + ] +} diff --git a/plugin/cr/src/test/resources/ersd-small-approved-draft-missing-priority.json b/plugin/cr/src/test/resources/ersd-small-approved-draft-missing-priority.json new file mode 100644 index 000000000..c7fdad76b --- /dev/null +++ b/plugin/cr/src/test/resources/ersd-small-approved-draft-missing-priority.json @@ -0,0 +1,300 @@ +{ + "resourceType": "Bundle", + "id": "rctc-release-2022-10-19-Bundle-rctc", + "type": "transaction", + "timestamp": "2022-10-21T15:18:28.504-04:00", + "entry": [ + { + "fullUrl": "http://ersd.aimsplatform.org/fhir/Library/SpecificationLibrary", + "resource": { + "resourceType": "Library", + "id": "SpecificationLibrary", + "url": "http://ersd.aimsplatform.org/fhir/Library/SpecificationLibrary", + "version": "1.2.3-draft", + "status": "draft", + "date": "2023-06-30", + "approvalDate": "2023-06-30", + "relatedArtifact": [ + { + "type": "composed-of", + "resource": "http://ersd.aimsplatform.org/fhir/PlanDefinition/us-ecr-specification|1.2.3-draft", + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/crmi-isOwned", + "valueBoolean": true + } + ] + }, + { + "type": "composed-of", + "resource": "http://ersd.aimsplatform.org/fhir/Library/rctc|1.2.3-draft", + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/crmi-isOwned", + "valueBoolean": true + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/crmi-isOwned", + "valueBoolean": false + }, + { + "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-condition", + "valueCodeableConcept": { + "coding": [ + { + "system": "http://snomed.info/sct", + "code": "49649001" + } + ], + "text": "Infection caused by Acanthamoeba (disorder)" + } + } + ], + "type": "depends-on", + "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.6|20210526" + } + ] + }, + "request": { + "method": "PUT", + "url": "Library/SpecificationLibrary" + } + }, + { + "fullUrl": "http://ersd.aimsplatform.org/fhir/PlanDefinition/us-ecr-specification", + "resource": { + "resourceType": "PlanDefinition", + "id": "us-ecr-specification", + "url": "http://ersd.aimsplatform.org/fhir/PlanDefinition/us-ecr-specification", + "version": "1.2.3-draft", + "status": "draft", + "relatedArtifact": [ + { + "type": "depends-on", + "label": "RCTC Value Set Library of Trigger Codes", + "resource": "http://ersd.aimsplatform.org/fhir/Library/rctc|1.2.3-draft" + } + ] + }, + "request": { + "method": "PUT", + "url": "PlanDefinition/us-ecr-specification" + } + }, + { + "fullUrl": "http://ersd.aimsplatform.org/fhir/Library/rctc", + "resource": { + "resourceType": "Library", + "id": "rctc", + "url": "http://ersd.aimsplatform.org/fhir/Library/rctc", + "version": "1.2.3-draft", + "status": "draft", + "relatedArtifact": [ + { + "type": "composed-of", + "resource": "http://ersd.aimsplatform.org/fhir/ValueSet/dxtc|1.2.3-draft", + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/crmi-isOwned", + "valueBoolean": true + } + ] + } + ] + }, + "request": { + "method": "PUT", + "url": "Library/rctc" + } + }, + { + "fullUrl": "http://ersd.aimsplatform.org/fhir/ValueSet/dxtc", + "resource": { + "resourceType": "ValueSet", + "id": "dxtc", + "url": "http://ersd.aimsplatform.org/fhir/ValueSet/dxtc", + "version": "1.2.3-draft", + "status": "draft", + "compose": { + "include": [ + { + "valueSet": [ + "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.6|20210526" + ] + } + ] + }, + "expansion": { + "timestamp": "2022-10-21T15:18:29-04:00", + "contains": [ + { + "system": "http://hl7.org/fhir/sid/icd-10-cm", + "version": "Provisional_2022-01-12", + "code": "T40.0X1A" + }, + { + "system": "http://hl7.org/fhir/sid/icd-10-cm", + "version": "Provisional_2022-01-12", + "code": "T40.0X2A" + }, + { + "system": "http://hl7.org/fhir/sid/icd-10-cm", + "version": "Provisional_2022-01-12", + "code": "T40.0X3A" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "ValueSet/dxtc" + } + }, + { + "fullUrl": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.6", + "resource": { + "resourceType": "ValueSet", + "id": "2.16.840.1.113762.1.4.1146.6", + "url": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.6", + "identifier": [ + { + "system": "urn:ietf:rfc:3986", + "value": "urn:oid:2.16.840.1.113762.1.4.1146.6" + } + ], + "version": "20210526", + "status": "active", + "compose": { + "include": [ + { + "system": "http://snomed.info/sct", + "version": "Provisional_2022-04-25", + "concept": [ + { + "code": "1086051000119107", + "display": "Cardiomyopathy due to diphtheria (disorder)" + }, + { + "code": "1086061000119109", + "display": "Diphtheria radiculomyelitis (disorder)" + }, + { + "code": "1086071000119103", + "display": "Diphtheria tubulointerstitial nephropathy (disorder)" + }, + { + "code": "1090211000119102", + "display": "Pharyngeal diphtheria (disorder)" + }, + { + "code": "129667001", + "display": "Diphtheritic peripheral neuritis (disorder)" + }, + { + "code": "13596001", + "display": "Diphtheritic peritonitis (disorder)" + }, + { + "code": "15682004", + "display": "Anterior nasal diphtheria (disorder)" + }, + { + "code": "186347006", + "display": "Diphtheria of penis (disorder)" + }, + { + "code": "18901009", + "display": "Cutaneous diphtheria (disorder)" + }, + { + "code": "194945009", + "display": "Acute myocarditis - diphtheritic (disorder)" + }, + { + "code": "230596007", + "display": "Diphtheritic neuropathy (disorder)" + }, + { + "code": "240422004", + "display": "Tracheobronchial diphtheria (disorder)" + }, + { + "code": "26117009", + "display": "Diphtheritic myocarditis (disorder)" + }, + { + "code": "276197005", + "display": "Infection caused by Corynebacterium diphtheriae (disorder)" + }, + { + "code": "3419005", + "display": "Faucial diphtheria (disorder)" + }, + { + "code": "397428000", + "display": "Diphtheria (disorder)" + }, + { + "code": "397430003", + "display": "Diphtheria caused by Corynebacterium diphtheriae (disorder)" + }, + { + "code": "48278001", + "display": "Diphtheritic cystitis (disorder)" + }, + { + "code": "50215002", + "display": "Laryngeal diphtheria (disorder)" + }, + { + "code": "715659006", + "display": "Diphtheria of respiratory system (disorder)" + }, + { + "code": "75589004", + "display": "Nasopharyngeal diphtheria (disorder)" + }, + { + "code": "7773002", + "display": "Conjunctival diphtheria (disorder)" + }, + { + "code": "789005009", + "display": "Paralysis of uvula after diphtheria (disorder)" + } + ] + } + ] + }, + "expansion": { + "timestamp": "2022-10-21T15:18:29-04:00", + "contains": [ + { + "system": "http://snomed.info/sct", + "version": "Provisional_2022-04-25", + "code": "1086051000119107" + }, + { + "system": "http://snomed.info/sct", + "version": "Provisional_2022-04-25", + "code": "1086061000119109" + }, + { + "system": "http://snomed.info/sct", + "version": "Provisional_2022-04-25", + "code": "1086071000119103" + } + ] + } + }, + "request": { + "method": "PUT", + "url": "ValueSet/2.16.840.1.113762.1.4.1146.6" + } + } + ] +} diff --git a/plugin/cr/src/test/resources/ersd-small-approved-draft-no-conditions.json b/plugin/cr/src/test/resources/ersd-small-approved-draft-no-conditions.json deleted file mode 100644 index 4de55693d..000000000 --- a/plugin/cr/src/test/resources/ersd-small-approved-draft-no-conditions.json +++ /dev/null @@ -1,597 +0,0 @@ -{ - "resourceType": "Bundle", - "type": "transaction", - "entry": [ - { - "fullUrl": "http://ersd.aimsplatform.org/fhir/Library/SpecificationLibrary|1.0.0.0-draft", - "resource": { - "resourceType": "Library", - "id": "SpecificationLibrary", - "meta": { - "versionId": "1", - "lastUpdated": "2023-12-14T15:38:56.845-05:00", - "source": "#FNgLVm21fIyZMxwE" - }, - "url": "http://ersd.aimsplatform.org/fhir/Library/SpecificationLibrary", - "date": "2023-06-30", - "approvalDate": "2023-06-30", - "version": "1.0.0.0-draft", - "status": "draft", - "useContext": [ - { - "code": { - "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context-type", - "code": "reporting" - }, - "valueCodeableConcept": { - "coding": [ - { - "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", - "code": "triggering" - } - ] - } - }, - { - "code": { - "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context-type", - "code": "specification-type" - }, - "valueCodeableConcept": { - "coding": [ - { - "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", - "code": "program" - } - ] - } - } - ], - "relatedArtifact": [ - { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/crmi-isOwned", - "valueBoolean": true - } - ], - "type": "composed-of", - "resource": "http://ersd.aimsplatform.org/fhir/PlanDefinition/us-ecr-specification|1.0.0.0-draft" - }, - { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/crmi-isOwned", - "valueBoolean": true - } - ], - "type": "composed-of", - "resource": "http://ersd.aimsplatform.org/fhir/Library/rctc|1.0.0.0-draft" - }, - { - "type": "composed-of", - "resource": "http://notOwnedTest.com/Library/notOwnedRoot|0.1.1" - }, - { - "extension": [ - { - "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-priority", - "valueCodeableConcept": { - "coding": [ - { - "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", - "code": "emergent" - } - ], - "text": "Emergent" - } - } - ], - "type": "depends-on", - "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.163|20220603" - }, - { - "extension": [ - { - "url": "http://aphl.org/fhir/vsm/StructureDefinition/vsm-valueset-condition", - "valueCodeableConcept": { - "coding": [ - { - "system": "http://snomed.info/sct", - "code": "49649001" - } - ], - "text": "Infection caused by Acanthamoeba (disorder)" - } - } - ], - "type": "depends-on", - "resource": "http://cts.nlm.nih.gov/fhir/ValueSet/123-this-will-be-routine|20210526" - }, - { - "type": "depends-on", - "resource": "http://ersd.aimsplatform.org/fhir/ValueSet/dxtc|1.0.0.0-draft" - } - ] - }, - "request": { - "method": "PUT", - "url": "Library/SpecificationLibrary", - "ifNoneExist": "url=http://ersd.aimsplatform.org/fhir/Library/SpecificationLibrary&version=1.0.0.0-draft" - } - }, - { - "fullUrl": "http://ersd.aimsplatform.org/fhir/PlanDefinition/us-ecr-specification|1.0.0.0-draft", - "resource": { - "resourceType": "PlanDefinition", - "id": "8", - "meta": { - "versionId": "1", - "lastUpdated": "2023-12-14T15:38:56.845-05:00", - "source": "#FNgLVm21fIyZMxwE" - }, - "url": "http://ersd.aimsplatform.org/fhir/PlanDefinition/us-ecr-specification", - "version": "1.0.0.0-draft", - "status": "draft", - "relatedArtifact": [ - { - "type": "depends-on", - "label": "RCTC Value Set Library of Trigger Codes", - "resource": "http://ersd.aimsplatform.org/fhir/Library/rctc|1.0.0.0-draft" - }, - { - "type": "composed-of", - "resource": "http://notOwnedTest.com/Library/notOwnedLeaf|0.1.1" - } - ] - }, - "request": { - "method": "POST", - "url": "PlanDefinition/8", - "ifNoneExist": "url=http://ersd.aimsplatform.org/fhir/PlanDefinition/us-ecr-specification&version=1.0.0.0-draft" - } - }, - { - "fullUrl": "http://ersd.aimsplatform.org/fhir/Library/rctc|1.0.0.0-draft", - "resource": { - "resourceType": "Library", - "id": "9", - "meta": { - "versionId": "1", - "lastUpdated": "2023-12-14T15:38:56.845-05:00", - "source": "#FNgLVm21fIyZMxwE" - }, - "url": "http://ersd.aimsplatform.org/fhir/Library/rctc", - "version": "1.0.0.0-draft", - "status": "draft", - "relatedArtifact": [ - { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/crmi-isOwned", - "valueBoolean": true - } - ], - "type": "composed-of", - "resource": "http://ersd.aimsplatform.org/fhir/ValueSet/dxtc|1.0.0.0-draft" - }, - { - "type": "composed-of", - "resource": "http://notOwnedTest.com/Library/notOwnedLeaf2|0.1.1" - } - ] - }, - "request": { - "method": "POST", - "url": "Library/9", - "ifNoneExist": "url=http://ersd.aimsplatform.org/fhir/Library/rctc&version=1.0.0.0-draft" - } - }, - { - "fullUrl": "http://ersd.aimsplatform.org/fhir/ValueSet/dxtc|1.0.0.0-draft", - "resource": { - "resourceType": "ValueSet", - "id": "10", - "meta": { - "versionId": "2", - "lastUpdated": "2023-12-14T15:43:06.193-05:00", - "source": "#YvcttWKq2KbM0Igj" - }, - "url": "http://ersd.aimsplatform.org/fhir/ValueSet/dxtc", - "version": "1.0.0.0-draft", - "status": "draft", - "useContext": [ - { - "code": { - "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context-type", - "code": "priority" - }, - "valueCodeableConcept": { - "coding": [ - { - "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", - "code": "routine" - } - ], - "text": "Routine" - } - } - ], - "compose": { - "include": [ - { - "valueSet": [ - "http://cts.nlm.nih.gov/fhir/ValueSet/123-this-will-be-routine|20210526" - ] - }, - { - "valueSet": [ - "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.163" - ] - } - ] - }, - "expansion": { - "timestamp": "2022-10-21T15:18:29-04:00", - "contains": [ - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "version": "Provisional_2022-01-12", - "code": "T40.0X1A" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "version": "Provisional_2022-01-12", - "code": "T40.0X2A" - }, - { - "system": "http://hl7.org/fhir/sid/icd-10-cm", - "version": "Provisional_2022-01-12", - "code": "T40.0X3A" - } - ] - } - }, - "request": { - "method": "POST", - "url": "ValueSet/10", - "ifNoneExist": "url=http://ersd.aimsplatform.org/fhir/ValueSet/dxtc&version=1.0.0.0-draft" - } - }, - { - "fullUrl": "http://cts.nlm.nih.gov/fhir/ValueSet/123-this-will-be-routine|20210526", - "resource": { - "resourceType": "ValueSet", - "id": "123-this-will-be-routine", - "meta": { - "versionId": "1", - "lastUpdated": "2023-12-14T15:38:33.243-05:00", - "source": "#MT6tY32vbfEfzQmh" - }, - "url": "http://cts.nlm.nih.gov/fhir/ValueSet/123-this-will-be-routine", - "identifier": [ - { - "system": "urn:ietf:rfc:3986", - "value": "urn:oid:123-this-will-be-routine" - } - ], - "version": "20210526", - "status": "active", - "useContext": [ - { - "code": { - "system": "http://terminology.hl7.org/CodeSystem/usage-context-type", - "code": "focus" - }, - "valueCodeableConcept": { - "coding": [ - { - "system": "http://snomed.info/sct", - "code": "49649001" - } - ], - "text": "Infection caused by Acanthamoeba (disorder)" - } - }, - { - "code": { - "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context-type", - "code": "priority" - }, - "valueCodeableConcept": { - "coding": [ - { - "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", - "code": "routine" - } - ], - "text": "Routine" - } - } - ], - "compose": { - "include": [ - { - "system": "http://snomed.info/sct", - "version": "Provisional_2022-04-25", - "concept": [ - { - "code": "1086051000119107", - "display": "Cardiomyopathy due to diphtheria (disorder)" - }, - { - "code": "1086061000119109", - "display": "Diphtheria radiculomyelitis (disorder)" - }, - { - "code": "1086071000119103", - "display": "Diphtheria tubulointerstitial nephropathy (disorder)" - }, - { - "code": "1090211000119102", - "display": "Pharyngeal diphtheria (disorder)" - }, - { - "code": "129667001", - "display": "Diphtheritic peripheral neuritis (disorder)" - }, - { - "code": "13596001", - "display": "Diphtheritic peritonitis (disorder)" - }, - { - "code": "15682004", - "display": "Anterior nasal diphtheria (disorder)" - }, - { - "code": "186347006", - "display": "Diphtheria of penis (disorder)" - }, - { - "code": "18901009", - "display": "Cutaneous diphtheria (disorder)" - }, - { - "code": "194945009", - "display": "Acute myocarditis - diphtheritic (disorder)" - }, - { - "code": "230596007", - "display": "Diphtheritic neuropathy (disorder)" - }, - { - "code": "240422004", - "display": "Tracheobronchial diphtheria (disorder)" - }, - { - "code": "26117009", - "display": "Diphtheritic myocarditis (disorder)" - }, - { - "code": "276197005", - "display": "Infection caused by Corynebacterium diphtheriae (disorder)" - }, - { - "code": "3419005", - "display": "Faucial diphtheria (disorder)" - }, - { - "code": "397428000", - "display": "Diphtheria (disorder)" - }, - { - "code": "397430003", - "display": "Diphtheria caused by Corynebacterium diphtheriae (disorder)" - }, - { - "code": "48278001", - "display": "Diphtheritic cystitis (disorder)" - }, - { - "code": "50215002", - "display": "Laryngeal diphtheria (disorder)" - }, - { - "code": "715659006", - "display": "Diphtheria of respiratory system (disorder)" - }, - { - "code": "75589004", - "display": "Nasopharyngeal diphtheria (disorder)" - }, - { - "code": "7773002", - "display": "Conjunctival diphtheria (disorder)" - }, - { - "code": "789005009", - "display": "Paralysis of uvula after diphtheria (disorder)" - } - ] - } - ] - }, - "expansion": { - "timestamp": "2022-10-21T15:18:29-04:00", - "contains": [ - { - "system": "http://snomed.info/sct", - "version": "Provisional_2022-04-25", - "code": "1086051000119107" - }, - { - "system": "http://snomed.info/sct", - "version": "Provisional_2022-04-25", - "code": "1086061000119109" - }, - { - "system": "http://snomed.info/sct", - "version": "Provisional_2022-04-25", - "code": "1086071000119103" - } - ] - } - }, - "request": { - "method": "POST", - "url": "ValueSet/123-this-will-be-routine", - "ifNoneExist": "url=http://cts.nlm.nih.gov/fhir/ValueSet/123-this-will-be-routine&version=20210526" - } - }, - { - "fullUrl": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.163|20220603", - "resource": { - "resourceType": "ValueSet", - "id": "11", - "meta": { - "versionId": "1", - "lastUpdated": "2023-12-14T15:38:56.845-05:00", - "source": "#FNgLVm21fIyZMxwE", - "profile": [ - "http://hl7.org/fhir/us/cqfmeasures/StructureDefinition/publishable-valueset-cqfm", - "http://hl7.org/fhir/StructureDefinition/shareablevalueset" - ] - }, - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/valueset-author", - "valueString": "CSTE Author" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/valueset-keyWord", - "valueString": "Cholera,G_Enteric,Trigger" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/resource-lastReviewDate", - "valueDate": "2022-12-15" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/valueset-effectiveDate", - "valueDate": "2022-06-03" - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/valueset-authoritativeSource", - "valueUri": "https://cts.nlm.nih.gov/fhir" - } - ], - "url": "http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.163", - "identifier": [ - { - "system": "urn:ietf:rfc:3986", - "value": "urn:oid:2.16.840.1.113762.1.4.1146.163" - } - ], - "version": "20220603", - "name": "Cholera (Disorders) (SNOMED)", - "title": "Cholera (Disorders) (SNOMED)", - "status": "active", - "experimental": false, - "date": "2022-06-03T01:06:35-04:00", - "publisher": "CSTE Steward", - "useContext": [ - { - "code": { - "system": "http://terminology.hl7.org/CodeSystem/usage-context-type", - "code": "focus" - }, - "valueCodeableConcept": { - "coding": [ - { - "system": "http://snomed.info/sct", - "code": "49649001" - } - ], - "text": "Infection caused by Acanthamoeba (disorder)" - } - }, - { - "code": { - "system": "http://terminology.hl7.org/CodeSystem/usage-context-type", - "code": "focus" - }, - "valueCodeableConcept": { - "coding": [ - { - "system": "http://snomed.info/sct", - "code": "767146004" - } - ] - } - }, - { - "code": { - "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context-type", - "code": "priority" - }, - "valueCodeableConcept": { - "coding": [ - { - "system": "http://hl7.org/fhir/us/ecr/CodeSystem/us-ph-usage-context", - "code": "emergent" - } - ], - "text": "Emergent" - } - } - ], - "jurisdiction": [ - { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/data-absent-reason", - "valueCode": "unknown" - } - ] - } - ], - "purpose": "(Clinical Focus: This set of values contains diagnoses or problems that represent that the patient has Cholera regardless of the clinical presentation of the condition),(Data Element Scope: Diagnoses or problems documented in a clinical record.),(Inclusion Criteria: Root1 = Cholera (disorder); \nRoot1 children included = All;\n\nAdded leaf concepts: YES\n\nRoot2 = Intestinal infection due to Vibrio cholerae O1 (disorder); \nRoot2 children included = All;),(Exclusion Criteria: Cholera non-O159 or non-O1; Verner–Morrison syndrome; Cholera vaccine related disorders)", - "compose": { - "include": [ - { - "system": "http://snomed.info/sct", - "concept": [ - { - "code": "1193749009", - "display": "Inflammation of small intestine caused by Vibrio cholerae (disorder)" - }, - { - "code": "1193750009", - "display": "Inflammation of intestine caused by Vibrio cholerae (disorder)" - }, - { - "code": "240349003", - "display": "Cholera caused by Vibrio cholerae O1 Classical biotype (disorder)" - }, - { - "code": "240350003", - "display": "Cholera - non-O1 group vibrio (disorder)" - }, - { - "code": "240351004", - "display": "Cholera - O139 group Vibrio cholerae (disorder)" - }, - { - "code": "447282003", - "display": "Intestinal infection caused by Vibrio cholerae O1 (disorder)" - }, - { - "code": "63650001", - "display": "Cholera (disorder)" - }, - { - "code": "81020007", - "display": "Cholera caused by Vibrio cholerae El Tor (disorder)" - } - ] - } - ] - } - }, - "request": { - "method": "POST", - "url": "ValueSet/11", - "ifNoneExist": "url=http://cts.nlm.nih.gov/fhir/ValueSet/2.16.840.1.113762.1.4.1146.163&version=20220603" - } - } - ] -}