{"nodes": [{"id": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_patient_service_patientservice_php", "label": "PatientService.php", "file_type": "code", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L1"}, {"id": "service_patientservice_patientservice", "label": "PatientService", "file_type": "code", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L22"}, {"id": "service_patientservice_patientservice_construct", "label": ".__construct()", "file_type": "code", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L24"}, {"id": "service_patientservice_patientservice_calculatefinalprice", "label": ".calculateFinalPrice()", "file_type": "code", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L45"}, {"id": "service_patientservice_patientservice_autocreateonappointmentconfirm", "label": ".autoCreateOnAppointmentConfirm()", "file_type": "code", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L77"}, {"id": "appointment", "label": "Appointment", "file_type": "code", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L77"}, {"id": "service_patientservice_patientservice_autocreateforentity", "label": ".autoCreateForEntity()", "file_type": "code", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L102"}, {"id": "service_patientservice_patientservice_createsession", "label": ".createSession()", "file_type": "code", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L120"}, {"id": "patientrecord", "label": "PatientRecord", "file_type": "code", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L120"}, {"id": "patientsession", "label": "PatientSession", "file_type": "code", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L120"}], "edges": [{"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_patient_service_patientservice_php", "target": "appointment", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L5", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_patient_service_patientservice_php", "target": "userrepository", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L6", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_patient_service_patientservice_php", "target": "billingcalculator", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L7", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_patient_service_patientservice_php", "target": "money", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L8", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_patient_service_patientservice_php", "target": "serviceitemrepository", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L9", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_patient_service_patientservice_php", "target": "clinicrepository", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L10", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_patient_service_patientservice_php", "target": "tenantinsuranceservice", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L11", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_patient_service_patientservice_php", "target": "doctoraddressrepository", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L12", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_patient_service_patientservice_php", "target": "patientrecord", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L13", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_patient_service_patientservice_php", "target": "patientsession", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L14", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_patient_service_patientservice_php", "target": "sessionservice", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L15", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_patient_service_patientservice_php", "target": "patientrecordrepository", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L16", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_patient_service_patientservice_php", "target": "patientsessionrepository", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L17", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_patient_service_patientservice_php", "target": "sessionservicerepository", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L18", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_patient_service_patientservice_php", "target": "clinicstaffrepository", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L19", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_patient_service_patientservice_php", "target": "subscriptionservice", "relation": "imports", "context": "import", "confidence": "EXTRACTED", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L20", "weight": 1.0}, {"source": "users_hamed_pj_my_pj_clinic_pro_clinicpro_src_patient_service_patientservice_php", "target": "service_patientservice_patientservice", "relation": "contains", "confidence": "EXTRACTED", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L22", "weight": 1.0}, {"source": "service_patientservice_patientservice", "target": "service_patientservice_patientservice_construct", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L24", "weight": 1.0}, {"source": "service_patientservice_patientservice", "target": "service_patientservice_patientservice_calculatefinalprice", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L45", "weight": 1.0}, {"source": "service_patientservice_patientservice", "target": "service_patientservice_patientservice_autocreateonappointmentconfirm", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L77", "weight": 1.0}, {"source": "service_patientservice_patientservice_autocreateonappointmentconfirm", "target": "appointment", "relation": "references", "confidence": "EXTRACTED", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L77", "weight": 1.0, "context": "parameter_type"}, {"source": "service_patientservice_patientservice", "target": "service_patientservice_patientservice_autocreateforentity", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L102", "weight": 1.0}, {"source": "service_patientservice_patientservice_autocreateforentity", "target": "appointment", "relation": "references", "confidence": "EXTRACTED", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L102", "weight": 1.0, "context": "parameter_type"}, {"source": "service_patientservice_patientservice", "target": "service_patientservice_patientservice_createsession", "relation": "method", "confidence": "EXTRACTED", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L120", "weight": 1.0}, {"source": "service_patientservice_patientservice_createsession", "target": "patientrecord", "relation": "references", "confidence": "EXTRACTED", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L120", "weight": 1.0, "context": "parameter_type"}, {"source": "service_patientservice_patientservice_createsession", "target": "patientsession", "relation": "references", "confidence": "EXTRACTED", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L120", "weight": 1.0, "context": "return_type"}, {"source": "service_patientservice_patientservice_autocreateonappointmentconfirm", "target": "service_patientservice_patientservice_autocreateforentity", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L82", "weight": 1.0}, {"source": "service_patientservice_patientservice_createsession", "target": "service_patientservice_patientservice_calculatefinalprice", "relation": "calls", "context": "call", "confidence": "EXTRACTED", "source_file": "src/Patient/Service/PatientService.php", "source_location": "L150", "weight": 1.0}], "raw_calls": [{"caller_nid": "service_patientservice_patientservice_calculatefinalprice", "callee": "coverageRuleForService", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L64", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_calculatefinalprice", "callee": "coverageRuleForService", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L65", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_calculatefinalprice", "callee": "calculateItem", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L66", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_autocreateonappointmentconfirm", "callee": "getDoctor", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L79", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_autocreateonappointmentconfirm", "callee": "getId", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L82", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_autocreateonappointmentconfirm", "callee": "getId", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L82", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_autocreateonappointmentconfirm", "callee": "getAddressId", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L86", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_autocreateonappointmentconfirm", "callee": "find", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L88", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_autocreateonappointmentconfirm", "callee": "findByDoctor", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L91", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_autocreateonappointmentconfirm", "callee": "count", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L92", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_autocreateonappointmentconfirm", "callee": "getId", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L93", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_autocreateforentity", "callee": "hasFeature", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L104", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_autocreateforentity", "callee": "getUser", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L108", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_autocreateforentity", "callee": "findByEntityAndUser", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L110", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_autocreateforentity", "callee": "save", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L113", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_autocreateforentity", "callee": "save", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L117", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_createsession", "callee": "empty", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L128", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_createsession", "callee": "setInsuranceBaseId", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L132", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_createsession", "callee": "isset", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L132", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_createsession", "callee": "setInsuranceSupplementaryId", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L133", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_createsession", "callee": "isset", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L133", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_createsession", "callee": "setVisitPriceRials", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L134", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_createsession", "callee": "setBaseInsuranceDiscountPercent", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L135", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_createsession", "callee": "setSupplementaryDiscountPercent", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L136", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_createsession", "callee": "setPaymentMethod", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L137", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_createsession", "callee": "setNotes", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L138", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_createsession", "callee": "findByUuid", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L143", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_createsession", "callee": "getId", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L146", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_createsession", "callee": "getPriceRials", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L146", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_createsession", "callee": "getVisitPriceRials", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L151", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_createsession", "callee": "getBaseInsuranceDiscountPercent", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L152", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_createsession", "callee": "getSupplementaryDiscountPercent", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L153", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_createsession", "callee": "getInsuranceBaseId", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L157", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_createsession", "callee": "getInsuranceSupplementaryId", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L158", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_createsession", "callee": "setServicesTotalRials", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L161", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_createsession", "callee": "setFinalPriceRials", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L162", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_createsession", "callee": "save", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L164", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_createsession", "callee": "findByUuid", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L168", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_createsession", "callee": "empty", "is_member_call": false, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L172", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_createsession", "callee": "findByUuid", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L172", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_createsession", "callee": "save", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L175", "receiver": null}, {"caller_nid": "service_patientservice_patientservice_createsession", "callee": "addService", "is_member_call": true, "source_file": "/Users/hamed/pj/my_pj/clinic_pro/clinicpro/src/Patient/Service/PatientService.php", "source_location": "L176", "receiver": null}]}