All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.dsf.fhir.webservice.jaxrs.StructureDefinitionServiceJaxrs Maven / Gradle / Ivy

package dev.dsf.fhir.webservice.jaxrs;

import org.hl7.fhir.r4.model.Parameters;
import org.hl7.fhir.r4.model.StructureDefinition;

import dev.dsf.fhir.webservice.specification.StructureDefinitionService;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.POST;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.PathParam;
import jakarta.ws.rs.core.Context;
import jakarta.ws.rs.core.HttpHeaders;
import jakarta.ws.rs.core.Response;
import jakarta.ws.rs.core.UriInfo;

@Path(StructureDefinitionServiceJaxrs.PATH)
public class StructureDefinitionServiceJaxrs
		extends AbstractResourceServiceJaxrs
		implements StructureDefinitionService
{
	public static final String PATH = "StructureDefinition";

	public StructureDefinitionServiceJaxrs(StructureDefinitionService delegate)
	{
		super(delegate);
	}

	@POST
	@Path("/{snapshot : [$]snapshot(/)?}")
	@Override
	public Response postSnapshotNew(@PathParam("snapshot") String snapshotPath, Parameters parameters,
			@Context UriInfo uri, @Context HttpHeaders headers)
	{
		return delegate.postSnapshotNew(snapshotPath, parameters, uri, headers);
	}

	@GET
	@Path("/{snapshot : [$]snapshot(/)?}")
	@Override
	public Response getSnapshotNew(@PathParam("snapshot") String snapshotPath, @Context UriInfo uri,
			@Context HttpHeaders headers)
	{
		return delegate.getSnapshotNew(snapshotPath, uri, headers);
	}

	@POST
	@Path("/{id}/{snapshot : [$]snapshot(/)?}")
	@Override
	public Response postSnapshotExisting(@PathParam("snapshot") String snapshotPath, @PathParam("id") String id,
			@Context UriInfo uri, @Context HttpHeaders headers)
	{
		return delegate.postSnapshotExisting(snapshotPath, id, uri, headers);
	}

	@GET
	@Path("/{id}/{snapshot : [$]snapshot(/)?}")
	@Override
	public Response getSnapshotExisting(@PathParam("snapshot") String snapshotPath, @PathParam("id") String id,
			@Context UriInfo uri, @Context HttpHeaders headers)
	{
		return delegate.getSnapshotExisting(snapshotPath, id, uri, headers);
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy