Details
-
Enhancement
-
Status: Closed
-
Should
-
Resolution: Fixed
-
None
-
None
-
None
-
Low
Description
Create
Add a method annotated with `@Create`which takes a resource and updcreatesates the resource. The method should look something like this:
@Update public MethodOutcome createResource(@ResourceParam IAnyResource resource) { return FhirProviderUtils.buildCreate(service.create(resource)); }
Create the corresponding unit tests and web tests.
Update
Add a method annotated with `@Update` which takes an id and resource and updates the resource. The method should look something like this:
@Update public MethodOutcome updateResource(@IdParam IdType id, @ResourceParam IAnyResource resource) { return FhirProviderUtils.buildUpdate(service.update(id.getIdPart(), resource)); }
Create the corresponding unit tests and web tests.
Delete
Add a method annotated with `@Delete` which takes an id deletes the corresponding resource. The method should look something like this:
@Delete public MethodOutcome deleteResource(@IdParam IdType id) { return FhirProviderUtils.buildDelete(service.delete(id.getIdPart())); }
Create the corresponding unit tests and web tests.