Skip to content

Commit

Permalink
OH2-409 | Add lock field to medical ward (#502)
Browse files Browse the repository at this point in the history
* update(OH2-409): Add lock field to medical ward

* chore: Update api spec file

---------

Co-authored-by: SteveGT96 <[email protected]>
  • Loading branch information
SteveGT96 and SteveGT96 authored Nov 20, 2024
1 parent 2587c77 commit a416b84
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
5 changes: 5 additions & 0 deletions openapi/oh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8286,6 +8286,11 @@ components:
description: The out-quantity
format: float
example: 89
lock:
type: integer
description: Lock
format: int32
example: 0
MedicalWardIdDTO:
required:
- medical
Expand Down
12 changes: 11 additions & 1 deletion src/main/java/org/isf/medicalstockward/dto/MedicalWardDTO.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Open Hospital (www.open-hospital.org)
* Copyright © 2006-2023 Informatici Senza Frontiere ([email protected])
* Copyright © 2006-2024 Informatici Senza Frontiere ([email protected])
*
* Open Hospital is a free and open source software for healthcare data management.
*
Expand Down Expand Up @@ -34,6 +34,9 @@ public class MedicalWardDTO {
@Schema(description = "The out-quantity", example = "89")
private float out_quantity;

@Schema(description = "Lock", example = "0")
private int lock;

public MedicalWardDTO() {
}

Expand Down Expand Up @@ -66,4 +69,11 @@ public void setIn_quantity(float in_quantity) {
public void setOut_quantity(float out_quantity) {
this.out_quantity = out_quantity;
}

public int getLock() {
return lock;
}
public void setLock(int lock) {
this.lock = lock;
}
}

0 comments on commit a416b84

Please sign in to comment.