If I am interpreting item 2 correctly, I would do as follows:
{ "dosageInstruction": [ { "sequence": 1, "text": "Take 1 Tablet oral route ... n hours before eventx", "method": { "text": "Take", "coding": [ { "code": "419652001", "system": "http://snomed.info/ct", "display": "Take" } ] }, "doseAndRate": [ { "type": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/dose-rate-type", "code": "ordered", "display": "Ordered" } ] }, "doseQuantity": { "code": "C48542", "unit": "tablet", "system": "http://unitsofmeasure.org", "value": "1" } } ], "route": { "text": "oral route", "coding": [ { "code": "26643006", "system": "http://snomed.info/ct", "display": "oral route" } ] }, "timing": { "repeat": { "frequency": "1", "frequencyMax": "1", "period": 1, "periodUnit": "d", "when": [ "eventx" ], "offset": "n" }, "code": { "text": "n hours before eventx" } }, "maxDosePerAdministration": { "value": 10, "unit": "mg", "system": "http://unitsofmeasure.org", "code": "mg" } }, { "sequence": 1, "text": "or", "method": { "text": "Or", "coding": [ { "code": "420561004", "system": "http://snomed.info/ct", "display": "Or" } ] } }, { "sequence": 1, "text": "m hours after eventx", "timing": { "repeat": { "frequency": "1", "frequencyMax": "1", "period": 1, "periodUnit": "d", "when": [ "eventx" ], "offset": "m" }, "code": { "text": "m hours after eventx" } } } ]}
Utilizing consecutive instructions and keeping the sequence number the same.
- For n hours before
- For just the or
- For m hours after
Hans