Hi, I have a general question concerning Drupal (I just installed 7) - I'm a total newbie here, so I’m just trying to understand how to relate pieces of data to each other. Basically, I need what seems to amount to a node reference / value pair, or some sort of composite field, and I just don't see how to do it. I have a contrived example to demonstrate the question:
A user has a list of “illnesses”, and for each illness they have there is an associated list of drugs prescribed for that user, along with the dosage (the dosage can vary depending on the severity of the illness, for example). So I’ve created an illness content type that describes an illness and a drug content type for each drug. I’ve also created a content type for “prescriptions for a particular illness for a user” to relate the list of drugs prescribed as treatment to the illness the user has (using node_reference in the references module for that). So there is a one to many relationship in a "prescriptions for a particular illness for a user" node between an illness and a list of drugs.
The problem is that I also need to add the dosage prescribed for each drug selection. (ie. I need more than just a node reference field with a select list that lets me pick an arbitrary number of drugs - I need the node reference field tied to an integer field to save the dosage). How can I do that?