Linux 软件免费装
Banner图

Farmaci IGEA

开发者 apiganti
更新时间 2026年7月22日 01:26
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

medical healthcare prescriptions farmaci repeat prescription

下载

1.0.0

详情介绍:

Farmaci IGEA adds a private area to your WordPress site where registered patients of a facility using the IGEA CRM by S0ft.it can request the repetition of drugs they were already prescribed. Patients identify themselves with their Italian fiscal code (validated with check digit and "omocodia" support) and confirm their identity with a one-time password sent via SMS. They then see their prescription history (deduplicated by AIC code, configurable depth), choose a quantity for each drug, add optional notes for the doctor and submit the request. Every request goes into review: it is stored on the CRM with status "in_revisione" and must be approved or rejected by the doctor from the CRM backend. The plugin never generates prescriptions by itself. The patient's phone number on file (the one verified via OTP) is stored with each request for audit purposes. Main features Security The API key never leaves the server: the patient's browser only talks to WordPress, which forwards requests to the CRM. Nonce on every call, field whitelisting, session tokens issued only after OTP verification, every requested drug re-validated server-side against the patient's own prescription history, rate limiting per IP and per patient. Requirements This plugin is a connector: it requires an installation of the IGEA CRM by S0ft.it, reachable over HTTPS, with the farmaci_api.php endpoint, the SQL script (farmaci.sql) executed, and an SMS provider configured for the OTP codes. Without the CRM the plugin has no standalone functionality. More about the CRM: www.s0ft.it. External services This plugin sends data to the IGEA CRM server configured by the site administrator (URL and API key in the plugin settings). The data transmitted is what the patient enters in the form (fiscal code, verification codes, selected drugs and quantities, notes) plus the visitor's IP address, used exclusively for anti-abuse rate limiting and access logging. No data is ever sent to S0ft.it or to any third party by this plugin: the destination server is chosen and operated by the site owner.

安装:

  1. Install and activate the plugin from Plugins → Add New, or upload the farmaci-igea folder to /wp-content/plugins/.
  2. On the IGEA CRM server: copy farmaci_api.php into the ajax/ folder (next to orari.php), edit the API key, token secret and WordPress origin at the top of the file, adjust the request rules (maximum quantity per drug, history depth in months, drugs per request, daily cap, pending-request lock, staff alert email) and run the farmaci.sql script on the CRM database.
  3. Go to Settings → Farmaci IGEA and enter the API URL and key (the same key configured on the CRM).
  4. Add the [fcrm_farmaci] shortcode to the page where you want the request form.
  5. Handle incoming requests from the CRM backend: rows in the richieste_farmaci table with status in_revisione, each with its drugs in richieste_farmaci_righe. On approval, set the status, fill esito_note, medico, gestita_il and link the generated prescription in ricetta_id. The cellulare column holds the patient's phone number on file, verified via OTP at request time.

屏幕截图:

  • Identity verification with SMS code
  • Drug list with quantity selectors and notes field
  • Patient's requests with review status
  • Plugin settings page

升级注意事项:

1.0.0 First release. Requires farmaci_api.php and the farmaci.sql script on the IGEA CRM server.

常见问题:

Does the plugin work without the IGEA CRM?

No. It is a connector for the IGEA CRM by S0ft.it: prescriptions, patient records and SMS sending all live on the CRM. The plugin provides the request interface on the website and the secure connection.

Does the plugin prescribe drugs?

No. It only collects repeat-prescription requests from patients. Every request is reviewed by the doctor from the CRM backend, who decides whether to approve it and issue the prescription.

Can a patient request a drug they were never prescribed?

The structured list only contains drugs from the patient's own prescription history, and every submitted row is re-validated server-side against that history. If the facility enables the free-text option on the CRM, patients can additionally describe other drugs in a text field — always subject to the doctor's review.

Can I customize the confirmation email?

Yes: create the SEND_FARM template in the CRM templates_email table (same mechanism as the other IGEA plugins), with placeholders for patient data, requested drugs, free-text request, pickup choice and notes. Without the template, a built-in fallback body is used. The on-screen confirmation message is customizable in the plugin settings.

Where are quantity limits configured?

On the CRM, in the constants at the top of farmaci_api.php: maximum quantity per drug, drugs per request, history depth, daily request cap and the pending-request lock.

Is the plugin GDPR compliant?

Prescriptions are health data: the plugin verifies the patient's identity before any access and logs every login, listing and request with date and IP on the CRM. Overall compliance depends on the site owner's privacy policy and processes.

更新日志:

1.0.0