Skip to content

Commit

Permalink
Merge pull request #410 from medizininformatik-initiative/409-set-an-…
Browse files Browse the repository at this point in the history
…uuid-in-the-id-property-on-the-measure-population

Set an UUID in the id Property on the Measure Population
  • Loading branch information
michael-82 authored Nov 29, 2024
2 parents d4026b7 + dae8656 commit cb45a25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,9 @@ private Bundle addMeasure(Bundle queryBundle, UUID libraryId) {
.setCode(CODE_SYSTEM_MEASURE_SCORING_VALUE_COHORT)))
.addLibrary(createCanonicalUUIDUrn(libraryId));

measure.addGroup().addPopulation()
.setCode(new CodeableConcept()
var population = measure.addGroup().addPopulation();
population.setId(UUID.randomUUID().toString());
population.setCode(new CodeableConcept()
.addCoding(new Coding()
.setSystem(CODE_SYSTEM_MEASURE_POPULATION)
.setCode(CODE_SYSTEM_MEASURE_POPULATION_VALUE_INITIAL_POPULATION)))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ public void testPublishQuery()
assertEquals(1, measure.getMeta().getProfile().stream().filter(p -> p.getValueAsString()
.equals("http://medizininformatik-initiative.de/fhir/StructureDefinition/feasibility-measure"))
.count());
assertEquals(36, measure.getGroupFirstRep().getPopulationFirstRep().getId().length());
assertEquals("http://medizininformatik-initiative.de/fhir/CodeSystem/feasibility", measureReferenceSystem);
}

Expand Down

0 comments on commit cb45a25

Please sign in to comment.