Query<Record1<IntensivmedizinischesMonitoringKorpertemperaturComposition>> query =
Query.buildNativeQuery("SELECT c FROM EHR e CONTAINS COMPOSITION c where "
+ "c/archetype_details/template_id/value = 'Intensivmedizinisches Monitoring Korpertemperatur' AND "
+ "e/ehr_status/subject/external_ref/id/value = '"+ subject_id.getValue() +"'",
IntensivmedizinischesMonitoringKorpertemperaturComposition.class);
List<Record1<IntensivmedizinischesMonitoringKorpertemperaturComposition>> results = new ArrayList<Record1<IntensivmedizinischesMonitoringKorpertemperaturComposition>>();
results = service.getClient().aqlEndpoint().execute(query);
If I iterate through the results and print the compo.getVersionUid(), the value is null.
In a query that returns compositions like:
If I iterate through the results and print the compo.getVersionUid(), the value is null.
Full code: https://github.com/ehrbase/fhir-bridge/blob/master/src/main/java/org/ehrbase/fhirbridge/fhir/provider/ObservationResourceProvider.java#L80