Browse Source

added spec

unknown 3 years ago
parent
commit
d250997e83
2 changed files with 249 additions and 0 deletions
  1. 198 0
      spec/9-8-clientrmspec.txt
  2. 51 0
      spec/note-structure-outline.txt

+ 198 - 0
spec/9-8-clientrmspec.txt

@@ -0,0 +1,198 @@
+@Embeddable
+	@Data
+	public class RmSetupValue {
+		Boolean hasRmSetupBeenPerformed = Boolean.FALSE;
+		@ManyToOne(fetch = FetchType.LAZY)
+		CareMonth rmSetupCareMonth;
+	}
+
+	@Embedded
+	@Setter
+	RmSetupValue rmSetupValueValue;
+
+	@Embeddable
+	@Data
+	public class RmEligibilityValue {
+		@Enumerated(EnumType.STRING)
+		YesNoOrUnknown isEligibleForRm = YesNoOrUnknown.UNKNOWN;
+		String whyEligibleForRmCategory;
+		String whyEligibleForRmMemo;
+		String whyNotEligibleForRmCategory;
+		String whyNotEligibleForRmMemo;
+	}
+
+	@Embedded
+	@Setter
+	RmEligibilityValue rmEligibilityValue;
+
+	@Embeddable
+	@Data
+	public class RmCurrentlyEnrolledValue {
+		@Enumerated(EnumType.STRING)
+		YesNoOrUnknown isCurrentlyEnrolledInRm = YesNoOrUnknown.UNKNOWN;
+		String whyNotEnrolledInRmCategory;
+		String whyNotEnrolledInRmMemo;
+	}
+
+	@Embedded
+	@Setter
+	RmCurrentlyEnrolledValue rmCurrentlyEnrolledValue;
+
+	////
+
+	Boolean sendSmsOnBdtMeasurement = false;
+
+	public void setSendSmsOnBdtMeasurementToTrue(AppSession performer) {
+		this.sendSmsOnBdtMeasurement = true;
+	}
+
+	public void setSendSmsOnBdtMeasurementToFalse(AppSession performer) {
+		this.sendSmsOnBdtMeasurement = false;
+	}
+
+	/*
+	 * ... BMI
+	 */
+
+	@Embedded
+	@Setter
+	BmiManagementSettingsValue bmiManagementValue;
+
+	@Embeddable
+	public class MostRecentWeightValue {
+		Double mostRecentWeight;
+		ZonedDateTime mostRecentWeightAt;
+		@OneToOne
+		Measurement mostRecentWeightMeasurement;
+	}
+
+	@Embedded
+	@Setter
+	MostRecentWeightValue mostRecentWeightValue;
+
+	@Embeddable
+	@Data
+	public class DedicatedCellularScaleValue {
+		// @JK maintained in service
+		@OneToOne
+		SupplyOrder dedicatedCellularScaleSupplyOrder;
+		@OneToOne(cascade = CascadeType.ALL, orphanRemoval = false)
+		ClientBDTDevice dedicatedCellularScaleClientBdtDevice;
+		@Enumerated(EnumType.STRING)
+		YesNoOrUnknown hasDedicatedCellularScaleBeenDelivered;
+		ZonedDateTime dedicatedCellularScaleDeliveryReportedAt;
+		String dedicatedCellularScaleDeliveryMemo;
+		@Enumerated(EnumType.STRING)
+		YesNoOrUnknown hasClientConfirmedReceiptOfDedicatedCellularScale;
+		String clientConfirmedReceiptOfDedicatedCellularScaleMemo;
+		@OneToOne
+		Measurement firstDedicatedCellularScaleMeasurement;
+		@OneToOne
+		Measurement mostRecentDedicatedCellularScaleMeasurement;
+	}
+
+	@Embedded
+	DedicatedCellularScaleValue dedicatedCellularScaleValue;
+
+	@OneToOne(cascade = CascadeType.ALL, orphanRemoval = false)
+	Status clientIntentForCellularScaleStatus;
+
+	@OneToOne(cascade = CascadeType.ALL, orphanRemoval = false)
+	Status mcpExpectationForCellularScaleStatus;
+
+	@OneToOne(cascade = CascadeType.ALL, orphanRemoval = false)
+	Status defaultNaExpectationForCellularScaleStatus;
+
+	/*
+	 * ... BP
+	 */
+
+	@Embedded
+	@Setter
+	BpManagementSettingsValue bpManagementValue;
+
+	@Embeddable
+	@Data
+	public class MostRecentBpValue {
+
+		Double mostRecentSbp;
+		Double mostRecentDbp;
+		Double mostRecentPulse;
+		ZonedDateTime mostRecentBpAt;
+		@OneToOne
+		Measurement mostRecentBpMeasurement;
+
+	}
+
+	@Embedded
+	@Setter
+	MostRecentBpValue mostRecentBPValue;
+
+	@Embeddable
+	@Data
+	public class DedicatedCellularBpValue {
+		// @JK maintained in service
+		@OneToOne
+		SupplyOrder dedicatedCellularBpSupplyOrder;
+		@OneToOne
+		ClientBDTDevice dedicatedCellularBpClientBdtDevice;
+		@Enumerated(EnumType.STRING)
+		YesNoOrUnknown hasDedicatedCellularBpBeenDelivered;
+		ZonedDateTime dedicatedCellularBpDeliveryReportedAt;
+		String dedicatedCellularBpDeliveryMemo;
+		@Enumerated(EnumType.STRING)
+		YesNoOrUnknown hasClientConfirmedReceiptOfDedicatedCellularBp;
+		String clientConfirmedReceiptOfDedicatedCellularBpMemo;
+		@OneToOne
+		Measurement firstDedicatedCellularBpMeasurement;
+		@OneToOne
+		Measurement mostRecentDedicatedCellularBpMeasurement;
+	}
+
+	@Embedded
+	DedicatedCellularBpValue dedicatedCellularBpValue;
+
+	@OneToOne(cascade = CascadeType.ALL, orphanRemoval = false)
+	Status clientIntentForCellularBpStatus;
+
+	@OneToOne(cascade = CascadeType.ALL, orphanRemoval = false)
+	Status mcpExpectationForCellularBpStatus;
+
+	@OneToOne(cascade = CascadeType.ALL, orphanRemoval = false)
+	Status defaultNaExpectationForCellularBpStatus;
+
+	@Embeddable
+	@Data
+	public class EquipmentAwaitingSetupValue {
+		@Enumerated(EnumType.STRING)
+		YesNoOrUnknown isEquipmentAwaitingSetup = YesNoOrUnknown.UNKNOWN;
+		String whatEquipmentIsAwaitingSetup;
+	}
+
+	@Embedded
+	@Setter
+	EquipmentAwaitingSetupValue equipmentAwaitingSetupValue;
+
+	@Embeddable
+	@Data
+	public class EquipmentSetupCompletionValue {
+		@Enumerated(EnumType.STRING)
+		YesNoOrUnknown isEquipmentSetupCompleted = YesNoOrUnknown.UNKNOWN;
+		String whatEquipmentSetupIsCompleted;
+	}
+
+	@Embedded
+	@Setter
+	EquipmentSetupCompletionValue equipmentSetupCompletionValue;
+
+	@Embeddable
+	@Data
+	public class EquipmentServiceNeedValue {
+		@Enumerated(EnumType.STRING)
+		YesNoOrUnknown isEquipmentServiceNeeded = YesNoOrUnknown.UNKNOWN;
+		String whatEquipmentServiceIsNeeded;
+	}
+
+	@Embedded
+	@Setter
+	EquipmentServiceNeedValue equipmentServiceNeedValue;

+ 51 - 0
spec/note-structure-outline.txt

@@ -0,0 +1,51 @@
+
+
+
+==========================================
+
+
+	cc:
+	vitals:
+	allergies: 
+	medications: 
+	history_medical: 
+	history_surgical: 
+	history_family: 
+	history_social: 
+	history_screenings: 
+	subjective:
+	ros:
+	active_interventions_review:
+	
+		Lifestyle Assessments:
+
+			General
+			Nutrition
+			Physical Activity
+			Sleep
+			Social Relationships
+			Stress
+			Substance Use
+
+	Objective:
+
+		Physical exam findings:
+		Laboratory data:
+		Imaging results:
+		Measurements:
+		Other diagnostic data:
+		Recognition and review of the documentation of other clinicians:
+
+	Assessments / Current Problems / Focus Areas:
+
+		List:
+
+	PLAN:
+		
+		Free Text:
+		Condition-Specific (Long-Term / Overall):
+		Medication Changes:
+		Interventions:
+		Follow-Up:
+
+-------------------------------------------