Session_ARPD_Meter
Purpose
The Session_ARPD_Meter collection logs measurement sessions performed with the ARPD Meter service. Each document records session details such as analysis results, device and browser information, and references to the related client. This data is used to track, analyze, and improve the accuracy and usage of pupillary distance measurements.
Document schema
{
"ARPDMeterModule": "string",
"PDresult": "number",
"analisi": {
"leftList": ["number"],
"leftResult": "number",
"listRight": ["number"],
"rightResult": "number",
"stack": ["number"]
},
"browser": "string",
"clientRef": "string",
"date": "timestamp",
"hasGlassesOn": "boolean",
"isRecalculate": "boolean",
"os": "string"
}
Indexes
- clientRef is a
stringthat refers to the ID of theClientcollection.
Query examples
// Fetch the Reference Doc from Firebase
const sessionRefDoc = doc(db, "Session_ARPD_Meter", sessionId);
// Get the Document Snapshot from the Reference Doc
const sessionRefSnap = await getDoc(sessionRefDoc);
// Query sessions by clientRef
const sessionsByClientRef = query(
collection(db, "Session_ARPD_Meter"),
where("clientRef", "==", clientId)
);