-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Canonical Urls added in operation definitions, Recommendation immds-f…
…orecast oepration implemented and ready
- Loading branch information
Showing
6 changed files
with
43 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 20 additions & 23 deletions
43
...java/org/immregistries/iis/kernal/fhir/immdsForecast/IRecommendationForecastProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,29 @@ | ||
package org.immregistries.iis.kernal.fhir.immdsForecast; | ||
|
||
import ca.uhn.fhir.model.api.annotation.Description; | ||
import ca.uhn.fhir.rest.annotation.Operation; | ||
import ca.uhn.fhir.rest.annotation.OperationParam; | ||
import org.hl7.fhir.instance.model.api.IBaseParameters; | ||
import org.hl7.fhir.instance.model.api.IDomainResource; | ||
import org.hl7.fhir.instance.model.api.IPrimitiveType; | ||
|
||
import java.util.Date; | ||
import java.util.List; | ||
|
||
public interface IRecommendationForecastProvider<Parameters extends IBaseParameters, Patient extends IDomainResource, Immunization extends IDomainResource> { | ||
String $_IMMDS_FORECAST = "$immds-forecast"; | ||
String ASSESSMENT_DATE = "assessmentDate"; | ||
String PATIENT = "patient"; | ||
String RECOMMENDATION = "recommendation"; | ||
String IMMUNIZATION = "immunization"; | ||
public static final String $_IMMDS_FORECAST = "$immds-forecast"; | ||
public static final String ASSESSMENT_DATE = "assessmentDate"; | ||
public static final String PATIENT = "patient"; | ||
public static final String RECOMMENDATION = "recommendation"; | ||
public static final String IMMUNIZATION = "immunization"; | ||
public static final String IMM_DSFORECAST_CANONICAL_URL = "http://hl7.org/fhir/us/immds/OperationDefinition/ImmDSForecastOperation"; | ||
|
||
@Operation(name = $_IMMDS_FORECAST) | ||
Parameters immdsForecastOperation( | ||
@Description(shortDefinition = "The date on which to assess the forecast.") | ||
@OperationParam(name = ASSESSMENT_DATE, min = 1, max = 1, typeName = "date") | ||
IPrimitiveType<Date> assessmentDate, | ||
@Description(shortDefinition = "Patient information.") | ||
@OperationParam(name = PATIENT, min = 1, max = 1) | ||
Patient patient, | ||
@Description(shortDefinition = "Patient immunization history.") | ||
@OperationParam(name = IMMUNIZATION) | ||
List<Immunization> immunization); | ||
// @Operation(name = $_IMMDS_FORECAST) | ||
// @Operation(name = $_IMMDS_FORECAST, | ||
// idempotent = true, | ||
// canonicalUrl = IMM_DSFORECAST_CANONICAL_URL, typeName = "") | ||
// abstract Parameters immdsForecastOperation( | ||
// @Description(shortDefinition = "The date on which to assess the forecast.") | ||
// @OperationParam(name = ASSESSMENT_DATE, min = 1, max = 1, typeName = "date") | ||
// IPrimitiveType<Date> assessmentDate, | ||
// @Description(shortDefinition = "Patient information.") | ||
// @OperationParam(name = PATIENT, min = 1, max = 1) | ||
// Patient patient, | ||
// @Description(shortDefinition = "Patient immunization history.") | ||
// @OperationParam(name = IMMUNIZATION) | ||
// List<Immunization> immunization); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters