release 1.1
This commit is contained in:
+3
-8
@@ -37,7 +37,7 @@
|
||||
patientPhone = window.gon.specific.client.phone;
|
||||
const patientPhoneNormalized = `+7${patientPhone.replace(/[^\d]/g, '').slice(1, 12)}`;
|
||||
|
||||
metaData.patients = [{
|
||||
metaData.patient = {
|
||||
idPatientMis: window.gon.specific.client.id,
|
||||
familyName: window.gon.specific.client.surname,
|
||||
givenName: window.gon.specific.client.name,
|
||||
@@ -55,10 +55,10 @@
|
||||
documentName: 'СНИЛС',
|
||||
idDocumentType: 223
|
||||
}]
|
||||
}]
|
||||
}
|
||||
|
||||
if (window.gon.specific.client.email) {
|
||||
metaData.patients[0].telecom.push({
|
||||
metaData.patient.telecom.push({
|
||||
system: 'Email',
|
||||
value: window.gon.specific.client.email
|
||||
});
|
||||
@@ -73,11 +73,6 @@
|
||||
data: doc.data
|
||||
}));
|
||||
|
||||
metaData.userData = {
|
||||
id: window.gon.application.current_user.id,
|
||||
login: window.gon.application.current_user.username,
|
||||
};
|
||||
|
||||
// Отправляем только один раз
|
||||
window.postMessage(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user