Med at bedtime

back to homepage

Approval Status

  • Approval Status: Approved
  • Example Task Force: 2/16/2017
  • SDWG: 5/18/2017

C-CDA 2.1 Example:

  • Medications Section: 2.16.840.1.113883.
  • Medication Activity: 2.16.840.1.113883.
  • Medication Information: 2.16.840.1.113883.

Reference to full CDA sample:

  • Medications in empty CCD

Validation location


  • This is an example of having a medication with event timing (take at bedtime or at the "hour of sleep" (HS))


  • John D'Amore (GitHub: jddamore)


  • medication, event timing, HS, bedtime




Example: download example view on GitHub

    <templateId root="2.16.840.1.113883." extension="2014-06-09"/>
    <!-- Medication Section (entries required) -->
    <code code="10160-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="History of Medication Use"/>
        <table border="1" width="100%">
                    <th>Effective Dates (start - stop)</th>
                <tr ID="Medication_6">
                        <content ID="MedicationName_6">3 ML Insulin Glargine 100 UNT/ML Pen Injector [Lantus]</content>
                        <content ID="MedicationSig_6">Administer 40 units at bedtime</content>
                        <content>40 units</content>
                    <td>Jan-09-2009 - </td>
    <entry typeCode="DRIV">
        <substanceAdministration classCode="SBADM" moodCode="EVN">
            <templateId root="2.16.840.1.113883." extension="2014-06-09"/>
            <id root="1310a2d3-f888-4722-b4c4-a3c5911ac7f9"/>
                <!-- This reference refers to medication information in unstructured portion of section-->
                <reference value="#Medication_6"/>
            <statusCode code="active"/>
            <!-- This first effectiveTime shows that medication was added on January 9, 2009 (not known to have stopped)-->
            <effectiveTime xsi:type="IVL_TS">
                <low value="20090109"/>
                <high nullFlavor="NI"/>
            <!-- The second effectiveTime specifies dose frequency, which can be either a period (PIVL_TS) or event (EIVL_TS). -->
            <!-- This long-lasting insulin is administered once per day before bedtime (code = "HS", hour of sleep), which is an event-->
            <effectiveTime xsi:type="EIVL_TS" operator="A">
                <event code="HS"/>
            <!-- This route uses the NCI (National Cancer Institute) Thesauraus code system, which is constrained to the value set of 2.16.840.1.113883. (FDA Medication Route) -->
            <routeCode code="C38299" codeSystem="2.16.840.1.113883." displayName="Subcutaneous Route of Administration" codeSystemName="NCI Thesaurus"/>
            <!-- Since this dose is not pre-coordinated, specify both the amount with units in UCUM. [IU] is international units -->
            <!-- Note that this basal insulin is not administered on a sliding scale and a specific dose is administered-->
            <doseQuantity value="40" unit="[IU]"/>
            <consumable typeCode="CSM">
                <manufacturedProduct classCode="MANU">
                    <!-- ** Medication information ** -->
                    <templateId root="2.16.840.1.113883." extension="2014-06-09"/>
                        <!-- Medications should be specified at a level corresponding to prescription when possible (branded medication below)-->
                        <!-- Note the medication code specified in the test data is 261551, but that is not used since it's not an administered product (just brand name)-->
                        <code code="847232" codeSystem="2.16.840.1.113883.6.88" displayName="3 ML insulin glargine 100 UNT/ML Pen Injector [Lantus]" codeSystemName="RxNorm">
                                <reference value="#MedicationName_6"/>
            <entryRelationship typeCode="COMP">
                <substanceAdministration classCode="SBADM" moodCode="EVN">
                    <templateId root="2.16.840.1.113883."/>
                    <code code="76662-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Medication Instructions"/>
                        <!-- Reference into the section.text to a tag that ONLY contains free text SIG -->
                        <reference value="#MedicationSig_6"/>
                            <manufacturedLabeledDrug nullFlavor="NA"/>
  1. C-CDA Example Search Help

    C-CDA Example Search Results
    This screen displays the results of executing the example search criteria against the existing examples recorded in the example database.

  2. Search Criteria Panel

    This panel allow you to further refine your queries and narrow the results

  3. Text Search Words

    Use this field to enter words related to your search. These words can appear in the title, the comments or as part of a special list of keywords associated with the example. The search words should be entered with spaces separating the items.

  4. Filter by example status

    By selecting the various statuses, the search results can be limited to only the example that are set to the selected status(es). By removing all status selections, the filtering is removed and examples from all statuses will be returned (based on any other filtering).

  5. Select only ONC Certified examples

    These are samples referenced in a government rule or certification companion guide.

  6. Execute the search based on the criteria entered (or retrieve all examples if no criteria specified).

  7. The number of results that match the query parameters can be found here.

  8. Use this link to jump back to the initial page of the application (that lists the sections).

  9. This columns list the names of the examples that match the criteria (and the comment for each example).

  10. This columns lists the area in the C-CDA specification (the specification is broken into distinct topics for the various exchangeable documents, the common header, and the sections that occur within the exchangeable documents) that the example demonstrates.

  11. This columns lists the state of the example in the example verification and approval process.

  12. You can select to download the examples directly or navigate to page with the full detailed description of the example.

  13. Tour Complete

    Return to the C-CDA Example Search Results page.