forked from Raxa/raxacore
-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Phani | Abinaya] | A-1204949175348855 : Save Patient Allergies as pa…
…rt of Bahmni Encounter Transaction (#232) * [Phani | Abinaya] Add Allergies to Bahmni Encounter API * [Phani] Add test * [Phani] Update imports
- Loading branch information
1 parent
29b508e
commit 71a445a
Showing
9 changed files
with
214 additions
and
0 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
34 changes: 34 additions & 0 deletions
34
...r-api/src/main/java/org/openmrs/module/bahmniemrapi/allergy/contract/AllergenRequest.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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package org.openmrs.module.bahmniemrapi.allergy.contract; | ||
|
||
import org.codehaus.jackson.annotate.JsonIgnoreProperties; | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class AllergenRequest { | ||
private String allergenKind; | ||
private String codedAllergen; | ||
private String nonCodedAllergen; | ||
|
||
public String getAllergenKind() { | ||
return allergenKind; | ||
} | ||
|
||
public void setAllergenKind(String allergenKind) { | ||
this.allergenKind = allergenKind; | ||
} | ||
|
||
public String getCodedAllergen() { | ||
return codedAllergen; | ||
} | ||
|
||
public void setCodedAllergen(String codedAllergen) { | ||
this.codedAllergen = codedAllergen; | ||
} | ||
|
||
public String getNonCodedAllergen() { | ||
return nonCodedAllergen; | ||
} | ||
|
||
public void setNonCodedAllergen(String nonCodedAllergen) { | ||
this.nonCodedAllergen = nonCodedAllergen; | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
.../src/main/java/org/openmrs/module/bahmniemrapi/allergy/contract/BahmniAllergyRequest.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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package org.openmrs.module.bahmniemrapi.allergy.contract; | ||
|
||
import org.codehaus.jackson.annotate.JsonIgnoreProperties; | ||
|
||
import java.util.List; | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class BahmniAllergyRequest { | ||
private AllergenRequest allergen; | ||
private List<ReactionRequest> reactions; | ||
private String severity; | ||
private String comment; | ||
|
||
public AllergenRequest getAllergen() { | ||
return allergen; | ||
} | ||
|
||
public void setAllergen(AllergenRequest allergen) { | ||
this.allergen = allergen; | ||
} | ||
|
||
public List<ReactionRequest> getReactions() { | ||
return reactions; | ||
} | ||
|
||
public void setReactions(List<ReactionRequest> reactions) { | ||
this.reactions = reactions; | ||
} | ||
|
||
public String getSeverity() { | ||
return severity; | ||
} | ||
|
||
public void setSeverity(String severity) { | ||
this.severity = severity; | ||
} | ||
|
||
public String getComment() { | ||
return comment; | ||
} | ||
|
||
public void setComment(String comment) { | ||
this.comment = comment; | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...r-api/src/main/java/org/openmrs/module/bahmniemrapi/allergy/contract/ReactionRequest.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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package org.openmrs.module.bahmniemrapi.allergy.contract; | ||
|
||
import org.codehaus.jackson.annotate.JsonIgnoreProperties; | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class ReactionRequest { | ||
private String reaction; | ||
private String nonCodedReaction; | ||
|
||
public String getReaction() { | ||
return reaction; | ||
} | ||
|
||
public void setReaction(String reaction) { | ||
this.reaction = reaction; | ||
} | ||
|
||
public String getNonCodedReaction() { | ||
return nonCodedReaction; | ||
} | ||
|
||
public void setNonCodedReaction(String nonCodedReaction) { | ||
this.nonCodedReaction = nonCodedReaction; | ||
} | ||
} |
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
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,9 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<dataset> | ||
<concept concept_id="205" retired="0" datatype_id="5" creator="1" | ||
date_created="2023-09-28 9:30:35" uuid="a0a690fd-75a4-447t-bmc6-4e1c15f4ed6b"/> | ||
<concept concept_id="206" retired="0" datatype_id="5" creator="1" | ||
date_created="2023-09-28 9:32:47" uuid="a0a690fd-75a4-447t-bmc6-4e1c15f4ed6c"/> | ||
<concept concept_id="207" retired="0" datatype_id="5" creator="1" | ||
date_created="2023-09-28 9:35:57" uuid="a0a690fd-75a4-447t-bmc6-4e1c15f4ed6d"/> | ||
</dataset> |