The TruBridge EHR platform Medication History output format.
The Medication History files are named following the naming convention as follows:
Rx_spid_profile_visit_medHistoryfile_creationDate_creationTime
An example of this naming convention:
Rx_0001_4191_0_escribe_medhistory_0001_00004191_1_20230706_1558220000
The file output consists of XML data in the NCPDP format(NCPDP SCRIPT Version 2017071). This may also include wrapping within a JSON.
Example data file format:
<?xml version="1.0" encoding="UTF-8"?>
<Message TransportVersion="20170715" DatatypesVersion="20170715" TransactionDomain="SCRIPT"
TransactionVersion="20170715" StructuresVersion="20170715" ECLVersion="20170715"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="transport.xsd">
<Header>
<To Qualifier="ZZZ">T00000000000109</To>
<From Qualifier="ZZZ">D00000000009945</From>
<MessageID>a68b98181cd34f95a2776f16976a980e</MessageID>
<RelatesToMessageID>db3f628595714eddb88592d028ca91aa</RelatesToMessageID>
<SentTime>2018-07-20T08:03:14.346Z</SentTime>
<Security>
<Sender>
<TertiaryIdentification>S00000000000002</TertiaryIdentification>
</Sender>
<Receiver/>
</Security>
<SenderSoftware>
<SenderSoftwareDeveloper>SoftwareDev</SenderSoftwareDeveloper>
<SenderSoftwareProduct>443</SenderSoftwareProduct>
<SenderSoftwareVersionRelease>2.1</SenderSoftwareVersionRelease>
</SenderSoftware>
<TestMessage>1</TestMessage>
</Header>
<Body>
<RxHistoryResponse>
<Response>
<Approved/>
</Response>
<BenefitsCoordination>
<Consent>Y</Consent>
</BenefitsCoordination>
<Patient>
<HumanPatient>
<Name>
<LastName>Doe</LastName>
<FirstName>Jane</FirstName>
<MiddleName>Ann</MiddleName>
<Suffix>Sr</Suffix>
</Name>
<Gender>F</Gender>
<DateOfBirth>
<Date>1983-02-22</Date>
</DateOfBirth>
<Address>
<AddressLine1>123 Main St</AddressLine1>
<City>Anytown</City>
<StateProvince>MN</StateProvince>
<PostalCode>543215151</PostalCode>
<CountryCode>US</CountryCode>
</Address>
</HumanPatient>
</Patient>
<Prescriber>
<NonVeterinarian>
<Identification>
<DEANumber>MJ2746581</DEANumber>
<NPI>1234567893</NPI>
</Identification>
<PracticeLocation>
<BusinessName>Test Clinic</BusinessName>
</PracticeLocation>
<Name>
<LastName>Johnson</LastName>
<FirstName>John</FirstName>
<MiddleName>Joe</MiddleName>
<Suffix>Jr</Suffix>
<Prefix>Dr</Prefix>
</Name>
<Address>
<AddressLine1>272 E Central St</AddressLine1>
<AddressLine2>Ste #1322</AddressLine2>
<City>Anytown</City>
<StateProvince>MN</StateProvince>
<PostalCode>554371319</PostalCode>
<CountryCode>US</CountryCode>
</Address>
<CommunicationNumbers>
<PrimaryTelephone>
<Number>5555552727</Number>
<Extension>5252</Extension>
<SupportsSMS>Y</SupportsSMS>
</PrimaryTelephone>
<Fax>
<Number>5555559093</Number>
<Extension>4412</Extension>
<SupportsSMS>N</SupportsSMS>
</Fax>
</CommunicationNumbers>
</NonVeterinarian>
</Prescriber>
<MedicationDispensed>
<DrugDescription>Cefdinir 125 MG/5 ML suspension</DrugDescription>
<DrugCoded>
<ProductCode>
<Code>65862021801</Code>
<Qualifier>ND</Qualifier>
</ProductCode>
<Strength>
<StrengthValue>125</StrengthValue>
<StrengthForm>
<Code>C68981</Code>
</StrengthForm>
<StrengthUnitOfMeasure>
<Code>C91131</Code>
</StrengthUnitOfMeasure>
</Strength>
<DrugDBCode>
<Code>309054</Code>
<Qualifier>SCD</Qualifier>
</DrugDBCode>
</DrugCoded>
<Quantity>
<Value>200</Value>
<CodeListQualifier>87</CodeListQualifier>
<QuantityUnitOfMeasure>
<Code>C28254</Code>
</QuantityUnitOfMeasure>
</Quantity>
<DaysSupply>10</DaysSupply>
<LastFillDate>
<Date>2018-06-16</Date>
</LastFillDate>
<Substitutions>0</Substitutions>
<Diagnosis>
<ClinicalInformationQualifier>1</ClinicalInformationQualifier>
<Primary>
<Code>J0100</Code>
<Qualifier>ABF</Qualifier>
<Description>Acute maxillary sinusitis, unspecified</Description>
</Primary>
</Diagnosis>
<HistorySource>
<Source>
<SourceQualifier>PY</SourceQualifier>
</Source>
</HistorySource>
</MedicationDispensed>
<MedicationDispensed>
<DrugDescription>Amoxicillin 125 MG/5 ML suspension</DrugDescription>
<DrugCoded>
<ProductCode>
<Code>65862070655</Code>
<Qualifier>ND</Qualifier>
</ProductCode>
<Strength>
<StrengthValue>125</StrengthValue>
<StrengthForm>
<Code>C68981</Code>
</StrengthForm>
<StrengthUnitOfMeasure>
<Code>C91131</Code>
</StrengthUnitOfMeasure>
</Strength>
<DrugDBCode>
<Code>313797</Code>
<Qualifier>SCD</Qualifier>
</DrugDBCode>
</DrugCoded>
<Quantity>
<Value>100</Value>
<CodeListQualifier>87</CodeListQualifier>
<QuantityUnitOfMeasure>
<Code>C28254</Code>
</QuantityUnitOfMeasure>
</Quantity>
<DaysSupply>10</DaysSupply>
<LastFillDate>
<Date>2018-06-15</Date>
</LastFillDate>
<Substitutions>0</Substitutions>
<Diagnosis>
<ClinicalInformationQualifier>1</ClinicalInformationQualifier>
<Primary>
<Code>H6504</Code>
<Qualifier>ABF</Qualifier>
<Description>Acute serous otitis media, recurrent, right ear</Description>
</Primary>
</Diagnosis>
<HistorySource>
<Source>
<SourceQualifier>PY</SourceQualifier>
</Source>
</HistorySource>
</MedicationDispensed>
<RequestedDates>
<StartDate>
<Date>2017-08-14</Date>
</StartDate>
<EndDate>
<Date>2018-08-13</Date>
</EndDate>
</RequestedDates>
</RxHistoryResponse>
</Body>
</Message>