com.marand.thinkmed.medications.dto.report.PatientDataForTherapyReportDto.java Source code

Java tutorial

Introduction

Here is the source code for com.marand.thinkmed.medications.dto.report.PatientDataForTherapyReportDto.java

Source

/*
 * Copyright (c) 2010-2014 Marand d.o.o. (www.marand.com)
 *
 * This file is part of Think!Med Clinical Medication Management.
 *
 * Think!Med Clinical Medication Management is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Think!Med Clinical Medication Management is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with Think!Med Clinical Medication Management.  If not, see <http://www.gnu.org/licenses/>.
 */

package com.marand.thinkmed.medications.dto.report;

import java.util.List;

import com.marand.maf.core.data.object.DataObject;
import com.marand.maf.core.JsonSerializable;
import com.marand.thinkmed.api.demographics.data.Address;
import com.marand.thinkmed.api.demographics.data.Gender;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * @author Mitja Lapajne
 */
public final class PatientDataForTherapyReportDto extends DataObject implements JsonSerializable {
    private final boolean inpatient;
    private final String prescriptionDateTime;
    private final String patientName;
    private final String birthDateAndAge;
    private final Address address;
    private String addressDisplay;
    private final Gender gender;
    private final String patientIdentificatorType;
    private final String patientIdentificator;
    private final String centralCaseIdNumber;
    private final String organization;
    private final String cureingCareProfessional;
    private final String supervisoryCareProfessional;
    private final String roomAndBed;
    private final String admissionDate;
    private final Integer hospitalizationConsecutiveDay;
    private final Integer operationDaysAfter;
    private final String diseaseTypeCode;
    private final String diseaseTypeName;
    private String weight;
    private List<String> allergies;
    private String departmentCode;

    public PatientDataForTherapyReportDto(final boolean inpatient, final String prescriptionDateTime,
            final String patientName, final String birthDateAndAge, final Gender gender,
            final String patientIdentificatorType, final String patientIdentificator,
            final String centralCaseIdNumber, final String organization, final String roomAndBed,
            final String admissionDate, final Integer hospitalizationConsecutiveDay, final String diseaseTypeCode,
            final String diseaseTypeName, final String weight, final Address address,
            final String cureingCareProfessional, final String supervisoryCareProfessional,
            final Integer operationDaysAfter, final List<String> allergies, final String departmentCode) {
        this.inpatient = inpatient;
        this.prescriptionDateTime = prescriptionDateTime;
        this.patientName = patientName;
        this.birthDateAndAge = birthDateAndAge;
        this.gender = gender;
        this.patientIdentificatorType = patientIdentificatorType;
        this.patientIdentificator = patientIdentificator;
        this.centralCaseIdNumber = centralCaseIdNumber;
        this.organization = organization;
        this.roomAndBed = roomAndBed;
        this.admissionDate = admissionDate;
        this.hospitalizationConsecutiveDay = hospitalizationConsecutiveDay;
        this.diseaseTypeCode = diseaseTypeCode;
        this.diseaseTypeName = diseaseTypeName;
        this.weight = weight;
        this.address = address;
        this.cureingCareProfessional = cureingCareProfessional;
        this.supervisoryCareProfessional = supervisoryCareProfessional;
        this.operationDaysAfter = operationDaysAfter;
        this.allergies = allergies;
        this.departmentCode = departmentCode;
    }

    public boolean isInpatient() {
        return inpatient;
    }

    public String getPrescriptionDateTime() {
        return prescriptionDateTime;
    }

    public String getPatientName() {
        return patientName;
    }

    public String getBirthDateAndAge() {
        return birthDateAndAge;
    }

    public Address getAddress() {
        return address;
    }

    public String getAddressDisplay() {
        return addressDisplay;
    }

    public void setAddressDisplay(final String addressDisplay) {
        this.addressDisplay = addressDisplay;
    }

    public Gender getGender() {
        return gender;
    }

    public String getPatientIdentificatorType() {
        return patientIdentificatorType;
    }

    public String getPatientIdentificator() {
        return patientIdentificator;
    }

    public String getCentralCaseIdNumber() {
        return centralCaseIdNumber;
    }

    public String getOrganization() {
        return organization;
    }

    public String getCureingCareProfessional() {
        return cureingCareProfessional;
    }

    public String getSupervisoryCareProfessional() {
        return supervisoryCareProfessional;
    }

    public String getRoomAndBed() {
        return roomAndBed;
    }

    public String getAdmissionDate() {
        return admissionDate;
    }

    public Integer getHospitalizationConsecutiveDay() {
        return hospitalizationConsecutiveDay;
    }

    public Integer getOperationDaysAfter() {
        return operationDaysAfter;
    }

    public String getDiseaseTypeCode() {
        return diseaseTypeCode;
    }

    public String getDiseaseTypeName() {
        return diseaseTypeName;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(final String weight) {
        this.weight = weight;
    }

    public List<String> getAllergies() {
        return allergies;
    }

    public void setAllergies(final List<String> allergies) {
        this.allergies = allergies;
    }

    public String getDepartmentCode() {
        return departmentCode;
    }

    public void setDepartmentCode(final String departmentCode) {
        this.departmentCode = departmentCode;
    }

    @Override
    protected void appendToString(final ToStringBuilder tsb) {
        tsb.append("patientName", patientName).append("birthDate", birthDateAndAge).append("address", address)
                .append("addressDisplay", addressDisplay).append("gender", gender)
                .append("patientIdNumber", patientIdentificator).append("centralCaseIdNumber", centralCaseIdNumber)
                .append("organization", organization).append("cureingCareProfessional", cureingCareProfessional)
                .append("supervisoryCareProfessional", supervisoryCareProfessional).append("roomAndBed", roomAndBed)
                .append("hospitalizationConsecutiveDay", hospitalizationConsecutiveDay)
                .append("operationDayAfter", operationDaysAfter).append("diseaseTypeCode", diseaseTypeCode)
                .append("diseaseTypeName", diseaseTypeName).append("allergies", allergies)
                .append("departmentCode", departmentCode);
    }
}