Panel History File Examples
9 min
this section provides the following xml examples from within the panel history file panel history file xml document structure docid\ qw9pcerdqimuhtnofcv0w file identifier with date sent docid\ qw9pcerdqimuhtnofcv0w from pharmacy feed docid\ qw9pcerdqimuhtnofcv0w from pbm/payer care feed docid\ qw9pcerdqimuhtnofcv0w patient not found docid\ qw9pcerdqimuhtnofcv0w approved with notes docid\ qw9pcerdqimuhtnofcv0w aq reason code docid\ qw9pcerdqimuhtnofcv0w dj reason code docid\ qw9pcerdqimuhtnofcv0w panel history file xml document structure file identifier with date sent (top portion of panel history file) \<messages xmlns\ xsi="http //www w3 org/2001/xmlschema instance" xsi\ schemalocation="http //www surescripts com/messaging messageswrapper xsd" xmlns="http //www surescripts com/messaging"> \<patientfileid>adhoc\</patientfileid> \<transmissioncontrolnumber>1234561234\</transmissioncontrolnumber> \<senttime>2020 02 08t05 08 10\</senttime> from pharmacy feed \<message xmlns="http //www surescripts com/messaging" release="006" version="010"> \<header> \<to qualifier="zzz">p00000000012345\</to> \<from qualifier="zzz">s00000000000003\</from> \<messageid>id3z8w35xkt03h2cb1yd3wobii0juedm\</messageid> \<relatestomessageid>12345678 12345678 1234567812345\</relatestomessageid> \<senttime>2020 02 08t04 38 41 076z\</senttime> \<security> \<sender> \<secondaryidentification>nopass\</secondaryidentification> \</sender> \<receiver/> \</security> \<sendersoftware> \<sendersoftwaredeveloper>sendersoftwaredev\</sendersoftwaredeveloper> \<sendersoftwareproduct>10 6 version\</sendersoftwareproduct> \<sendersoftwareversionrelease>10 1\</sendersoftwareversionrelease> \</sendersoftware> \<testmessage>0\</testmessage> \</header> \<body> \<rxhistoryresponse> \<response> \<approved/> \</response> \<prescriber> \<identification> \<npi>1265666666\</npi> \<identification> \<name> \<lastname>dolittle\</lastname> \</name> \</prescriber> \<patient> \<identification> \<mutuallydefined>1234567\</mutuallydefined> \</identification> \<name> \<lastname>aubaine\</lastname> \<firstname>chenin blanc\</firstname> \</name> \<gender>f\</gender> \<dateofbirth> \<date>1991 07 21\</date> \</dateofbirth> \<address> \<zipcode>61761\</zipcode> \</address> \</patient> \<benefitscoordination> \<effectivedate> \<date>2019 02 08\</date> \</effectivedate> \<expirationdate> \<date>2019 03 08\</date> \</expirationdate> \<consent>y\</consent> \</benefitscoordination> \<medicationdispensed> \<drugdescription>sertraline 60mg tablets\</drugdescription> \<drugcoded> \<productcode>65862001305\</productcode> \<productcodequalifier>nd\</productcodequalifier> \</drugcoded> \<quantity> \<value>90\</value> \<codelistqualifier>87\</codelistqualifier> \<unitsourcecode>ac\</unitsourcecode> \<potencyunitcode>c64933\</potencyunitcode> \</quantity> \<dayssupply>90\</dayssupply> \<directions>take one tablet two times a day until gone \</directions> \<refills> \<qualifier>rem\</qualifier> \<value>0\</value> \</refills> \<substitutions>0\</substitutions> \<writtendate> \<date>2019 12 15\</date> \</writtendate> \<lastfilldate> \<date>2019 12 15\</date> \</lastfilldate> \<solddate> \<date>2019 12 18\</date> \</solddate> \<pharmacy> \<identification> \<ncpdpid>1469123\</ncpdpid> \<npi>1265437548\</npi> \</identification> \<storename>walgreens\</storename> \<address> \<addressline1>1525 n main pkwy\</addressline1> \<city>bloomington\</city> \<state>il\</state> \<zipcode>61706\</zipcode> \</address> \<communicationnumbers> \<communication> \<number>4012615689\</number> \<qualifier>te\</qualifier> \</communication> \</communicationnumbers> \</pharmacy> \<prescriber> \<identification> \<npi>8925170837\</npi> \<deanumber>fg1235179\</deanumber> \</identification> \<name> \<lastname>piscopo\</lastname> \<firstname>bob\</firstname> \</name> \<address> \<addressline1>1234 west dr\</addressline1> \<addressline2>ste e\</addressline2> \<city>chicago\</city> \<state>il\</state> \<zipcode>617013552\</zipcode> \<placelocationqualifier>ad2\</placelocationqualifier> \</address> \<communicationnumbers> \<communication> \<number>5864638356\</number> \<qualifier>te\</qualifier> \</communication> \<communication> \<number>8863631812\</number> \<qualifier>fx\</qualifier> \</communication> \</communicationnumbers> \</prescriber> \<historysource> \<source> \<sourcequalifier>p2\</sourcequalifier> \<sourcedescription>walgreens\</sourcedescription> \<reference> \<idvalue>1469123\</idvalue> \<idqualifier>d3\</idqualifier> \</reference> \</source> \<sourcereference>309678\</sourcereference> \<fillnumber>01\</fillnumber> \</historysource> \</medicationdispensed> \</rxhistoryresponse> \</body> \</message> from pbm/payer care feed please refer to the example in aq reason code docid\ qw9pcerdqimuhtnofcv0w where the \<font color="#800000">sourcequalifier\</font> value is py note if the submitter chooses to send the sourcereference field, and the sourcequalifier value is py , then it should be populated with prescription number from pbm/payer system from claims processing patient not found \<message xmlns="http //www surescripts com/messaging" release="006" version="010"> \<header> \<to qualifier="zzz">p00000000012345\</to> \<from qualifier="zzz">s00000000000009\</from> \<messageid>8cww2ecxk97k4a3ibwmp1pt1mgl24cdc\</messageid> \<relatestomessageid>32345678 12345678 1234567812345\</relatestomessageid> \<senttime>2020 02 08t04 44 58 232z\</senttime> \<security> \<sender> \<secondaryidentification>nopass\</secondaryidentification> \</sender> \<receiver/> \</security> \<sendersoftware> \<sendersoftwaredeveloper>sendersoftwaredev\</sendersoftwaredeveloper> \<sendersoftwareproduct>10 6 version\</sendersoftwareproduct> \<sendersoftwareversionrelease>10 1\</sendersoftwareversionrelease> \</sendersoftware> \<testmessage>0\</testmessage> \</header> \<body> \<rxhistoryresponse> \<response> \<approved> \<note>patient not found \</note> \</approved> \</response> \<prescriber> \<identification> \<npi>1265666666\</npi> \<identification> \<name> \<lastname>dolittle\</lastname> \</name> \</prescriber> \<patient> \<identification> \<! note this mutually defined field is the patient’s id from the input patient file it is not required by the standard on a med history response but will always be populated for panel > \<mutuallydefined>7654321\</mutuallydefined> \</identification> \<name> \<! note first name, last name, date of birth, gender and zip code are required on the patient file load these are not required by the standard on a med history response but will always be populated for panel > \<lastname>bandit\</lastname> \<firstname>smokey\</firstname> \</name> \<gender>m\</gender> \<dateofbirth> \<date>1940 04 27\</date> \</dateofbirth> \<address> \<zipcode>60131\</zipcode> \</address> \</patient> \<benefitscoordination> \<! note the benefits coordination fields are not required by the standard on a med history response but will be populated by panel effective date is the beginning date of the look back period for medications and expiration date is the end date of the look back period consent is always set to “y” > \<effectivedate> \<date>2019 02 08\</date> \</effectivedate> \<expirationdate> \<date>2020 02 08\</date> \</expirationdate> \<consent>y\</consent> \</benefitscoordination> \</rxhistoryresponse> \</body> \</message> approved with note \<message xmlns="http //www surescripts com/messaging" release="006" version="010"> \<header> \<to qualifier="zzz">p00000000012345\</to> \<from qualifier="zzz">s00000000000009\</from> \<messageid>wl4hsx68yfwgtklgfaxups68io4rbx6f\</messageid> \<relatestomessageid>22345678 12345678 1234567812345\</relatestomessageid> \<senttime>2020 02 08t04 17 47 979z\</senttime> \<security> \<sender> \<secondaryidentification>nopass\</secondaryidentification> \</sender> \<receiver/> \</security> \<sendersoftware> \<sendersoftwaredeveloper>sendersoftwaredev\</sendersoftwaredeveloper> \<sendersoftwareproduct>10 6 version\</sendersoftwareproduct> \<sendersoftwareversionrelease>10 1\</sendersoftwareversionrelease> \</sendersoftware> \<testmessage>0\</testmessage> \</header> \<body> \<rxhistoryresponse> \<response> \<approved> \<note>although a patient record was found, no medications were available \</note> \</approved> \</response> \<prescriber> \<identification> \<npi>1265666666\</npi> \<identification> \<name> \<lastname>dolittle\</lastname> \</name> \</prescriber> \<patient> \<identification> \<! note this mutually defined field is the patient’s id from the input patient file it is not required by the standard on a med history response but will always be populated for panel > \<mutuallydefined>123456\</mutuallydefined> \</identification> \<name> \<! note first name, last name, date of birth, gender and zip code are required on the patient file load these are not required by the standard on a med history response but will always be populated for panel > \<lastname>brightonrighton\</lastname> \<firstname>joel\</firstname> \</name> \<gender>m\</gender> \<dateofbirth> \<date>1968 05 19\</date> \</dateofbirth> \<address> \<zipcode>90210\</zipcode> \</address> \</patient> \<benefitscoordination> \<! note the benefits coordination fields are not required by the standard on a med history response but will be populated by panel effective date is the beginning date of the look back period for medications and expiration date is the end date of the look back period consent is always set to “y” > \<effectivedate> \<date>2019 02 08\</date> \</effectivedate> \<expirationdate> \<date>2020 02 08\</date> \</expirationdate> \<consent>y\</consent> \</benefitscoordination> \</rxhistoryresponse> \</body> \</message> aq reason code (patient has over 300 meds) \<message xmlns="http //www surescripts com/messaging" release="006" version="010"> \<header> \<to qualifier="zzz">p00000000022835\</to> \<from qualifier="zzz">s00000000000003\</from> \<messageid> id3z8w35xkt03h2cb1yd3wobii0juedm\</messageid> \<relatestomessageid>12345678 12345678 1234567812345\</relatestomessageid> \<senttime>2020 02 08t04 38 41 076z \</senttime> \<security> \<sender> \<secondaryidentification>nopass\</secondaryidentification> \</sender> \<receiver/> \</security> \<sendersoftware> \<sendersoftwaredeveloper>sendersoftwaredev\</sendersoftwaredeveloper> \<sendersoftwareproduct>10 6 version\</sendersoftwareproduct> \<sendersoftwareversionrelease>10 1\</sendersoftwareversionrelease> \</sendersoftware> \<testmessage>0\</testmessage> \</header> response 1 containing aq reason code \<body> \<rxhistoryresponse> \<response> \<approved> \<approvalreasoncode>aq\</approvalreasoncode> \</approved> \</response> \<prescriber> \<identification> \<npi>1265666666\</npi> \<identification> \<name> \<lastname>dolittle\</lastname> \</name> \</prescriber> \<patient> \<identification> \<mutuallydefined>1234567\</mutuallydefined> \</identification> \<name> \<lastname>pennington\</lastname> \<firstname>ren\</firstname> \</name> \<gender>f\</gender> \<dateofbirth> \<date>1975 06 28\</date> \</dateofbirth> \<address> \<zipcode>55555\</zipcode> \</address> \</patient> \<benefitscoordination> \<effectivedate> \<date>2019 02 06\</date> \</effectivedate> \<expirationdate> \<date>2020 02 06\</date> \</expirationdate> \<consent>y\</consent> \</benefitscoordination> \<medicationdispensed> \<! note this message would continue on to include 300 total dispensed medications > response 2 (remaining dispensed medications up to 300) \<body> \<rxhistoryresponse> \<response> \<approved/> \</response> \<prescriber> \<identification> \<npi>1265666666\</npi> \<identification> \<name> \<lastname>dolittle\</lastname> \</name> \</prescriber> \<patient> \<identification> \<mutuallydefined>2101111\</mutuallydefined> \<identification> \<mutuallydefined>1234567\</mutuallydefined> \</identification> \<name> \<lastname>pennington\</lastname> \<firstname>ren\</firstname> \</name> \<gender>f\</gender> \<dateofbirth> \<date>1975 06 28\</date> \</dateofbirth> \<address> \<zipcode>55555\</zipcode> \</address> \</patient> \<benefitscoordination> \<effectivedate> \<date>2019 02 06\</date> \</effectivedate> \<expirationdate> \<date>2019 04 03\</date> \</expirationdate> \<consent>y\</consent> \</benefitscoordination> \<medicationdispensed> \<drugdescription>fentanyl 25 mcg/hr transdermal patch\</drugdescription> \<drugcoded> \<productcode>00006902576\</productcode> \<productcodequalifier>nd\</productcodequalifier> \<strength>25 mcg/hr\</strength> \<deaschedule>c48675\</deaschedule> \</drugcoded> \<quantity> \<value>10\</value> \<codelistqualifier>87\</codelistqualifier> \<unitsourcecode>ac\</unitsourcecode> \<potencyunitcode>c48524\</potencyunitcode> \</quantity> \<dayssupply>30\</dayssupply> \<refills> \<qualifier>rem\</qualifier> \<value>0\</value> \</refills> \<substitutions>0\</substitutions> \<lastfilldate> \<date>2019 03 08\</date> \</lastfilldate> \<pharmacy> \<identification> \<ncpdpid>1455555\</ncpdpid> \<npi>1265466666\</npi> \</identification> \<storename>walgreens 12345\</storename> \<address> \<addressline1>1525 n main pkwy\</addressline1> \<city>chicago\</city> \<state>il\</state> \<zipcode>55555\</zipcode> \</address> \<communicationnumbers> \<communication> \<number>7755555511\</number> \<qualifier>te\</qualifier> \</communication> \</communicationnumbers> \</pharmacy> \<prescriber> \<identification> \<npi>0111118370\</npi> \</identification> \<name> \<lastname>valden\</lastname> \<firstname>leah\</firstname> \</name> \<communicationnumbers> \<communication> \<number>1234387752\</number> \<qualifier>te\</qualifier> \</communication> \</communicationnumbers> \</prescriber> \<historysource> \<source> \<sourcequalifier>py\</sourcequalifier> \<sourcedescription>dstpsdir\</sourcedescription> \</source> \<sourcereference>895464999999\</sourcereference> \</historysource> \</medicationdispensed> \<! note this message would continue on to include the remaining dispensed medications up to a maximum of 300 > dj reason code (patient record found, but no medications available) \<message transportversion="20170715" datatypesversion="20170715" transactiondomain="script" transactionversion="20170715" structuresversion="20170715" eclversion="20170715"> \<header> \<to qualifier="zzz">d00000000093552\</to> \<from qualifier="zzz">d00000000000008\</from> \<messageid>4e2f66cc 9401 4060 b461 62e5029cc1f7\</messageid> \<relatestomessageid>7897535 7303095 1655290060714\</relatestomessageid> \<senttime>2022 06 15t10 47 43 000z\</senttime> \<security> \<sender> \<secondaryidentification>rrn0bd6kue\</secondaryidentification> \<tertiaryidentification>s00000000000003\</tertiaryidentification> \</sender> \<receiver/> \</security> \<sendersoftware> \<sendersoftwaredeveloper>surescripts\</sendersoftwaredeveloper> \<sendersoftwareproduct>medication history\</sendersoftwareproduct> \<sendersoftwareversionrelease>26 1 0 774\</sendersoftwareversionrelease> \</sendersoftware> \<testmessage>0\</testmessage> \</header> \<body> \<rxhistoryresponse> \<response> \<approved> \<reasoncode>dj\</reasoncode> \<note>although a patient record was found, no medications were available \</note> \</approved> \</response> \<facility> \<identification> \<npi>1154601474\</npi> \</identification> \<facilityname>11mn\</facilityname> \</facility> \<patient> \<humanpatient> \<identification> \<mutuallydefined>560 io7ww25rx0fcjch3\</mutuallydefined> \</identification> \<name> \<lastname>retryscenario560\</lastname> \<firstname>halcomb\</firstname> \<middlename>m\</middlename> \</name> \<gender>m\</gender> \<dateofbirth> \<date>1966 11 23\</date> \</dateofbirth> \<address> \<postalcode>19145\</postalcode> \</address> \</humanpatient> \</patient> \<benefitscoordination> \<effectivedate> \<date>2019 07 14\</date> \</effectivedate> \<expirationdate> \<date>2019 07 14\</date> \</expirationdate> \<consent>y\</consent> \</benefitscoordination> \<requesteddates> \<startdate> \<date>2021 06 15\</date> \</startdate> \<enddate> \<date>2022 06 15\</date> \</enddate> \</requesteddates> \</rxhistoryresponse> \</body> \</message>