Dear All,
I want build a system like this:
1. Medical records system:
- Profile (user) has all information that rarely changed of patient. Can do with Drupal 7 core or profile 2. That's enough.
- Consultation (content type): Each profile )= patient) can have many times go to hospital, each time = one consultation). We can use relation module to do this: content --> user "direction relation". That's ok.
* Price of each consultation is 10 USD (that means each node is corresponding 10 USD).
- Many other content types: Untra-sound, X-ray, ...
* Price of each above "node": x USD, y USD, ...
- Some content types do not have a hard price. Example: test, prescription of the doctor.
* In a test paper has many item: Gluco test, Bilirubile test, cholesterol test, .... In prescription paper has many items that may be appeared: paracetamol, loratadine, ... (1-10 medicines of 1000s medicines can be chosen). So, each node likes this may be have different price (the price made by various items)
- Some other content types do not have a price ("free").

About how to collect all nodes into a perfect Patient File? That will be done by using relation module
About how to view nice nodes, nice forms? That will be done by various modules. But I still do not know what is the best choice?

2. Commerce System
- "Products - Goods" are medicines, disposables, consultations, X-ray, ...
- All reports, tasks can be done by views and other contributed modules. No need code.
I have learned Drupal Commerce. That's the best for this.
- But have a BIG PROBLEM: How to collect (interact) 2 system together? That means: when we create a "consultation" node, one order will be create too. And a "product" will be add to this order.
After that, when a X-ray is created, a "X-ray product" will be add this order. One more X-ray created, one more "X-ray product" will be add, ...
And an important issue: when a prescription be done, each item with its number (medicine) will be add to the order (of right patient).

If we required good performance, Is it better or not when 2 system should be lived in separate servers. What is the best solution for this?

Many thanks,
P/S:
Dear DC team,
if this issue is not should here, please remove it.

Comments

rszrama’s picture

Assigned: drvdt » Unassigned
Category: feature » support
Status: Active » Closed (won't fix)

Yeah, what you're really looking for is a consultation on how to configure the systems to interact, but we don't really do that here in the issue queue. My hunch, though, is that what you're looking to build would be better served by a code-based solution. Rules is good for putting things together that need to be reconfigured at will by non-developers, but if this is core to your business, it may be better to simply let the administrator "build" the order via nodes and then have a form embedded somewhere that translates the whole thing into an actual Commerce order for the customer.