Type operation persist-if-newer

Given one or more Person resources with an id and a version (via the http://rosetta.careevolution.com/FHIR/StructureDefinition/extension/person-version extension), for each one if a Person with that id does not already exist it is created, if it exists with a lower or no version number it is updated, if it exists with the same or greater version number nothing happens.

Applies to: Person

Requires the operation URL (http://rosetta.careevolution.com/FHIR/OperationDefinition/Person-persist-if-newer) as a scope, or a SMART scope granting read and write access to the resource type the operation is executed against.

In parameters

Name Cardinality Type Documentation
person 1..* Person

Person to create or update. Must have an id and a version.

Out parameters

Name Cardinality Type Documentation
result 1..1 Code

Either 'created', 'updated' or 'no-action'