Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

[WIP] Include Controllers in pending in OHApiAbstractController's hierarchy #2

Open
wants to merge 44 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
66ef33b
Opd initial commit
Feb 6, 2020
64feacc
Opd: list of the patient's opds
Feb 7, 2020
5cea9bf
Fix + disease controller
Feb 9, 2020
6560587
Aggiornamento servizi rest "diseases"
Feb 12, 2020
97e831e
Merge branch 'develop' into OP-118_Modules_from_O_to_P
npasquetto Mar 18, 2020
c865749
Update rest "diseases" services
Feb 12, 2020
17cfc9e
Merge branch 'develop' into OP-118_Modules_from_O_to_P
npasquetto Mar 18, 2020
0479371
Merge branch 'develop' of github.com:intesys/openhospital-api into de…
npasquetto Mar 18, 2020
0755668
convert model mapper to @Component
npasquetto Mar 18, 2020
de8dfdb
Extracted abstract api controller
npasquetto Mar 18, 2020
8de993e
Extracted abstract api controller
npasquetto Mar 18, 2020
a2685fe
extracted controller superclass
npasquetto Mar 22, 2020
86555cd
Refactoring newOpd and getOpds, adding searchOpds (to check dateFrom …
Mar 22, 2020
ebe9e88
Fix searchOpds defaultValue
Mar 26, 2020
7455b9d
Operation controller and OperationDTO
Mar 26, 2020
026555e
Fix unused import
Mar 26, 2020
bab48f7
added modules: operation, opetype, patvac
npasquetto Mar 27, 2020
21efea6
merged
npasquetto Mar 27, 2020
de0fe31
refactoring
npasquetto Mar 27, 2020
a03fb09
Operation annotations
Mar 27, 2020
129604d
added comment to a not yet implemented dto
npasquetto Mar 28, 2020
171cdc1
OP-118 pregnant treatment type module
npasquetto Mar 28, 2020
ea4ef0e
OP-118 pricelist module
npasquetto Mar 28, 2020
a68a3cc
OP-118 priceothers module
npasquetto Mar 28, 2020
be995b2
Fix admission type
Mar 28, 2020
ac15111
Fix "diseases" mapping path
Mar 28, 2020
22b8bc2
Fix "operations" controller
Mar 28, 2020
8eb29f9
Fix "opetypes" mapping path
Mar 28, 2020
c170513
Patient vaccine DTO, log
Mar 28, 2020
df0252d
Pregnant treatment type controller log
Mar 28, 2020
f30c8f7
Price list DTO, logger on controller
Mar 28, 2020
ae03c46
Price others DTO, controller logger
Mar 28, 2020
bdcf429
OP-118 set response entity as a result value
npasquetto Mar 29, 2020
f0e1cef
OP-118 PricesOthersController: set response entity as a result value
npasquetto Mar 29, 2020
afe97db
Merge branch 'develop' of github.com:intesys/openhospital-api into de…
npasquetto Mar 29, 2020
0558463
OP-118 PriceListController: set response entity as a result value
npasquetto Mar 29, 2020
dc3555c
OP-118 OperationController: set response entity as a result value
Mar 29, 2020
4bd243c
OP-118 Operation, OperationType, PatientVaccine, PregTreatType, Price…
Mar 29, 2020
0fcbde8
Merge branch 'OP-6-implement-the-new-rest-api' of github.com:informat…
npasquetto Apr 4, 2020
0715ac3
Fix Test Suite Proposal based on Abstract Controller
emecas Apr 5, 2020
b00b218
Add OHApiAbstractControllerTest
emecas Apr 8, 2020
0d7af32
Merge pull request #1 from emecas/intesys-develop
npasquetto Apr 11, 2020
9cc0903
Merge branch 'OP-6-implement-the-new-rest-api' of github.com:informat…
npasquetto Apr 11, 2020
54093f7
Include WardController in OHApiAbstractController's hierarchy
emecas Apr 13, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,26 +29,25 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
<!-- exclusion>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion-->
</exclusion>
</exclusions>
</dependency>
<!-- dependency>
<!-- <dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.25</version>
</dependency>
</dependency> -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.25</version>
</dependency>
<dependency>
<!-- <dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-log4j2</artifactId>
</dependency-->
</dependency> -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jetty</artifactId>
Expand Down Expand Up @@ -81,7 +80,11 @@
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.0-api</artifactId>
</exclusion>
</exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.modelmapper</groupId>
Expand Down
170 changes: 170 additions & 0 deletions src/main/java/org/isf/accounting/dto/BillDTO.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
package org.isf.accounting.dto;

import java.util.Date;

import javax.validation.constraints.NotNull;

import org.isf.patient.dto.PatientDTO;
import org.isf.priceslist.dto.PriceListDTO;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(description = "Class representing a bill")
public class BillDTO {

private Integer id;

private PatientDTO patient;

private Integer listId;

@NotNull
@ApiModelProperty(notes = "Date of bill creation", example="2020-03-19T14:58:00.000Z", position = 1)
private Date date;

@NotNull
@ApiModelProperty(notes = "Date of bill updated", example="2020-03-19T14:58:00.000Z", position = 2)
private Date update;

@NotNull
@ApiModelProperty(notes = "boolean wich tells if a price list is applied", example="true", position = 3)
private boolean isList;

@NotNull
@ApiModelProperty(notes = "Price list name", example="Basic", position = 4)
private String listName;

@NotNull
@ApiModelProperty(notes = "Is bill belongs to a patient?", example="true", position = 5)
private boolean isPatient;

@NotNull
@ApiModelProperty(notes = "patient name", example="Mario Rossi", position = 6)
private String patName;

@NotNull
@ApiModelProperty(notes = "Bill status", example="O", position = 7)
private String status;

@NotNull
@ApiModelProperty(notes = "Bill Amount", example="1000", position = 8)
private Double amount;

@NotNull
@ApiModelProperty(notes = "Bill balance", example="1500", position = 9)
private Double balance;

@NotNull
@ApiModelProperty(notes = "user name who create the bill", example="admin", position = 10)
private String user;

public int getId() {
return id;
}

public void setId(int id) {
this.id = id;
}

public Date getDate() {
return date;
}

public void setDate(Date date) {
this.date = date;
}

public Date getUpdate() {
return update;
}

public void setUpdate(Date update) {
this.update = update;
}

public boolean isList() {
return isList;
}

public void setList(boolean isList) {
this.isList = isList;
}

public String getListName() {
return listName;
}

public void setListName(String listName) {
this.listName = listName;
}

public boolean isPatient() {
return isPatient;
}

public void setPatient(boolean isPatient) {
this.isPatient = isPatient;
}

public String getPatName() {
return patName;
}

public void setPatName(String patName) {
this.patName = patName;
}

public String getStatus() {
return status;
}

public void setStatus(String status) {
this.status = status;
}

public Double getAmount() {
return amount;
}

public void setAmount(Double amount) {
this.amount = amount;
}

public Double getBalance() {
return balance;
}

public void setBalance(Double balance) {
this.balance = balance;
}

public String getUser() {
return user;
}

public void setUser(String user) {
this.user = user;
}

public void setId(Integer id) {
this.id = id;
}

public Integer getListId() {
return listId;
}

public void setListId(Integer listId) {
this.listId = listId;
}

public PatientDTO getPatient() {
return patient;
}

public void setPatient(PatientDTO patient) {
this.patient = patient;
}

}
134 changes: 134 additions & 0 deletions src/main/java/org/isf/accounting/dto/BillItemsDTO.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
package org.isf.accounting.dto;

import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(description = "Class representing a billItem")
public class BillItemsDTO {

private Integer id;

@ApiModelProperty(notes = "Bill id", example="", position = 1)
private Integer billId;

public String getPriceId() {
return priceId;
}

public void setPriceId(String priceId) {
this.priceId = priceId;
}

public void setId(Integer id) {
this.id = id;
}

public void setBillId(Integer billId) {
this.billId = billId;
}

@ApiModelProperty(notes = "check if it is a price", example="true", position = 2)
private boolean isPrice;

@NotNull
@ApiModelProperty(notes = "The price Id", example="104", position = 3)
private String priceId;

@NotNull
@ApiModelProperty(notes = "item description", example="Acetone 99 % 1ltr", position = 4)
private String itemDescription;

@NotNull
@ApiModelProperty(notes = "item amount", example="1000", position = 5)
private double itemAmount;

@NotNull
@ApiModelProperty(notes = "item quantity", example="1", position = 6)
private int itemQuantity;

@NotNull
@ApiModelProperty(notes = "item display code", example="Acetone", position = 7)
private String itemDisplayCode;

@NotNull
@ApiModelProperty(notes = "item id", example="3", position = 8)
private String itemId;

private volatile int hashCode = 0;

public int getId() {
return id;
}

public void setId(int id) {
this.id = id;
}


public boolean isPrice() {
return isPrice;
}

public void setPrice(boolean isPrice) {
this.isPrice = isPrice;
}

public String getItemDescription() {
return itemDescription;
}

public void setItemDescription(String itemDescription) {
this.itemDescription = itemDescription;
}

public double getItemAmount() {
return itemAmount;
}

public void setItemAmount(double itemAmount) {
this.itemAmount = itemAmount;
}

public int getItemQuantity() {
return itemQuantity;
}

public void setItemQuantity(int itemQuantity) {
this.itemQuantity = itemQuantity;
}

public int getHashCode() {
return hashCode;
}

public void setHashCode(int hashCode) {
this.hashCode = hashCode;
}

public String getItemDisplayCode() {
return itemDisplayCode;
}

public void setItemDisplayCode(String itemDisplayCode) {
this.itemDisplayCode = itemDisplayCode;
}

public String getItemId() {
return itemId;
}

public void setItemId(String itemId) {
this.itemId = itemId;
}

public int getBillId() {
return billId;
}

public void setBillId(int billId) {
this.billId = billId;
}

}
Loading