-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed Request Mapping to use jhson configuration file
- Loading branch information
Showing
4 changed files
with
125 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package org.hl7.davinci.rules; | ||
|
||
import org.hl7.fhir.r4.model.Coding; | ||
import org.hl7.fhir.r4.model.Identifier; | ||
import org.hl7.fhir.r4.model.StringType; | ||
|
||
// TODO, The TraceNumber should be an Identifier type, but this results in a conflict | ||
// Exception on ItemRequiresFollowup :Conflicting setter definitions for property "referenceElement": org.hl7.fhir.r4.model.Reference#setReferenceElement(org.hl7.fhir.instance.model.api.IIdType) vs org.hl7.fhir.r4.model.Reference#setReferenceElement(org.hl7.fhir.r4.model.StringType) | ||
// To fix this, Identifier probably would need to be extended and override the setter method and annotate it with @JsonIgnore or @com.fasterxml.jackson.annotation.JsonSetter | ||
// See https://stackoverflow.com/questions/37452689/how-to-overcome-conflicting-setter-definitions-for-property | ||
|
||
public class RequestMapping { | ||
private Coding productOrService; | ||
private Coding contentModifier; | ||
private Coding traceNumber; | ||
private StringType questionnaireURL; | ||
|
||
public Coding getProductOrService() { return productOrService; } | ||
public void setProductOrService(Coding value) { this.productOrService = value; } | ||
|
||
public Coding getContentModifier() { return contentModifier; } | ||
public void setContentModifier(Coding value) { this.contentModifier = value; } | ||
|
||
public Coding getTraceNumber() { return traceNumber; } | ||
public void setTraceNumber(Coding value) { this.traceNumber = value; } | ||
|
||
public StringType getQuestionnaireURL() { return questionnaireURL; } | ||
public void setQuestionnaireURL(StringType value) { this.questionnaireURL = value; } | ||
} |
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