@peopl-health/nexus 5.56.0-dev.8569 → 5.56.0-dev.8570
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -96,7 +96,11 @@ async function findIntakePatientRecordId(code) {
|
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
async function writeUnresolvedRequest({ code, trace, question, details, resolutionAttempted = false, forDoctorOffice = false, category = null, urgency = null, replacesClosedTask = false }) {
|
|
99
|
-
|
|
99
|
+
// Everything that changes where the request goes or how fast, so an upgrade is never suppressed
|
|
100
|
+
// as a repeat. Free text is left out on purpose: a reworded retry of the same ask is a repeat.
|
|
101
|
+
const fingerprint = createHash('sha1')
|
|
102
|
+
.update([code, category || '', question || '', urgency || '', forDoctorOffice ? 'doctor_office' : ''].join('\n'))
|
|
103
|
+
.digest('hex');
|
|
100
104
|
let recordId = null;
|
|
101
105
|
const duplicate = !replacesClosedTask && await recentUnresolvedCache.get(code) === fingerprint;
|
|
102
106
|
const written = await auditedWrite({
|