From a416b84a9bb47649a5b402faeefa6ed2ce04a44e Mon Sep 17 00:00:00 2001 From: Steve Tsala <45661418+SteveGT96@users.noreply.github.com> Date: Wed, 20 Nov 2024 16:08:29 +0100 Subject: [PATCH] OH2-409 | Add lock field to medical ward (#502) * update(OH2-409): Add lock field to medical ward * chore: Update api spec file --------- Co-authored-by: SteveGT96 --- openapi/oh.yaml | 5 +++++ .../org/isf/medicalstockward/dto/MedicalWardDTO.java | 12 +++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/openapi/oh.yaml b/openapi/oh.yaml index d2dea04b7..1702a5e8a 100644 --- a/openapi/oh.yaml +++ b/openapi/oh.yaml @@ -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 diff --git a/src/main/java/org/isf/medicalstockward/dto/MedicalWardDTO.java b/src/main/java/org/isf/medicalstockward/dto/MedicalWardDTO.java index 88674b339..defe9b510 100644 --- a/src/main/java/org/isf/medicalstockward/dto/MedicalWardDTO.java +++ b/src/main/java/org/isf/medicalstockward/dto/MedicalWardDTO.java @@ -1,6 +1,6 @@ /* * Open Hospital (www.open-hospital.org) - * Copyright © 2006-2023 Informatici Senza Frontiere (info@informaticisenzafrontiere.org) + * Copyright © 2006-2024 Informatici Senza Frontiere (info@informaticisenzafrontiere.org) * * Open Hospital is a free and open source software for healthcare data management. * @@ -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() { } @@ -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; + } }