Search in sources :

Example 1 with CdsServiceInformation

use of org.hl7.davinci.endpoint.cdshooks.services.crd.CdsServiceInformation in project CRD by HL7-DaVinci.

the class CdsHooksController method serviceDiscovery.

/**
 * The FHIR r4 services discovery endpoint.
 * @return A services object containing an array of all services available on this server
 */
@CrossOrigin
@GetMapping(value = FHIR_RELEASE + URL_BASE)
public CdsServiceInformation serviceDiscovery() {
    logger.info("r4/serviceDiscovery");
    CdsServiceInformation serviceInformation = new CdsServiceInformation();
    serviceInformation.addServicesItem(orderSignService);
    serviceInformation.addServicesItem(orderSelectService);
    return serviceInformation;
}
Also used : CdsServiceInformation(org.hl7.davinci.endpoint.cdshooks.services.crd.CdsServiceInformation) CrossOrigin(org.springframework.web.bind.annotation.CrossOrigin) GetMapping(org.springframework.web.bind.annotation.GetMapping)

Aggregations

CdsServiceInformation (org.hl7.davinci.endpoint.cdshooks.services.crd.CdsServiceInformation)1 CrossOrigin (org.springframework.web.bind.annotation.CrossOrigin)1 GetMapping (org.springframework.web.bind.annotation.GetMapping)1