Skip to content

Commit

Permalink
issue #2903 - add versioning element to all resources in CapabilitySt…
Browse files Browse the repository at this point in the history
…atement (#2906)

* issue #2903 - add versioning element to all resources in CapabilityStatement

Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>

* change from vesioned to versioned-update

Signed-off-by: Lee Surprenant <lmsurpre@us.ibm.com>
  • Loading branch information
lmsurpre authored Oct 28, 2021
1 parent 9126334 commit 82de47f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
import com.ibm.fhir.model.type.code.IssueType;
import com.ibm.fhir.model.type.code.PublicationStatus;
import com.ibm.fhir.model.type.code.ResourceType;
import com.ibm.fhir.model.type.code.ResourceVersionPolicy;
import com.ibm.fhir.model.type.code.RestfulCapabilityMode;
import com.ibm.fhir.model.type.code.SystemRestfulInteraction;
import com.ibm.fhir.model.type.code.TypeRestfulInteraction;
Expand Down Expand Up @@ -401,6 +402,7 @@ private CapabilityStatement buildCapabilityStatement() throws Exception {
.profile(Canonical.of("http://hl7.org/fhir/profiles/" + resourceTypeName))
.interaction(interactions)
.operation(ops)
.versioning(ResourceVersionPolicy.VERSIONED_UPDATE)
.conditionalCreate(com.ibm.fhir.model.type.Boolean.TRUE)
.conditionalUpdate(com.ibm.fhir.model.type.Boolean.TRUE)
.updateCreate(isUpdateCreate)
Expand Down

0 comments on commit 82de47f

Please sign in to comment.