forked from IHTSDO/snomed-fhir-cds-service
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BS-224 | Mani, Siva, Vijay, David | Added dosage usage cdss alert mec…
…hanism Co-authored-by: Siva Reddy <[email protected]> Co-authored-by: vijayanandtwks <[email protected]> Co-authored-by: daviemukungi <[email protected]>
- Loading branch information
1 parent
335e007
commit 12e3aa8
Showing
26 changed files
with
1,719 additions
and
108 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
52 changes: 52 additions & 0 deletions
52
src/main/java/org/snomed/cdsservice/model/AggregatedMedicationsBySubstance.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,52 @@ | ||
package org.snomed.cdsservice.model; | ||
|
||
import java.util.HashMap; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
|
||
public class AggregatedMedicationsBySubstance { | ||
String substanceShortName; | ||
List<String> medicationsList; | ||
|
||
Map<String, DosageComparisonByRoute> dosageComparisonByRouteMap = new HashMap<>(); | ||
List<CDSReference> referenceList; | ||
|
||
public AggregatedMedicationsBySubstance(String substanceShortName, List<String> medicationsList, List<CDSReference> referenceList) { | ||
this.substanceShortName = substanceShortName; | ||
this.medicationsList = medicationsList; | ||
this.referenceList = referenceList; | ||
} | ||
|
||
public String getSubstanceShortName() { | ||
return substanceShortName; | ||
} | ||
|
||
public void setSubstanceShortName(String substanceShortName) { | ||
this.substanceShortName = substanceShortName; | ||
} | ||
|
||
public List<String> getMedicationsList() { | ||
return medicationsList; | ||
} | ||
|
||
public void setMedicationsList(List<String> medicationsList) { | ||
this.medicationsList = medicationsList; | ||
} | ||
|
||
public List<CDSReference> getReferenceList() { | ||
return referenceList; | ||
} | ||
|
||
public void setReferenceList(List<CDSReference> referenceList) { | ||
this.referenceList = referenceList; | ||
} | ||
|
||
public Map<String, DosageComparisonByRoute> getDosageComparisonByRouteMap() { | ||
return dosageComparisonByRouteMap; | ||
} | ||
|
||
public void setDosageComparisonByRouteMap(Map<String, DosageComparisonByRoute> dosageComparisonByRouteMap) { | ||
this.dosageComparisonByRouteMap = dosageComparisonByRouteMap; | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
src/main/java/org/snomed/cdsservice/model/DosageComparisonByRoute.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,39 @@ | ||
package org.snomed.cdsservice.model; | ||
|
||
import org.snomed.cdsservice.service.model.SubstanceDefinedDailyDose; | ||
|
||
public class DosageComparisonByRoute { | ||
PrescribedDailyDose totalPrescribedDailyDose; | ||
SubstanceDefinedDailyDose substanceDefinedDailyDose; | ||
String routeOfAdministration; | ||
|
||
public DosageComparisonByRoute(PrescribedDailyDose totalPrescribedDailyDose, SubstanceDefinedDailyDose substanceDefinedDailyDose, String routeOfAdministration) { | ||
this.totalPrescribedDailyDose = totalPrescribedDailyDose; | ||
this.substanceDefinedDailyDose = substanceDefinedDailyDose; | ||
this.routeOfAdministration = routeOfAdministration; | ||
} | ||
|
||
public PrescribedDailyDose getTotalPrescribedDailyDose() { | ||
return totalPrescribedDailyDose; | ||
} | ||
|
||
public void setTotalPrescribedDailyDose(PrescribedDailyDose totalPrescribedDailyDose) { | ||
this.totalPrescribedDailyDose = totalPrescribedDailyDose; | ||
} | ||
|
||
public SubstanceDefinedDailyDose getSubstanceDefinedDailyDose() { | ||
return substanceDefinedDailyDose; | ||
} | ||
|
||
public void setSubstanceDefinedDailyDose(SubstanceDefinedDailyDose substanceDefinedDailyDose) { | ||
this.substanceDefinedDailyDose = substanceDefinedDailyDose; | ||
} | ||
|
||
public String getRouteOfAdministration() { | ||
return routeOfAdministration; | ||
} | ||
|
||
public void setRouteOfAdministration(String routeOfAdministration) { | ||
this.routeOfAdministration = routeOfAdministration; | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
src/main/java/org/snomed/cdsservice/model/PrescribedDailyDose.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,32 @@ | ||
package org.snomed.cdsservice.model; | ||
|
||
public class PrescribedDailyDose { | ||
Double quantity; | ||
String unit; | ||
|
||
public PrescribedDailyDose(Double quantity, String unit) { | ||
this.quantity = quantity; | ||
this.unit = unit; | ||
} | ||
|
||
public Double getQuantity() { | ||
return quantity; | ||
} | ||
|
||
public void setQuantity(Double quantity) { | ||
this.quantity = quantity; | ||
} | ||
|
||
public String getUnit() { | ||
return unit; | ||
} | ||
|
||
public void setUnit(String unit) { | ||
this.unit = unit; | ||
} | ||
|
||
public void addQuantity(Double newQuantity) { | ||
this.quantity += newQuantity; | ||
} | ||
|
||
} |
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
Oops, something went wrong.