Skip to content

Commit 121a9e0

Browse files
committed
Set required recorded field on Provenance resource
The FHIR R4 Provenance resource requires the recorded field (1..1 cardinality). This was missing, making the generated Provenance resources technically invalid.
1 parent 599aea8 commit 121a9e0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/de/medizininformatikinitiative/torch/model/management/ResourceBundle.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ public Bundle toFhirBundle(String extractionId) {
265265
private static Provenance createProvenance(String extractionId, String groupId, List<ResourceGroup> groupResources) {
266266
Provenance provenance = new Provenance();
267267
provenance.setId(PROVENANCE_PREFIX + groupId);
268+
provenance.setRecorded(new Date());
268269

269270
// Add all resources under the same group as targets
270271
groupResources.forEach(rg ->

0 commit comments

Comments
 (0)