{"nodes": [{"id": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_patient_security_patientrecordscoperesolver_php", "label": "PatientRecordScopeResolver.php", "file_type": "code", "source_file": "src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L1"}, {"id": "security_patientrecordscoperesolver_patientrecordscoperesolver", "label": "PatientRecordScopeResolver", "file_type": "code", "source_file": "src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L22"}, {"id": "security_patientrecordscoperesolver_patientrecordscoperesolver_construct", "label": ".__construct()", "file_type": "code", "source_file": "src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L26"}, {"id": "security_patientrecordscoperesolver_patientrecordscoperesolver_resolve", "label": ".resolve()", "file_type": "code", "source_file": "src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L34"}, {"id": "user", "label": "User", "file_type": "code", "source_file": "src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L34"}, {"id": "patientrecordscope", "label": "PatientRecordScope", "file_type": "code", "source_file": "src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L34"}, {"id": "security_patientrecordscoperesolver_patientrecordscoperesolver_fordoctoruser", "label": ".forDoctorUser()", "file_type": "code", "source_file": "src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L57"}, {"id": "security_patientrecordscoperesolver_patientrecordscoperesolver_forsecretary", "label": ".forSecretary()", "file_type": "code", "source_file": "src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L87"}], "edges": [{"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_patient_security_patientrecordscoperesolver_php", "target": "user", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L5", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_patient_security_patientrecordscoperesolver_php", "target": "useractivecontextrepository", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L6", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_patient_security_patientrecordscoperesolver_php", "target": "clinicrepository", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L7", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_patient_security_patientrecordscoperesolver_php", "target": "clinicdoctorpermissionchecker", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L8", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_patient_security_patientrecordscoperesolver_php", "target": "doctorrepository", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L9", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_patient_security_patientrecordscoperesolver_php", "target": "doctorsecretaryrepository", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L10", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_patient_security_patientrecordscoperesolver_php", "target": "security_patientrecordscoperesolver_patientrecordscoperesolver", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L22", "weight": 1.0}, {"source": "security_patientrecordscoperesolver_patientrecordscoperesolver", "target": "security_patientrecordscoperesolver_patientrecordscoperesolver_construct", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L26", "weight": 1.0}, {"source": "security_patientrecordscoperesolver_patientrecordscoperesolver", "target": "security_patientrecordscoperesolver_patientrecordscoperesolver_resolve", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L34", "weight": 1.0}, {"source": "security_patientrecordscoperesolver_patientrecordscoperesolver_resolve", "target": "user", "relation": "references", "confidence": "EXTRACTED", "source_file": "src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L34", "weight": 1.0, "context": "parameter_type"}, {"source": "security_patientrecordscoperesolver_patientrecordscoperesolver_resolve", "target": "patientrecordscope", "relation": "references", "confidence": "EXTRACTED", "source_file": "src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L34", "weight": 1.0, "context": "return_type"}, {"source": "security_patientrecordscoperesolver_patientrecordscoperesolver", "target": "security_patientrecordscoperesolver_patientrecordscoperesolver_fordoctoruser", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L57", "weight": 1.0}, {"source": "security_patientrecordscoperesolver_patientrecordscoperesolver_fordoctoruser", "target": "user", "relation": "references", "confidence": "EXTRACTED", "source_file": "src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L57", "weight": 1.0, "context": "parameter_type"}, {"source": "security_patientrecordscoperesolver_patientrecordscoperesolver_fordoctoruser", "target": "patientrecordscope", "relation": "references", "confidence": "EXTRACTED", "source_file": "src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L57", "weight": 1.0, "context": "return_type"}, {"source": "security_patientrecordscoperesolver_patientrecordscoperesolver", "target": "security_patientrecordscoperesolver_patientrecordscoperesolver_forsecretary", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L87", "weight": 1.0}, {"source": "security_patientrecordscoperesolver_patientrecordscoperesolver_forsecretary", "target": "user", "relation": "references", "confidence": "EXTRACTED", "source_file": "src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L87", "weight": 1.0, "context": "parameter_type"}, {"source": "security_patientrecordscoperesolver_patientrecordscoperesolver_forsecretary", "target": "patientrecordscope", "relation": "references", "confidence": "EXTRACTED", "source_file": "src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L87", "weight": 1.0, "context": "return_type"}, {"source": "security_patientrecordscoperesolver_patientrecordscoperesolver_resolve", "target": "security_patientrecordscoperesolver_patientrecordscoperesolver_fordoctoruser", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L37", "weight": 1.0}, {"source": "security_patientrecordscoperesolver_patientrecordscoperesolver_resolve", "target": "patientrecordscope", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L43", "weight": 1.0}, {"source": "security_patientrecordscoperesolver_patientrecordscoperesolver_resolve", "target": "security_patientrecordscoperesolver_patientrecordscoperesolver_forsecretary", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L47", "weight": 1.0}, {"source": "security_patientrecordscoperesolver_patientrecordscoperesolver_fordoctoruser", "target": "patientrecordscope", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L61", "weight": 1.0}, {"source": "security_patientrecordscoperesolver_patientrecordscoperesolver_forsecretary", "target": "patientrecordscope", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L91", "weight": 1.0}], "raw_calls": [{"caller_nid": "security_patientrecordscoperesolver_patientrecordscoperesolver_resolve", "callee": "hasRole", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L36", "receiver": null}, {"caller_nid": "security_patientrecordscoperesolver_patientrecordscoperesolver_resolve", "callee": "hasRole", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L40", "receiver": null}, {"caller_nid": "security_patientrecordscoperesolver_patientrecordscoperesolver_resolve", "callee": "findByUser", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L41", "receiver": null}, {"caller_nid": "security_patientrecordscoperesolver_patientrecordscoperesolver_resolve", "callee": "hasRole", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L46", "receiver": null}, {"caller_nid": "security_patientrecordscoperesolver_patientrecordscoperesolver_fordoctoruser", "callee": "findByUser", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L59", "receiver": null}, {"caller_nid": "security_patientrecordscoperesolver_patientrecordscoperesolver_fordoctoruser", "callee": "findByUser", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L64", "receiver": null}, {"caller_nid": "security_patientrecordscoperesolver_patientrecordscoperesolver_fordoctoruser", "callee": "findByUuid", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L65", "receiver": null}, {"caller_nid": "security_patientrecordscoperesolver_patientrecordscoperesolver_fordoctoruser", "callee": "hasDoctor", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L67", "receiver": null}, {"caller_nid": "security_patientrecordscoperesolver_patientrecordscoperesolver_fordoctoruser", "callee": "getId", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L68", "receiver": null}, {"caller_nid": "security_patientrecordscoperesolver_patientrecordscoperesolver_fordoctoruser", "callee": "getId", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L72", "receiver": null}, {"caller_nid": "security_patientrecordscoperesolver_patientrecordscoperesolver_fordoctoruser", "callee": "getUser", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L72", "receiver": null}, {"caller_nid": "security_patientrecordscoperesolver_patientrecordscoperesolver_fordoctoruser", "callee": "getId", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L72", "receiver": null}, {"caller_nid": "security_patientrecordscoperesolver_patientrecordscoperesolver_fordoctoruser", "callee": "getId", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L73", "receiver": null}, {"caller_nid": "security_patientrecordscoperesolver_patientrecordscoperesolver_fordoctoruser", "callee": "can", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L76", "receiver": null}, {"caller_nid": "security_patientrecordscoperesolver_patientrecordscoperesolver_fordoctoruser", "callee": "getId", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L77", "receiver": null}, {"caller_nid": "security_patientrecordscoperesolver_patientrecordscoperesolver_fordoctoruser", "callee": "getId", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L80", "receiver": null}, {"caller_nid": "security_patientrecordscoperesolver_patientrecordscoperesolver_fordoctoruser", "callee": "getId", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L80", "receiver": null}, {"caller_nid": "security_patientrecordscoperesolver_patientrecordscoperesolver_forsecretary", "callee": "findByUser", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L89", "receiver": null}, {"caller_nid": "security_patientrecordscoperesolver_patientrecordscoperesolver_forsecretary", "callee": "findByUuid", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L94", "receiver": null}, {"caller_nid": "security_patientrecordscoperesolver_patientrecordscoperesolver_forsecretary", "callee": "findActiveBySecretaryForClinic", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L96", "receiver": null}, {"caller_nid": "security_patientrecordscoperesolver_patientrecordscoperesolver_forsecretary", "callee": "array_map", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L100", "receiver": null}, {"caller_nid": "security_patientrecordscoperesolver_patientrecordscoperesolver_forsecretary", "callee": "getId", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L101", "receiver": null}, {"caller_nid": "security_patientrecordscoperesolver_patientrecordscoperesolver_forsecretary", "callee": "findDoctorsBySecretaryInClinic", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L102", "receiver": null}, {"caller_nid": "security_patientrecordscoperesolver_patientrecordscoperesolver_forsecretary", "callee": "getId", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L105", "receiver": null}, {"caller_nid": "security_patientrecordscoperesolver_patientrecordscoperesolver_forsecretary", "callee": "findByUuid", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L108", "receiver": null}, {"caller_nid": "security_patientrecordscoperesolver_patientrecordscoperesolver_forsecretary", "callee": "findActiveBySecretaryForDoctor", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L109", "receiver": null}, {"caller_nid": "security_patientrecordscoperesolver_patientrecordscoperesolver_forsecretary", "callee": "getId", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Security/PatientRecordScopeResolver.php", "source_location": "L110", "receiver": null}]}