-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
75e3e90
commit 1fa82e2
Showing
7 changed files
with
215 additions
and
85 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
28 changes: 28 additions & 0 deletions
28
core/src/main/java/com/lantanagroup/link/db/mappers/PatientDataSizeMapper.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,28 @@ | ||
package com.lantanagroup.link.db.mappers; | ||
|
||
import com.lantanagroup.link.db.model.PatientDataSize; | ||
|
||
import java.sql.ResultSet; | ||
import java.sql.SQLException; | ||
|
||
public class PatientDataSizeMapper extends BaseMapper<PatientDataSize> { | ||
@Override | ||
protected PatientDataSize doToModel(ResultSet resultSet) throws SQLException { | ||
Row row = new Row(resultSet); | ||
var model = new PatientDataSize(); | ||
model.setResourceType(row.getString("resourceType")); | ||
model.setPatientId(row.getString("patientId")); | ||
model.setSizeKb(row.getDouble("sizeKb")); | ||
|
||
return model; | ||
} | ||
|
||
@Override | ||
protected Parameters doToParameters(PatientDataSize model) { | ||
Parameters parameters = new Parameters(); | ||
parameters.addString("reportId", model.getResourceType()); | ||
parameters.addString("patientId", model.getPatientId()); | ||
parameters.addValue("sizeKb", model.getSizeKb()); | ||
return parameters; | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
core/src/main/java/com/lantanagroup/link/db/model/PatientDataSize.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,12 @@ | ||
package com.lantanagroup.link.db.model; | ||
|
||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
@Getter | ||
@Setter | ||
public class PatientDataSize { | ||
private String patientId; | ||
private String resourceType; | ||
private double SizeKb; | ||
} |
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
24 changes: 24 additions & 0 deletions
24
core/src/main/java/com/lantanagroup/link/model/DataSizeSummary.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,24 @@ | ||
package com.lantanagroup.link.model; | ||
|
||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import java.time.LocalDateTime; | ||
import java.util.HashMap; | ||
import java.util.List; | ||
|
||
@Getter | ||
@Setter | ||
public class DataSizeSummary { | ||
private List<Object> Data; | ||
private double TotalSize; | ||
private int Count; | ||
private double AverageSize; | ||
private double MinSize; | ||
private double MaxSize; | ||
private LocalDateTime startDate; | ||
private LocalDateTime endDate; | ||
|
||
private HashMap<String, HashMap<String,Integer>> CountDataType = new HashMap<>(); | ||
private HashMap<String, HashMap<String, Double>> AverageDataSize = new HashMap<>(); | ||
} |
26 changes: 0 additions & 26 deletions
26
core/src/main/java/com/lantanagroup/link/model/PatientMeasureReportSizeSummary.java
This file was deleted.
Oops, something went wrong.