Skip to content

Commit dee2f12

Browse files
committed
add reference type to extension, make ansible-upload-all.sh executable
1 parent 9685295 commit dee2f12

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

dsf-bpe-process-feasibility/src/main/java/org/highmed/dsf/bpe/service/DownloadResearchStudyResource.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
import org.highmed.dsf.fhir.task.TaskHelper;
1313
import org.highmed.fhir.client.FhirWebserviceClient;
1414
import org.hl7.fhir.r4.model.IdType;
15+
import org.hl7.fhir.r4.model.Identifier;
1516
import org.hl7.fhir.r4.model.Reference;
1617
import org.hl7.fhir.r4.model.ResearchStudy;
1718
import org.hl7.fhir.r4.model.Task;
@@ -101,11 +102,11 @@ private ResearchStudy addMissingOrganizations(ResearchStudy researchStudy, FhirW
101102

102103
if (!identifiers.isEmpty())
103104
{
104-
identifiers.forEach(identifier -> researchStudy
105-
.addExtension(ConstantsFeasibility.EXTENSION_PARTICIPATING_MEDIC_URI,
106-
new Reference().getIdentifier()
105+
identifiers.forEach(identifier -> researchStudy.addExtension()
106+
.setUrl(ConstantsFeasibility.EXTENSION_PARTICIPATING_MEDIC_URI).setValue(
107+
new Reference().setType("Organization").setIdentifier(new Identifier()
107108
.setSystem("http://highmed.org/fhir/NamingSystem/organization-identifier")
108-
.setValue(identifier)));
109+
.setValue(identifier))));
109110

110111
return update(researchStudy, client);
111112
}

0 commit comments

Comments
 (0)