Skip to content

Commit

Permalink
Merge pull request #306 from DBCG/305_measure_contained_duplicate_val…
Browse files Browse the repository at this point in the history
…ueCanonical

Remove duplicate source part from MeasureReport's measure extension's…
  • Loading branch information
Rob Reynolds authored Jul 20, 2021
2 parents 131a2dd + e500252 commit f8e41bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ private Resource evaluateObservationCriteria(Context context, Patient patient, R
Extension obsExtension = new Extension().setUrl("http://hl7.org/fhir/StructureDefinition/cqf-measureInfo");
Extension extExtMeasure = new Extension()
.setUrl("measure")
.setValue(new UriType("http://hl7.org/fhir/us/cqfmeasures/" + report.getMeasure()));
.setValue(new UriType(report.getMeasure().toString().startsWith("http://") ? report.getMeasure().toString() : ("http://hl7.org/fhir/us/cqfmeasures/" + report.getMeasure())));
obsExtension.addExtension(extExtMeasure);
Extension extExtPop = new Extension()
.setUrl("populationId")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ private Resource evaluateObservationCriteria(Context context, Patient patient, R
Extension obsExtension = new Extension().setUrl("http://hl7.org/fhir/StructureDefinition/cqf-measureInfo");
Extension extExtMeasure = new Extension()
.setUrl("measure")
.setValue(new CanonicalType("http://hl7.org/fhir/us/cqfmeasures/" + report.getMeasure()));
.setValue(new CanonicalType(report.getMeasure()));
obsExtension.addExtension(extExtMeasure);
Extension extExtPop = new Extension()
.setUrl("populationId")
Expand Down Expand Up @@ -656,7 +656,7 @@ private MeasureReport processAccumulators(MeasureReport report, HashMap<String,
Extension obsExtension = new Extension().setUrl("http://hl7.org/fhir/StructureDefinition/cqf-measureInfo");
Extension extExtMeasure = new Extension()
.setUrl("measure")
.setValue(new CanonicalType("http://hl7.org/fhir/us/cqfmeasures/" + report.getMeasure()));
.setValue(new CanonicalType(report.getMeasure()));
obsExtension.addExtension(extExtMeasure);
Extension extExtPop = new Extension()
.setUrl("populationId")
Expand Down

0 comments on commit f8e41bf

Please sign in to comment.