Uploaded image for project: 'FHIR Module v2'
  1. FHIR Module v2
  2. FM2-216

Add create, update, and delete methods for List

    XMLWordPrintable

Details

    • Enhancement
    • Status: Closed
    • Should
    • Resolution: Fixed
    • None
    • FM2 1.0.0
    • 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.

      Gliffy Diagrams

        Attachments

          Activity

            People

              ayesh Ayeshmantha Perera
              ibacher Ian Bacher
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: