<?xml version="1.0" encoding="UTF-8"?><MedicationRequest xmlns="http://hl7.org/fhir">
    <id value="medrx0310"/>
    <text><status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative</b></p><div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px">Resource &quot;medrx0310&quot; </p></div><p><b>identifier</b>: id: 12345689 (OFFICIAL)</p><p><b>status</b>: active</p><p><b>intent</b>: order</p><p><b>medication</b>: <a name="med0309"> </a></p><blockquote><div style="display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%"><p style="margin-bottom: 0px">Resource &quot;med0309&quot; </p></div><p><b>code</b>: Tylenol PM <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="http://terminology.hl7.org/3.1.0/CodeSystem-v3-ndc.html">National drug codes</a>#50580-608-02)</span></p></blockquote><p><b>subject</b>: <a href="patient-pat1.html">Patient/pat1: Donald Duck</a> &quot;Duck DONALD&quot;</p><p><b>encounter</b>: <a href="encounter-f001.html">Encounter/f001: encounter who leads to this prescription</a></p><p><b>authoredOn</b>: 2015-01-15</p><p><b>requester</b>: <a href="practitioner-f007.html">Practitioner/f007: Patrick Pump</a> &quot;Simone HEPS&quot;</p></div></text><contained>
        <Medication>
            <id value="med0309"/>
            <code>
                <coding>
                    <system value="http://hl7.org/fhir/sid/ndc"/>
                    <code value="50580-608-02"/>
                    <display value="Tylenol PM"/>
                </coding>
            </code>
        </Medication>
    </contained>
    <identifier>
        <use value="official"/>
        <system value="http://www.bmc.nl/portal/prescriptions"/>
        <value value="12345689"/>
    </identifier>
    <status value="active"/>
    <intent value="order"/>
    <medicationReference>
        <reference value="#med0309"/>
    </medicationReference>
    <subject> <!--   Linked to the resource patient who needs the medication   -->
        <reference value="Patient/pat1"/>
        <display value="Donald Duck"/>        
    </subject>
    <encounter> <!--   Linked to a resource Encounter between patient and practitioner  -->
        <reference value="Encounter/f001"/>
        <display value="encounter who leads to this prescription"/>
    </encounter>
    <authoredOn value="2015-01-15"/>
    <requester>
        <reference value="Practitioner/f007"/>
        <display value="Patrick Pump"/>
    </requester>
    <dosageInstruction>
        <sequence value="1"/>
        <text value="Take 1-2 tablets once daily at bedtime as needed for restless legs"/>
        <additionalInstruction>
            <text value="Take at bedtime"/>
        </additionalInstruction>
        <timing>
            <repeat>
                <frequency value="1"/>
                <period value="1"/>
                <periodUnit value="d"/>
            </repeat>
        </timing>
        <asNeededCodeableConcept>
                <coding>
                    <system value="http://snomed.info/sct"/>
                    <code value="32914008"/>
                    <display value="Restless Legs"/>
                </coding>
        </asNeededCodeableConcept>
        <route>
            <coding>
                <system value="http://snomed.info/sct"/>
                <code value="26643006"/>
                <display value="Oral Route"/>
            </coding>
        </route>
        <doseAndRate>
            <type>
                <coding>
                    <system value="http://terminology.hl7.org/CodeSystem/dose-rate-type"/>
                    <code value="ordered"/>
                    <display value="Ordered"/>
                </coding>
            </type>
            <doseRange>
                <low>
                    <value value="1"/>
                    <unit value="TAB"/>
                    <system value="http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm"/>
                    <code value="TAB"/>
                </low>
                <high>
                    <value value="2"/>
                    <unit value="TAB"/>
                    <system value="http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm"/>
                    <code value="TAB"/>
                </high>
            </doseRange>
        </doseAndRate>

    </dosageInstruction>
</MedicationRequest>