@@ -64,8 +64,8 @@ async function getQuestionnaires() {
6464
6565const patients = { } ;
6666
67- async function getPatientsList ( questionnaryId , limit = 100 ) {
68- const qStreams = questionnaryStreams ( questionnaryId ) ;
67+ async function getPatientsList ( questionaryId , limit = 100 ) {
68+ const qStreams = questionnaryStreams ( questionaryId ) ;
6969 const res = await drConnection . api ( [
7070 {
7171 method : "events.get" ,
@@ -104,7 +104,7 @@ async function getPatientsList(questionnaryId, limit = 100) {
104104
105105 // -- get the patients
106106 const patientPromises = Object . values ( uniques ) . map ( ( patientEvent ) =>
107- getPatientDetails ( questionnaryId , patientEvent )
107+ getPatientDetails ( questionaryId , patientEvent )
108108 ) ;
109109 const patientsResults = await Promise . all ( patientPromises ) ;
110110
@@ -123,9 +123,9 @@ async function getPatientsList(questionnaryId, limit = 100) {
123123/**
124124 * get patients details
125125 */
126- async function getPatientDetails ( questionnaryId , patientEvent ) {
126+ async function getPatientDetails ( questionaryId , patientEvent ) {
127127 // -- check if the event is a patient event
128- const qStreams = questionnaryStreams ( questionnaryId ) ;
128+ const qStreams = questionnaryStreams ( questionaryId ) ;
129129 if ( patientEvent . type !== "credentials/pryv-api-endpoint" ) return null ;
130130 const patient = {
131131 status : "active" ,
@@ -170,7 +170,7 @@ async function getPatientDetails(questionnaryId, patientEvent) {
170170
171171 // -- get data
172172 // get profile form data
173- const formProfile = dataDefs . questionnaires [ questionnaryId ] . forms . profile ;
173+ const formProfile = dataDefs . questionnaires [ questionaryId ] . forms . profile ;
174174
175175 // get the last value of each field
176176 const apiCalls = formProfile . content . map ( ( field ) => ( {
0 commit comments