<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2015 rel. 4 (x64) (http://www.altova.com) by Tim McNeil (Surescripts LLC) -->
<!--
Copyright (c) 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 NCPDP. All rights reserved. This work is owned by National Council for Prescription Drug Programs, Inc., 924Ø E. Raintree Drive, Scottsdale, AZ 8526Ø, (48Ø) 477-1ØØØ, ncpdp@ncpdp.org, and protected by the copyright laws of the United States. 17 U.S.C. §1Ø1, et. seq. Permission is given to Council members to copy and use the work or any part thereof in connection with the business purposes of the Council members.   


The work may not be changed or altered. The work may not be sold, used or exploited for commercial purposes. This permission may be revoked by National Council for Prescription Drug Programs, Inc., at any time. The National Council for Prescription Drugs Programs, Inc. is not responsible for any errors or damage as a result of the use of the work.
NCPDP recognizes the confidentiality of certain information exchanged electronically through the use of its standards. Users should be familiar with the federal, state, and local laws, regulations and codes requiring confidentiality of this information and should utilize the standards accordingly.

NOTICE: In addition, this NCPDP Standard contains certain data fields and elements that may be completed by users with the proprietary information of third parties. The use and distribution of third parties' proprietary information without such third parties' consent, or the execution of a license or other agreement with such third party, could subject the user to numerous legal claims. All users are encouraged to contact such third parties to determine whether such information is proprietary and if necessary, to consult with legal counsel to make arrangements for the use and distribution of such proprietary information.
-->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:script="http://script.services.pmbc.com" xmlns:ecl="http://ecl.services.pmbc.com" xmlns:structures="http://structures.services.pmbc.com" xmlns:datatypes="http://datatypes.services.pmbc.com" xmlns:pa-structures="http://pa-structures.services.pmbc.com" targetNamespace="http://script.services.pmbc.com" elementFormDefault="qualified" attributeFormDefault="unqualified" version="NCPDPv2014FebBallotPilotRFS-PMBC">
	<xsd:import namespace="http://pa-structures.services.pmbc.com" schemaLocation="pa-structures.xsd"/>
	<xsd:import namespace="http://ecl.services.pmbc.com" schemaLocation="ecl.xsd"/>
	<xsd:import namespace="http://datatypes.services.pmbc.com" schemaLocation="datatypes.xsd"/>
	<xsd:import namespace="http://structures.services.pmbc.com" schemaLocation="structures.xsd"/>
	<!-- ================================================== -->
	<!-- =====  Complex Type Definitions  -->
	<!-- ================================================== -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  ApprovedAbstractType  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="ApprovedAbstractType">
		<xsd:sequence>
			<xsd:element name="ReasonCode" type="ecl:ReasonCode" minOccurs="0" maxOccurs="10">
				<xsd:annotation>
					<xsd:documentation>Approved may contain a ReasonCode.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="ReferenceNumber" type="datatypes:an1..35" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>Transaction Key. Used in conjunction with same field described above in the RequestReferenceNumber. The Mailbox may return the positional key of the specific piece of mail within their files.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Note" type="datatypes:an1..70" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  ApprovedWithoutReasonType  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="ApprovedWithoutReasonType">
		<xsd:complexContent>
			<xsd:restriction base="script:ApprovedAbstractType">
				<xsd:sequence>
					<xsd:element name="ReasonCode" type="ecl:ReasonCode" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>Approved may contain a ReasonCode.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ReferenceNumber" type="datatypes:an1..35" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>Transaction Key. Used in conjunction with same field described above in the RequestReferenceNumber. The Mailbox may return the positional key of the specific piece of mail within their files.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Note" type="datatypes:an1..70" minOccurs="0"/>
				</xsd:sequence>
			</xsd:restriction>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  BenefitResponseType  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="BenefitResponseType">
		<xsd:sequence>
			<xsd:element name="ReasonCode" type="ecl:ReasonCode20" maxOccurs="10"/>
			<xsd:element name="FreeText" type="datatypes:an1..200" minOccurs="0"/>
			<xsd:element name="ResponseType">
				<xsd:annotation>
					<xsd:documentation>Was the response generated as a RFS or PMBC  </xsd:documentation>
				</xsd:annotation>
				<xsd:simpleType>
					<xsd:restriction base="datatypes:an">
						<xsd:enumeration value="PMBC"/>
						<xsd:enumeration value="RFS"/>
					</xsd:restriction>
				</xsd:simpleType>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  CancelRx  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="CancelRx">
		<xsd:annotation>
			<xsd:documentation>This transaction is used to notify the pharmacy that a previously sent prescription should be canceled and not filled.  </xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:restriction base="script:SCRIPTRequest">
				<xsd:sequence>
					<xsd:element name="MessageRequestCode" type="ecl:LTCLevelOfChangeCode" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ReturnReceipt" type="datatypes:an1..3" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="RequestReferenceNumber" type="datatypes:an1..35" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="FollowUpRequest" type="datatypes:n1..1" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ChangeOfPrescriptionStatusFlag" type="ecl:ChangeOfPrescriptionStatusCode" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="BenefitsCoordination" type="structures:BaseBenefitsCoordination" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="DiagnosisGeneral" type="structures:DiagnosisGeneral" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Facility" type="structures:Facility" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="FillStatus" type="structures:FillStatus" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Patient" type="structures:PatientType"/>
					<xsd:element name="Pharmacy" type="structures:MandatoryPharmacy" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Prescriber" type="structures:PrescriberChoice"/>
					<xsd:element name="DrugAdministrationRequest" type="script:DrugAdministrationRequest" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Observation" type="structures:Observation" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="MedicationDispensed" type="structures:PrescribedMedication" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="MedicationPrescribed" type="structures:PrescribedMedicationForCancelRx"/>
					<xsd:element name="MedicationRequested" type="structures:PrescribedMedication" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Supervisor" type="structures:SupervisorType" minOccurs="0"/>
					<xsd:element name="RequestedDates" type="datatypes:DateRange" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ProhibitRefillRequest" type="xsd:boolean" minOccurs="0" maxOccurs="0"/>
					<xsd:element name="ChangeReasonText" type="datatypes:an1..260" minOccurs="0" maxOccurs="0"/>
				</xsd:sequence>
			</xsd:restriction>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  CancelRxResponse  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="CancelRxResponse">
		<xsd:annotation>
			<xsd:documentation>This transaction is used to notify the pharmacy that a previously sent prescription should be canceled and not filled.  </xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:restriction base="script:SCRIPTResponse">
				<xsd:sequence>
					<xsd:element name="MessageRequestCode" type="ecl:LTCLevelOfChangeCode" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ReturnReceipt" type="datatypes:an1..3" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="RequestReferenceNumber" type="datatypes:an1..35" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ChangeOfPrescriptionStatusFlag" type="ecl:ChangeOfPrescriptionStatusCode" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Response" type="script:CancellRxResponseType">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="BenefitsCoordination" type="structures:BaseBenefitsCoordination" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Facility" type="structures:Facility" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Patient" type="structures:PatientFullType" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Pharmacy" type="structures:Pharmacy" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Prescriber" type="structures:PrescriberGeneralChoice" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Observation" type="structures:Observation" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Supervisor" type="structures:SupervisorType" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="MedicationDispensed" type="structures:Medication" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="MedicationDispensedAdministered" type="structures:Medication" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="MedicationPrescribed" type="structures:Medication" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="MedicationResponse" type="structures:RefillResponseReplacedMedication" minOccurs="0" maxOccurs="0"/>
				</xsd:sequence>
			</xsd:restriction>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  CancellRxResponseType  <<choice>>  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="CancellRxResponseType">
		<xsd:complexContent>
			<xsd:restriction base="script:ResponseAbstractType">
				<xsd:choice>
					<xsd:element name="Approved" type="script:ApprovedWithoutReasonType"/>
					<xsd:element name="Denied" type="script:DeniedTransferredType"/>
					<xsd:element name="DeniedNewPrescriptionToFollow" type="datatypes:NoteType" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>Note the DeniedNewPrescriptionToFollow response will be sunsetted in a future version. DeniedNewPrescriptionToFollow response is not to be sent in a RxRenewalResponse for this version of SCRIPT (and above). However, DeniedNewPrescriptionToFollow response could be received in a RxRenewalResponse that was translated from a previous version of SCRIPT for backward compatibility. DeniedNewPrescriptionToFollow response only exists for entities that need to map this version to a previous version of SCRIPT that does not support a Replace. See the SCRIPT Implementation Guide for more information.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ApprovedWithChanges" type="script:ApprovedAbstractType" minOccurs="0" maxOccurs="0"/>
					<xsd:element name="Replace" type="datatypes:NoteType" minOccurs="0" maxOccurs="0"/>
				</xsd:choice>
			</xsd:restriction>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  DeniedAbstractType  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="DeniedAbstractType">
		<xsd:sequence>
			<xsd:element name="ReasonCode" type="ecl:ReasonCode" maxOccurs="10"/>
			<xsd:element name="ReferenceNumber" type="datatypes:an1..35" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>Transaction Key. Used in conjunction with same field described above in the RequestReferenceNumber. The Mailbox may return the positional key of the specific piece of mail within their files.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="DenialReason" type="datatypes:an" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>A DenialReason response must be accompanied by the ReasonCode or DenialReason explanation, or both.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Pharmacy" type="structures:MandatoryPharmacy" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  DeniedNewRxToFollowAbstractType  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="DeniedNewRxToFollowAbstractType">
		<xsd:sequence>
			<xsd:element name="DenialReasonCode" type="ecl:ReasonCode" maxOccurs="10">
				<xsd:annotation>
					<xsd:documentation>A DenialReason or DeniedTransferredType response must be accompanied by the ReasonCode or DenialReason explanation, or both.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="ReferenceNumber" type="datatypes:an1..35" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>Transaction Key. Used in conjunction with same field described above in the RequestReferenceNumber. The Mailbox may return the positional key of the specific piece of mail within their files.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="DenialReason" type="datatypes:an" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>A DenialReason response must be accompanied by the ReasonCode or DenialReason explanation, or both.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  DeniedNewRxToFollowType  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="DeniedNewRxToFollowType">
		<xsd:sequence>
			<xsd:element name="DenialReasonCode" type="ecl:ReasonCode" maxOccurs="10">
				<xsd:annotation>
					<xsd:documentation>A DenialReason or DeniedTransferredType response must be accompanied by the ReasonCode or DenialReason explanation, or both.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="ReferenceNumber" type="datatypes:an1..35" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>Transaction Key. Used in conjunction with same field described above in the RequestReferenceNumber. The Mailbox may return the positional key of the specific piece of mail within their files.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="DenialReason" type="datatypes:an" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>A DenialReason response must be accompanied by the ReasonCode or DenialReason explanation, or both.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  DeniedTransferredResponseType  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="DeniedTransferredResponseType">
		<xsd:complexContent>
			<xsd:restriction base="script:DeniedAbstractType">
				<xsd:sequence>
					<xsd:element name="ReasonCode" type="ecl:ReasonCode17" maxOccurs="10"/>
					<xsd:element name="ReferenceNumber" type="datatypes:an1..35" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>Transaction Key. Used in conjunction with same field described above in the RequestReferenceNumber. The Mailbox may return the positional key of the specific piece of mail within their files.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="DenialReason" type="datatypes:an" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>A DenialReason or DeniedTransferredType response must be accompanied by the ReasonCode or DenialReason explanation, or both.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Pharmacy" type="structures:MandatoryPharmacy" minOccurs="0" maxOccurs="0"/>
				</xsd:sequence>
			</xsd:restriction>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  DeniedTransferredType  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="DeniedTransferredType">
		<xsd:complexContent>
			<xsd:restriction base="script:DeniedAbstractType">
				<xsd:sequence>
					<xsd:element name="ReasonCode" type="ecl:ReasonCode3" maxOccurs="10"/>
					<xsd:element name="ReferenceNumber" type="datatypes:an1..35" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>Transaction Key. Used in conjunction with same field described above in the RequestReferenceNumber. The Mailbox may return the positional key of the specific piece of mail within their files.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="DenialReason" type="datatypes:an" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>A DenialReason or DeniedTransferredType response must be accompanied by the ReasonCode or DenialReason explanation, or both.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Pharmacy" type="structures:MandatoryPharmacy" minOccurs="0"/>
				</xsd:sequence>
			</xsd:restriction>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  DeniedTransferredTypeForTxRx  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="DeniedTransferredTypeForTxRx">
		<xsd:complexContent>
			<xsd:restriction base="script:DeniedAbstractType">
				<xsd:sequence>
					<xsd:element name="ReasonCode" type="ecl:ReasonCode3" maxOccurs="10"/>
					<xsd:element name="ReferenceNumber" type="datatypes:an1..35" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>Transaction Key. Used in conjunction with same field described above in the RequestReferenceNumber. The Mailbox may return the positional key of the specific piece of mail within their files.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="DenialReason" type="datatypes:an" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>A DenialReason or DeniedTransferredType response must be accompanied by the ReasonCode or DenialReason explanation, or both.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Pharmacy" type="structures:MandatoryPharmacy" minOccurs="0" maxOccurs="0"/>
				</xsd:sequence>
			</xsd:restriction>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  DrugAdministration  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="DrugAdministration">
		<xsd:annotation>
			<xsd:documentation>This transaction is used by prescribers/care facilities to communicate drug administration events to the patient’s pharmacy or other entity</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:restriction base="script:SCRIPTRequest">
				<xsd:sequence>
					<xsd:element name="MessageRequestCode" type="ecl:MessageFunctionCode" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ReturnReceipt" type="datatypes:an1..3" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="RequestReferenceNumber" type="datatypes:an1..35" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="FollowUpRequest" type="datatypes:n1..1" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ChangeOfPrescriptionStatusFlag" type="ecl:ChangeOfPrescriptionStatusCode" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="BenefitsCoordination" type="structures:BaseBenefitsCoordination" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="DiagnosisGeneral" type="structures:DiagnosisGeneral" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Facility" type="structures:Facility" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="FillStatus" type="structures:FillStatus" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Patient" type="structures:PatientType"/>
					<xsd:element name="Pharmacy" type="structures:MandatoryPharmacy" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Prescriber" type="structures:PrescriberChoice"/>
					<xsd:element name="DrugAdministrationRequest" type="script:DrugAdministrationRequest">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Observation" type="structures:Observation" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="MedicationDispensed" type="structures:PrescribedMedication" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="MedicationPrescribed" type="structures:DrugAdministrationMedication">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="MedicationRequested" type="structures:PrescribedMedication" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Supervisor" type="structures:SupervisorType" minOccurs="0"/>
					<xsd:element name="RequestedDates" type="datatypes:DateRange" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ProhibitRefillRequest" type="xsd:boolean" minOccurs="0" maxOccurs="0"/>
					<xsd:element name="ChangeReasonText" type="datatypes:an1..260" minOccurs="0" maxOccurs="0"/>
				</xsd:sequence>
			</xsd:restriction>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  DrugAdministrationRequest  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="DrugAdministrationRequest">
		<xsd:sequence>
			<xsd:choice>
				<xsd:element name="IndefiniteSuspension" type="script:IndefiniteSuspension">
					<xsd:annotation>
						<xsd:documentation>value IS</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="FixedLengthSuspension" type="script:FixedLengthSuspension">
					<xsd:annotation>
						<xsd:documentation>value FS</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="ResumeAdministration" type="script:ResumeAdministration">
					<xsd:annotation>
						<xsd:documentation>value RA</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="CancelSuspension" type="xsd:anySimpleType">
					<xsd:annotation>
						<xsd:documentation>value CS</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
			</xsd:choice>
			<xsd:element name="DrugAdminReasonCode" type="ecl:DrugAdminReasonCode" minOccurs="0"/>
			<xsd:element name="DrugAdminReasonText" type="datatypes:an1..100" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  FixedLengthSuspension  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="FixedLengthSuspension">
		<xsd:sequence>
			<xsd:element name="SuspendDateTime" type="datatypes:UtcDateType">
				<xsd:annotation>
					<xsd:documentation>Value SD.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="ResumeDateTime" type="datatypes:UtcDateType">
				<xsd:annotation>
					<xsd:documentation>Value RD.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="TimeZone" type="datatypes:TimeZone" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  IndefiniteSuspension  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="IndefiniteSuspension">
		<xsd:sequence>
			<xsd:element name="SuspendDateTime" type="datatypes:UtcDateType">
				<xsd:annotation>
					<xsd:documentation>Value SD.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="TimeZone" type="datatypes:TimeZone" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  NewRx  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="NewRx">
		<xsd:annotation>
			<xsd:documentation>This transaction is a request for a new prescription and is sent from the prescriber to the pharmacy.</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:restriction base="script:SCRIPTRequest">
				<xsd:sequence>
					<xsd:element name="MessageRequestCode" type="ecl:LTCLevelOfChangeCode" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ReturnReceipt" type="datatypes:an1..3" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="RequestReferenceNumber" type="datatypes:an1..35" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="FollowUpRequest" type="datatypes:n1..1" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ChangeOfPrescriptionStatusFlag" type="ecl:ChangeOfPrescriptionStatusCode" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="BenefitsCoordination" type="structures:BenefitsCoordinationRestricted" minOccurs="0" maxOccurs="3">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="DiagnosisGeneral" type="structures:DiagnosisGeneral" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Facility" type="structures:Facility" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="FillStatus" type="structures:FillStatus" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Patient" type="structures:PatientMandatoryAddressType"/>
					<xsd:element name="Pharmacy" type="structures:MandatoryPharmacy" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Prescriber" type="structures:MandatoryPrescriberChoice"/>
					<xsd:element name="DispensingRequestCode" type="ecl:DispensingRequestCode" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="DrugAdministrationRequest" type="script:DrugAdministrationRequest" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Observation" type="structures:Observation" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="MedicationDispensed" type="structures:PrescribedMedication" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="MedicationPrescribed" type="structures:NewRxPrescribedMedication">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="MedicationRequested" type="structures:PrescribedMedication" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Supervisor" type="structures:SupervisorMandatoryAddressType" minOccurs="0"/>
					<xsd:element name="RequestedDates" type="datatypes:DateRange" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ProhibitRefillRequest" type="xsd:boolean" minOccurs="0"/>
					<xsd:element name="ChangeReasonText" type="datatypes:an1..260" minOccurs="0" maxOccurs="0"/>
				</xsd:sequence>
			</xsd:restriction>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  NewRxRequest  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="NewRxRequest">
		<xsd:annotation>
			<xsd:documentation>The NewRxRequest provides the mechanism for a pharmacy to request a new prescription.  If the new prescription request is approved, the NCPDP NewRx transaction will be sent as a follow-up transaction. The NewRx must not be contained in the NewRxResponseDenied.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="MessageRequestCode" type="ecl:MessageFunctionCode" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="ReturnReceipt" type="datatypes:an1..3" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="RequestReferenceNumber" type="datatypes:an1..35" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="FollowUpRequest" type="datatypes:n1..1" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="ChangeOfPrescriptionStatusFlag" type="ecl:ChangeOfPrescriptionStatusCode" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="BenefitsCoordination" type="structures:BaseBenefitsCoordination" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="DiagnosisGeneral" type="structures:DiagnosisGeneral" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Facility" type="structures:Facility" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="FillStatus" type="structures:FillStatus" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Patient" type="structures:PatientType"/>
			<xsd:element name="Pharmacy" type="structures:MandatoryAddressPharmacy">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Prescriber" type="structures:MandatoryPrescriberChoice"/>
			<xsd:element name="DrugAdministrationRequest" type="script:DrugAdministrationRequest" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Observation" type="structures:Observation" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="MedicationDispensed" type="structures:Medication" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="MedicationPrescribed" type="structures:Medication" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="MedicationRequested" type="structures:NewRxRequestMedication">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Supervisor" type="structures:SupervisorOptionalType" minOccurs="0" maxOccurs="0"/>
			<xsd:element name="RequestedDates" type="datatypes:DateRange" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="ProhibitRefillRequest" type="xsd:boolean" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="ChangeReasonText" type="datatypes:an1..260" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Note" type="datatypes:an1..210" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  NewRxResponseDenied  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="NewRxResponseDenied">
		<xsd:annotation>
			<xsd:documentation>The NewRxResponseDenied provides a mechanism for the prescriber to deny the new prescription request.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="ReturnReceipt" type="datatypes:an1..3" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="RequestReferenceNumber" type="datatypes:an1..35" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Response" type="script:NewRxResponseDeniedType">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Facility" type="structures:Facility" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Patient" type="structures:PatientType">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Pharmacy" type="structures:MandatoryAddressPharmacy">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Prescriber" type="structures:MandatoryPrescriberChoice">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="MedicationRequested" type="structures:NewRxRequestMedication">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Note" type="datatypes:an1..210" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  NewRxResponseDeniedType  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="NewRxResponseDeniedType">
		<xsd:complexContent>
			<xsd:restriction base="script:DeniedAbstractType">
				<xsd:sequence>
					<xsd:element name="ReasonCode" type="ecl:ReasonCode9" maxOccurs="10"/>
					<xsd:element name="ReferenceNumber" type="datatypes:an1..35" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>Transaction Key. Used in conjunction with same field described above in the RequestReferenceNumber. The Mailbox may return the positional key of the specific piece of mail within their files.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="DenialReason" type="datatypes:an" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>A DenialReason response must be accompanied by the ReasonCode or DenialReason explanation, or both.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Pharmacy" type="structures:MandatoryPharmacy" minOccurs="0" maxOccurs="0"/>
				</xsd:sequence>
			</xsd:restriction>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  PAAppealRequest  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="PAAppealRequest">
		<xsd:complexContent>
			<xsd:extension base="script:PARequestAbstract">
				<xsd:sequence>
					<xsd:element name="Attachment" type="structures:AttachmentWithControlNumber" minOccurs="0"/>
					<xsd:element name="Request" type="pa-structures:PAAppealRequestType"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  PAAppealResponse  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="PAAppealResponse">
		<xsd:complexContent>
			<xsd:extension base="script:PAResponseAbstract">
				<xsd:sequence>
					<xsd:element name="Attachment" type="structures:AttachmentWithControlNumber" minOccurs="0"/>
					<xsd:element name="Response" type="pa-structures:PAResponseStructureForAppeal"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  PACancelRequest  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="PACancelRequest">
		<xsd:complexContent>
			<xsd:extension base="script:PARequestAbstract">
				<xsd:sequence>
					<xsd:element name="Request" type="pa-structures:PACancelRequestStructure"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  PACancelResponse  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="PACancelResponse">
		<xsd:sequence>
			<xsd:element name="RequestReferenceNumber" type="datatypes:an1..35" minOccurs="0"/>
			<xsd:element name="PAReferenceID" type="datatypes:an1..35"/>
			<xsd:element name="Response" type="pa-structures:PACancelResponseStructure"/>
		</xsd:sequence>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  PACommon  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="PACommon" abstract="true">
		<xsd:sequence>
			<xsd:element name="RequestReferenceNumber" type="datatypes:an1..35" minOccurs="0"/>
			<xsd:element name="PAReferenceID" type="datatypes:an1..35"/>
			<xsd:element name="BenefitsCoordination" type="structures:BenefitsCoordinationRestricted" minOccurs="0" maxOccurs="3">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Patient" type="structures:PatientMandatoryAddressType"/>
			<xsd:element name="Pharmacy" type="structures:MandatoryPharmacy" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Prescriber" type="structures:MandatoryPrescriberChoice"/>
			<xsd:element name="MedicationPrescribed" type="structures:PAPrescribedMedication">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Facility" type="structures:Facility" minOccurs="0"/>
			<xsd:element name="Supervisor" type="structures:SupervisorOptionalType" minOccurs="0"/>
			<xsd:element name="Provider" type="structures:Provider" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  PAInitiationRequest  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="PAInitiationRequest">
		<xsd:complexContent>
			<xsd:extension base="script:PARequestAbstract"/>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  PAInitiationResponse  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="PAInitiationResponse">
		<xsd:complexContent>
			<xsd:extension base="script:PAResponseAbstract">
				<xsd:sequence>
					<xsd:element name="Response" type="pa-structures:PAResponseStructureRestricted"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  PARequest  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="PARequest">
		<xsd:complexContent>
			<xsd:extension base="script:PARequestAbstract">
				<xsd:sequence>
					<xsd:element name="Attachment" type="structures:AttachmentWithControlNumber" minOccurs="0"/>
					<xsd:element name="Request" type="pa-structures:PAModelType"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  PARequestAbstract  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="PARequestAbstract" abstract="true">
		<xsd:complexContent>
			<xsd:extension base="script:PACommon"/>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  PAResponse  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="PAResponse">
		<xsd:complexContent>
			<xsd:extension base="script:PAResponseAbstract">
				<xsd:sequence>
					<xsd:element name="Attachment" type="structures:AttachmentWithControlNumber" minOccurs="0"/>
					<xsd:element name="Response" type="pa-structures:PAResponseStructureCommon"/>
				</xsd:sequence>
			</xsd:extension>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  PAResponseAbstract  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="PAResponseAbstract" abstract="true">
		<xsd:complexContent>
			<xsd:extension base="script:PACommon"/>
		</xsd:complexContent>
	</xsd:complexType>
	<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
	<!--  BenefitRequest - Performs RFS and PMBC -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="BenefitRequest">
		<xsd:annotation>
			<xsd:documentation>Patient Medication Benefit Check request. This transaction is sent from the prescriber to the PBM/Payer to  determine whether a specified drug is on formulary, what coverage factors apply, and the estimated patient costs.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="BenefitCheckFormularyLists" type="structures:BenefitCheckFormularyLists">
				<xsd:annotation>
					<xsd:documentation>For Formulary List IDs</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="BenefitsCoordination" type="structures:BenefitsCoordinationBenefitCheck">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="DrugDBSourceCode" type="ecl:DrugDBSourceCode">
				<xsd:annotation>
					<xsd:documentation>The Drug Database utilized by the EMR</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="MedicationRequestedInformation" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>For RFS, multiple medications are allowed. For PMBC, only one medication is allowed.</xsd:documentation>
				</xsd:annotation>
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element name="MedicationRequested" type="structures:PrescribedMedicationBenefitCheckDrugOnly">
							<xsd:annotation>
								<xsd:documentation>Primary Medication that is Priced</xsd:documentation>
							</xsd:annotation>
						</xsd:element>
						<xsd:element name="AlternativeMedicationInformation" minOccurs="0" maxOccurs="unbounded">
							<xsd:annotation>
								<xsd:documentation>Alternatives are only allowed for a single drug RFS request.</xsd:documentation>
							</xsd:annotation>
							<xsd:complexType>
								<xsd:sequence>
									<xsd:element name="AlternativeMedication" type="structures:PrescribedMedicationBenefitCheckDrugOnly"/>
								</xsd:sequence>
							</xsd:complexType>
						</xsd:element>
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
			<xsd:element name="Patient" type="structures:PatientMandatoryAddressType"/>
			<xsd:element name="Pharmacy" type="structures:OptionalPharmacy1" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>If Pharmacy not provided, RFS will be run</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Prescriber" type="structures:OptionalPrescriberChoice">
				<xsd:annotation>
					<xsd:documentation>See SCRIPT Request of Definition and Usage </xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
	<!--  BenefitResponse - Performs RFS and PMBC -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="BenefitResponse">
		<xsd:annotation>
			<xsd:documentation>This transaction houses the response for both a PMBC or a RFS</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="Response" type="script:BenefitResponseType">
				<xsd:annotation>
					<xsd:documentation>Used to indicate the status of the message.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="BenefitsCoordination" type="structures:BenefitsCoordinationBenefitCheck" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Patient" type="structures:PatientMandatoryAddressType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Pharmacy" type="structures:OptionalPharmacy1" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage </xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Prescriber" type="structures:MandatoryPrescriberChoice" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="MedicationRequestedInformation" maxOccurs="unbounded">
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element name="MedicationRequested" type="structures:PrescribedMedicationBenefitCheckDrugOnly">
							<xsd:annotation>
								<xsd:documentation>Primary Medication that is Priced</xsd:documentation>
							</xsd:annotation>
						</xsd:element>
						<xsd:element name="PatientSpecificPricingCoverages" minOccurs="0" maxOccurs="4">
							<xsd:complexType>
								<xsd:sequence>
									<xsd:element name="Pharmacy" type="structures:OptionalPharmacy2" minOccurs="0">
										<xsd:annotation>
											<xsd:documentation>Pricing for each pharmacy available</xsd:documentation>
										</xsd:annotation>
									</xsd:element>
									<xsd:element name="PricingCoverage" type="structures:PricingCoverageFactors">
										<xsd:annotation>
											<xsd:documentation>Contains PMBC pricing for original medication requested.</xsd:documentation>
										</xsd:annotation>
									</xsd:element>
								</xsd:sequence>
							</xsd:complexType>
						</xsd:element>
						<xsd:element name="RepresentativeFormularyCoverage" minOccurs="0" maxOccurs="1">
							<xsd:complexType>
								<xsd:sequence>
									<xsd:element name="CopayIDStatusCode" type="ecl:IDStatusCode" minOccurs="1"/>
									<xsd:element name="CoverageIDStatusCode" type="ecl:IDStatusCode" minOccurs="1"/>
                  <xsd:element name="AlternativeIDStatusCode" type="ecl:IDStatusCode" minOccurs="1"/>
									<xsd:element name="FormularyAndCoverage" type="structures:FormularyAndCoverage">
										<xsd:annotation>
											<xsd:documentation>Representative formulary and Coverage Info</xsd:documentation>
										</xsd:annotation>
									</xsd:element>
									<xsd:element name="RelativeCost" type="datatypes:an1..2" minOccurs="0"/>
									<xsd:element name="RelativeCostLimit" type="datatypes:an1..2" minOccurs="0"/>
									<xsd:element name="OTC" type="ecl:BooleanCode"/>
									<xsd:element name="Supply" type="ecl:BooleanCode"/>
									<xsd:element name="Generic" type="ecl:BooleanCode"/>
								</xsd:sequence>
							</xsd:complexType>
						</xsd:element>
						<xsd:element name="AlternativeMedicationInformation" minOccurs="0" maxOccurs="unbounded">
							<xsd:complexType>
								<xsd:sequence>
									<xsd:element name="AlternativePreferenceLevel" type="datatypes:an1..2" minOccurs="0"/>
									<xsd:element name="AlternativeMedication" type="structures:PrescribedMedicationBenefitCheckDrugOnly"/>
									<xsd:element name="PatientSpecificPricingCoverages" minOccurs="0" maxOccurs="4">
										<xsd:complexType>
											<xsd:sequence>
												<xsd:element name="Pharmacy" type="structures:OptionalPharmacy2" minOccurs="0">
													<xsd:annotation>
														<xsd:documentation>Pricing for each pharmacy available</xsd:documentation>
													</xsd:annotation>
												</xsd:element>
												<xsd:element name="PricingCoverage" type="structures:PricingCoverageFactors">
													<xsd:annotation>
														<xsd:documentation>Contains pricing for each alternative medication.</xsd:documentation>
													</xsd:annotation>
												</xsd:element>
											</xsd:sequence>
										</xsd:complexType>
									</xsd:element>
									<xsd:element name="RepresentativeFormularyCoverage" minOccurs="0" maxOccurs="1">
										<xsd:complexType>
											<xsd:sequence>
                        <xsd:element name="FormularyAndCoverage" type="structures:FormularyAndCoverage">
													<xsd:annotation>
														<xsd:documentation>Representative formulary and Coverage Info</xsd:documentation>
													</xsd:annotation>
												</xsd:element>
												<xsd:element name="RelativeCost" type="datatypes:an1..2" minOccurs="0"/>
												<xsd:element name="RelativeCostLimit" type="datatypes:an1..2" minOccurs="0"/>
												<xsd:element name="OTC" type="ecl:BooleanCode"/>
												<xsd:element name="Supply" type="ecl:BooleanCode"/>
												<xsd:element name="Generic" type="ecl:BooleanCode"/>
											</xsd:sequence>
										</xsd:complexType>
									</xsd:element>
								</xsd:sequence>
							</xsd:complexType>
						</xsd:element>
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  RefillResponseDeniedType  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="RefillResponseDeniedType">
		<xsd:complexContent>
			<xsd:restriction base="script:DeniedAbstractType">
				<xsd:sequence>
					<xsd:element name="ReasonCode" type="ecl:ReasonCode1" maxOccurs="10"/>
					<xsd:element name="ReferenceNumber" type="datatypes:an1..35" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>Transaction Key. Used in conjunction with same field described above in the RequestReferenceNumber. The Mailbox may return the positional key of the specific piece of mail within their files.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="DenialReason" type="datatypes:an" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>A DenialReason response must be accompanied by the ReasonCode or DenialReason explanation, or both.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Pharmacy" type="structures:MandatoryPharmacy" minOccurs="0" maxOccurs="0"/>
				</xsd:sequence>
			</xsd:restriction>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  RefillResponseType  <<choice>>  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="RefillResponseType">
		<xsd:annotation>
			<xsd:documentation>Used in RxRenewalResponse</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:restriction base="script:ResponseAbstractType">
				<xsd:choice>
					<xsd:element name="Approved" type="script:ApprovedWithoutReasonType"/>
					<xsd:element name="Denied" type="script:RefillResponseDeniedType"/>
					<xsd:element name="DeniedNewPrescriptionToFollow" type="datatypes:NoteType">
						<xsd:annotation>
							<xsd:documentation>Note the DeniedNewPrescriptionToFollow response will be sunsetted in a future version. DeniedNewPrescriptionToFollow response is not to be sent in a RxRenewalResponse for this version of SCRIPT (and above). However, DeniedNewPrescriptionToFollow response could be received in a RxRenewalResponse that was translated from a previous version of SCRIPT for backward compatibility. DeniedNewPrescriptionToFollow response only exists for entities that need to map this version to a previous version of SCRIPT that does not support a Replace. See the SCRIPT Implementation Guide for more information.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ApprovedWithChanges" type="script:ApprovedWithoutReasonType"/>
					<xsd:element name="Replace" type="datatypes:NoteType"/>
				</xsd:choice>
			</xsd:restriction>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  ResponseAbstractType  <<choice>>  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="ResponseAbstractType">
		<xsd:choice>
			<xsd:element name="Approved" type="script:ApprovedAbstractType" minOccurs="0"/>
			<xsd:element name="Denied" type="script:DeniedAbstractType" minOccurs="0"/>
			<xsd:element name="DeniedNewPrescriptionToFollow" type="datatypes:NoteType" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>Note the DeniedNewPrescriptionToFollow response will be sunsetted in a future version. DeniedNewPrescriptionToFollow response is not to be sent in a RxRenewalResponse for this version of SCRIPT (and above). However, DeniedNewPrescriptionToFollow response could be received in a RxRenewalResponse that was translated from a previous version of SCRIPT for backward compatibility. DeniedNewPrescriptionToFollow response only exists for entities that need to map this version to a previous version of SCRIPT that does not support a Replace. See the SCRIPT Implementation Guide for more information.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="ApprovedWithChanges" type="script:ApprovedAbstractType" minOccurs="0"/>
			<xsd:element name="Replace" type="datatypes:NoteType" minOccurs="0"/>
		</xsd:choice>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  ResumeAdministration  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="ResumeAdministration">
		<xsd:sequence>
			<xsd:element name="ResumeDateTime" type="datatypes:UtcDateType"/>
			<xsd:element name="TimeZone" type="datatypes:TimeZone" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  Resupply  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="Resupply">
		<xsd:annotation>
			<xsd:documentation>This transaction is used to send a renewal request from a facility to a pharmacy.</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:restriction base="script:SCRIPTRequest">
				<xsd:sequence>
					<xsd:element name="MessageRequestCode" type="ecl:MessageFunctionCode" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ReturnReceipt" type="datatypes:an1..3" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="RequestReferenceNumber" type="datatypes:an1..35" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="FollowUpRequest" type="datatypes:n1..1" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ChangeOfPrescriptionStatusFlag" type="ecl:ChangeOfPrescriptionStatusCode" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="BenefitsCoordination" type="structures:BenefitsCoordination" minOccurs="0" maxOccurs="3">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="DiagnosisGeneral" type="structures:DiagnosisGeneral" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Facility" type="structures:Facility" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="FillStatus" type="structures:FillStatus" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Patient" type="structures:PatientType"/>
					<xsd:element name="Pharmacy" type="structures:MandatoryAddressPharmacy">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Prescriber" type="structures:PrescriberChoice"/>
					<xsd:element name="DrugAdministrationRequest" type="script:DrugAdministrationRequest" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Observation" type="structures:Observation" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="MedicationDispensed" type="structures:ResupplyMedicationForDispensed" minOccurs="0"/>
					<xsd:element name="MedicationPrescribed" type="structures:ResupplyMedication">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="MedicationRequested" type="structures:ResupplyMedication" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Supervisor" type="structures:SupervisorType" minOccurs="0"/>
					<xsd:element name="RequestedDates" type="datatypes:DateRange" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ProhibitRefillRequest" type="xsd:boolean" minOccurs="0" maxOccurs="0"/>
					<xsd:element name="ChangeReasonText" type="datatypes:an1..260" minOccurs="0" maxOccurs="0"/>
				</xsd:sequence>
			</xsd:restriction>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  RxChangeRequest  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="RxChangeRequest">
		<xsd:annotation>
			<xsd:documentation>This transaction is sent from a pharmacy to a prescriber to request a change on a new prescription, for example, to request generic substitution. It may request a change on a fillable prescription. It may also be utilized to request a prescriber to review the drug requested, and obtain a Prior Authorization from the payer for the prescription.</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:restriction base="script:SCRIPTRequest">
				<xsd:sequence>
					<xsd:element name="MessageRequestCode" type="ecl:RxChangeCode">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ReturnReceipt" type="datatypes:an1..3" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="RequestReferenceNumber" type="datatypes:an1..35" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="FollowUpRequest" type="datatypes:n1..1" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ChangeOfPrescriptionStatusFlag" type="ecl:ChangeOfPrescriptionStatusCode" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="BenefitsCoordination" type="structures:BenefitsCoordination" minOccurs="0" maxOccurs="3">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="DiagnosisGeneral" type="structures:DiagnosisGeneral" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Facility" type="structures:Facility" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="FillStatus" type="structures:FillStatus" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Patient" type="structures:PatientType"/>
					<xsd:element name="Pharmacy" type="structures:MandatoryPharmacy">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Prescriber" type="structures:PrescriberChoice"/>
					<xsd:element name="DispensingRequestCode" type="ecl:DispensingRequestCode" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="DrugAdministrationRequest" type="script:DrugAdministrationRequest" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Observation" type="structures:Observation" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="MedicationDispensed" type="structures:PrescribedMedication" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="MedicationPrescribed" type="structures:PrescribedMedication">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="MedicationRequested" type="structures:RequestedMedication" minOccurs="0" maxOccurs="9">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Supervisor" type="structures:SupervisorType" minOccurs="0"/>
					<xsd:element name="RequestedDates" type="datatypes:DateRange" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ProhibitRefillRequest" type="xsd:boolean" minOccurs="0" maxOccurs="0"/>
					<xsd:element name="ChangeReasonText" type="datatypes:an1..260" minOccurs="0"/>
				</xsd:sequence>
			</xsd:restriction>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  RxChangeResponse  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="RxChangeResponse">
		<xsd:annotation>
			<xsd:documentation>This transaction is sent from the prescriber to the pharmacy in response to a request for a change of a new prescription or a fillable prescription. It may also be sent from the prescriber to the pharmacy in response to a request for a prior authorization on a prescription.</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:restriction base="script:SCRIPTResponse">
				<xsd:sequence>
					<xsd:element name="MessageRequestCode" type="ecl:RxChangeCode">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ReturnReceipt" type="datatypes:an1..3" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="RequestReferenceNumber" type="datatypes:an1..35" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ChangeOfPrescriptionStatusFlag" type="ecl:ChangeOfPrescriptionStatusCode" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Response" type="script:RxChangeResponseType">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="BenefitsCoordination" type="structures:BaseBenefitsCoordination" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Facility" type="structures:Facility" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Patient" type="structures:PatientType">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Pharmacy" type="structures:MandatoryPharmacy">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Prescriber" type="structures:PrescriberChoice">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Observation" type="structures:Observation" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Supervisor" type="structures:SupervisorType" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="MedicationDispensedAdministered" type="structures:Medication" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="MedicationPrescribed" type="structures:RxChangePrescribedMedication" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="MedicationDispensed" type="structures:Medication" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="MedicationResponse" type="structures:RefillResponseReplacedMedication" minOccurs="0" maxOccurs="0"/>
				</xsd:sequence>
			</xsd:restriction>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  RxChangeResponseDeniedType  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="RxChangeResponseDeniedType">
		<xsd:complexContent>
			<xsd:restriction base="script:DeniedAbstractType">
				<xsd:sequence>
					<xsd:element name="ReasonCode" type="ecl:ReasonCode2" maxOccurs="10"/>
					<xsd:element name="ReferenceNumber" type="datatypes:an1..35" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>Transaction Key. Used in conjunction with same field described above in the RequestReferenceNumber. The Mailbox may return the positional key of the specific piece of mail within their files.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="DenialReason" type="datatypes:an" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>A DenialReason response must be accompanied by the ReasonCode or DenialReason explanation, or both.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Pharmacy" type="structures:MandatoryPharmacy" minOccurs="0" maxOccurs="0"/>
				</xsd:sequence>
			</xsd:restriction>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  RxChangeResponseType  <<choice>>  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="RxChangeResponseType">
		<xsd:complexContent>
			<xsd:restriction base="script:ResponseAbstractType">
				<xsd:choice>
					<xsd:element name="Approved" type="script:ApprovedWithoutReasonType"/>
					<xsd:element name="Denied" type="script:RxChangeResponseDeniedType"/>
					<xsd:element name="DeniedNewPrescriptionToFollow" type="datatypes:NoteType" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>Note the DeniedNewPrescriptionToFollow response will be sunsetted in a future version. DeniedNewPrescriptionToFollow response is not to be sent in a RxRenewalResponse for this version of SCRIPT (and above). However, DeniedNewPrescriptionToFollow response could be received in a RxRenewalResponse that was translated from a previous version of SCRIPT for backward compatibility. DeniedNewPrescriptionToFollow response only exists for entities that need to map this version to a previous version of SCRIPT that does not support a Replace. See the SCRIPT Implementation Guide for more information.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ApprovedWithChanges" type="script:ApprovedWithoutReasonType"/>
					<xsd:element name="Replace" type="datatypes:NoteType" minOccurs="0" maxOccurs="0"/>
				</xsd:choice>
			</xsd:restriction>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  RxFill  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="RxFill">
		<xsd:annotation>
			<xsd:documentation>This transaction is sent from the pharmacy to the prescriber to notify the prescriber of the dispensing status of a prescription.</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:restriction base="script:SCRIPTRequest">
				<xsd:sequence>
					<xsd:element name="MessageRequestCode" type="ecl:MessageFunctionCode" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ReturnReceipt" type="datatypes:an1..3" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="RequestReferenceNumber" type="datatypes:an1..35" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="FollowUpRequest" type="datatypes:n1..1" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ChangeOfPrescriptionStatusFlag" type="ecl:ChangeOfPrescriptionStatusCode" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="BenefitsCoordination" type="structures:BaseBenefitsCoordination" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="DiagnosisGeneral" type="structures:DiagnosisGeneral" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Facility" type="structures:Facility" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="FillStatus" type="structures:FillStatus">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Patient" type="structures:PatientType"/>
					<xsd:element name="Pharmacy" type="structures:MandatoryAddressPharmacy">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Prescriber" type="structures:PrescriberGeneralChoice"/>
					<xsd:element name="DispensingRequestCode" type="ecl:DispensingRequestCode" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="DrugAdministrationRequest" type="script:DrugAdministrationRequest" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Observation" type="structures:Observation" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="MedicationDispensed" type="structures:RxFillDispensedMedication" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="MedicationPrescribed" type="structures:PrescribedMedicationForRxFill" minOccurs="0"/>
					<xsd:element name="MedicationRequested" type="structures:PrescribedMedication" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Supervisor" type="structures:SupervisorOptionalType" minOccurs="0"/>
					<xsd:element name="RequestedDates" type="datatypes:DateRange" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ProhibitRefillRequest" type="xsd:boolean" minOccurs="0" maxOccurs="0"/>
					<xsd:element name="ChangeReasonText" type="datatypes:an1..260" minOccurs="0" maxOccurs="0"/>
				</xsd:sequence>
			</xsd:restriction>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  RxFillIndicatorChange  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="RxFillIndicatorChange">
		<xsd:annotation>
			<xsd:documentation>This transaction is used to notify the pharmacy of a modification to the RxfillIndicator which was previously sent on a prescription.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="ReturnReceipt" type="datatypes:an1..3" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="RequestReferenceNumber" type="datatypes:an1..35" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="RxFillIndicator" type="ecl:RxFillIndicatorType"/>
		</xsd:sequence>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  RxHistoryApprovedType  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="RxHistoryApprovedType">
		<xsd:complexContent>
			<xsd:restriction base="script:ApprovedAbstractType">
				<xsd:sequence>
					<xsd:element name="ReasonCode" type="ecl:ReasonCode5" minOccurs="0" maxOccurs="10">
						<xsd:annotation>
							<xsd:documentation>Approved may contain a ReasonCode.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ReferenceNumber" type="datatypes:an1..35" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>Transaction Key. Used in conjunction with same field described above in the RequestReferenceNumber. The Mailbox may return the positional key of the specific piece of mail within their files.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Note" type="datatypes:an1..70" minOccurs="0"/>
				</xsd:sequence>
			</xsd:restriction>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  RxHistoryDeniedType  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="RxHistoryDeniedType">
		<xsd:complexContent>
			<xsd:restriction base="script:DeniedAbstractType">
				<xsd:sequence>
					<xsd:element name="ReasonCode" type="ecl:ReasonCode6" maxOccurs="10"/>
					<xsd:element name="ReferenceNumber" type="datatypes:an1..35" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>Transaction Key. Used in conjunction with same field described above in the RequestReferenceNumber. The Mailbox may return the positional key of the specific piece of mail within their files.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="DenialReason" type="datatypes:an" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>A DenialReason response must be accompanied by the ReasonCode or DenialReason explanation, or both.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Pharmacy" type="structures:MandatoryPharmacy" minOccurs="0" maxOccurs="0"/>
				</xsd:sequence>
			</xsd:restriction>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  RxHistoryRequest  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="RxHistoryRequest">
		<xsd:annotation>
			<xsd:documentation>This transaction is sent from an entity to an entity to request the medication history of a patient.  </xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:restriction base="script:SCRIPTRequest">
				<xsd:sequence>
					<xsd:element name="MessageRequestCode" type="ecl:MessageFunctionCode" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ReturnReceipt" type="datatypes:an1..3" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="RequestReferenceNumber" type="datatypes:an1..35" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="FollowUpRequest" type="datatypes:n1..1" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ChangeOfPrescriptionStatusFlag" type="ecl:ChangeOfPrescriptionStatusCode" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="BenefitsCoordination" type="structures:RxHistoryBenefitsCoordination" maxOccurs="3">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="DiagnosisGeneral" type="structures:DiagnosisGeneral" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Facility" type="structures:Facility" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="FillStatus" type="structures:FillStatus" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Patient" type="structures:PatientType"/>
					<xsd:element name="Pharmacy" type="structures:OptionalPharmacy" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>Segment is required if requestor or recipient is a pharmacy</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Prescriber" type="structures:OptionalPrescriberChoice" minOccurs="0"/>
					<xsd:element name="DrugAdministrationRequest" type="script:DrugAdministrationRequest" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Observation" type="structures:Observation" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="MedicationDispensed" type="structures:PrescribedMedication" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="MedicationPrescribed" type="structures:PrescribedMedication" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="MedicationRequested" type="structures:PrescribedMedication" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Supervisor" type="structures:SupervisorType" minOccurs="0" maxOccurs="0"/>
					<xsd:element name="RequestedDates" type="datatypes:DateRange">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ProhibitRefillRequest" type="xsd:boolean" minOccurs="0" maxOccurs="0"/>
					<xsd:element name="ChangeReasonText" type="datatypes:an1..260" minOccurs="0" maxOccurs="0"/>
				</xsd:sequence>
			</xsd:restriction>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  RxHistoryResponse  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="RxHistoryResponse">
		<xsd:annotation>
			<xsd:documentation>This response is sent from an entity to an entity to describe the patient’s medication history.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="MessageRequestCode" type="ecl:MessageFunctionCode" minOccurs="0" maxOccurs="0"/>
			<xsd:element name="ReturnReceipt" type="datatypes:an1..3" minOccurs="0" maxOccurs="0"/>
			<xsd:element name="RequestReferenceNumber" type="datatypes:an1..35" minOccurs="0" maxOccurs="0"/>
			<xsd:element name="ChangeOfPrescriptionStatusFlag" type="ecl:ChangeOfPrescriptionStatusCode" minOccurs="0" maxOccurs="0"/>
			<xsd:element name="Response" type="script:RxHistoryResponseType" minOccurs="0"/>
			<xsd:element name="BenefitsCoordination" type="structures:RxHistoryBenefitsCoordination" maxOccurs="3"/>
			<xsd:element name="Facility" type="structures:Facility" minOccurs="0" maxOccurs="0"/>
			<xsd:element name="Patient" type="structures:PatientType"/>
			<xsd:element name="Pharmacy" type="structures:OptionalPharmacy" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>Value P2. Segment is required if requestor or recipient is a pharmacy.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Prescriber" type="structures:HistoryPrescriberChoice" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>Value PC. Segment is required if requestor or recipient is a prescriber.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Observation" type="structures:Observation" minOccurs="0" maxOccurs="0"/>
			<xsd:element name="Supervisor" type="structures:SupervisorType" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>Value SU</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:choice minOccurs="0">
				<xsd:element name="MedicationDispensed" type="structures:HistoryDispensedMedication" maxOccurs="300">
					<xsd:annotation>
						<xsd:documentation>Value D</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="MedicationDispensedAdministered" type="structures:HistoryDispensedMedication" maxOccurs="300">
					<xsd:annotation>
						<xsd:documentation>Value A.  Only used in RxHistoryResponse</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
				<xsd:element name="MedicationPrescribed" type="structures:HistoryPrescribedMedication" maxOccurs="300">
					<xsd:annotation>
						<xsd:documentation>Value P.  At least one loop must contain 85 = Date Issued (Written Date). 	If  Filled or PartialFill, the medication prescribed may be sent as clarification. If NotFilled, the medication (dispensed) or (prescribed) is required, depending upon what the pharmacy has knowledge of.</xsd:documentation>
					</xsd:annotation>
				</xsd:element>
			</xsd:choice>
			<xsd:element name="RequestedDates" type="datatypes:DateRange">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  RxHistoryResponseType  <<choice>>  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="RxHistoryResponseType">
		<xsd:complexContent>
			<xsd:restriction base="script:ResponseAbstractType">
				<xsd:choice>
					<xsd:element name="Approved" type="script:RxHistoryApprovedType"/>
					<xsd:element name="Denied" type="script:RxHistoryDeniedType"/>
					<xsd:element name="DeniedNewPrescriptionToFollow" type="datatypes:NoteType" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>Note the DeniedNewPrescriptionToFollow response will be sunsetted in a future version. DeniedNewPrescriptionToFollow response is not to be sent in a RxRenewalResponse for this version of SCRIPT (and above). However, DeniedNewPrescriptionToFollow response could be received in a RxRenewalResponse that was translated from a previous version of SCRIPT for backward compatibility. DeniedNewPrescriptionToFollow response only exists for entities that need to map this version to a previous version of SCRIPT that does not support a Replace. See the SCRIPT Implementation Guide for more information.</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ApprovedWithChanges" type="script:ApprovedAbstractType" minOccurs="0" maxOccurs="0"/>
					<xsd:element name="Replace" type="datatypes:NoteType" minOccurs="0" maxOccurs="0"/>
				</xsd:choice>
			</xsd:restriction>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  RxRenewalRequest  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="RxRenewalRequest">
		<xsd:annotation>
			<xsd:documentation>This transaction is from the pharmacy to the prescriber requesting additional refills.</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:restriction base="script:SCRIPTRequest">
				<xsd:sequence>
					<xsd:element name="MessageRequestCode" type="ecl:MessageFunctionCode" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ReturnReceipt" type="datatypes:an1..3" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="RequestReferenceNumber" type="datatypes:an1..35" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="FollowUpRequest" type="datatypes:n1..1" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ChangeOfPrescriptionStatusFlag" type="ecl:ChangeOfPrescriptionStatusCode" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="BenefitsCoordination" type="structures:BenefitsCoordination" minOccurs="0" maxOccurs="3">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="DiagnosisGeneral" type="structures:DiagnosisGeneral" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Facility" type="structures:Facility" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="FillStatus" type="structures:FillStatus" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Patient" type="structures:PatientType"/>
					<xsd:element name="Pharmacy" type="structures:MandatoryAddressPharmacy">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Prescriber" type="structures:PrescriberChoice"/>
					<xsd:element name="DispensingRequestCode" type="ecl:DispensingRequestCode" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="DrugAdministrationRequest" type="script:DrugAdministrationRequest" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Observation" type="structures:Observation" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="MedicationDispensed" type="structures:RefillRequestDispensedMedication">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="MedicationPrescribed" type="structures:PrescribedMedication" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="MedicationRequested" type="structures:PrescribedMedication" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Supervisor" type="structures:SupervisorType" minOccurs="0"/>
					<xsd:element name="RequestedDates" type="datatypes:DateRange" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ProhibitRefillRequest" type="xsd:boolean" minOccurs="0" maxOccurs="0"/>
					<xsd:element name="ChangeReasonText" type="datatypes:an1..260" minOccurs="0" maxOccurs="0"/>
				</xsd:sequence>
			</xsd:restriction>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  RxRenewalResponse  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="RxRenewalResponse">
		<xsd:annotation>
			<xsd:documentation>This transaction is the response to a request for additional refills (RxRenewalRequest). The response may be accepted or denied. The response may be a new prescription (replace).</xsd:documentation>
		</xsd:annotation>
		<xsd:complexContent>
			<xsd:restriction base="script:SCRIPTResponse">
				<xsd:sequence>
					<xsd:element name="MessageRequestCode" type="ecl:MessageFunctionCode" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ReturnReceipt" type="datatypes:an1..3" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="RequestReferenceNumber" type="datatypes:an1..35" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="ChangeOfPrescriptionStatusFlag" type="ecl:ChangeOfPrescriptionStatusCode" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Response" type="script:RefillResponseType">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="BenefitsCoordination" type="structures:BaseBenefitsCoordination" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Facility" type="structures:Facility" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Patient" type="structures:PatientType">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Pharmacy" type="structures:Pharmacy">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Prescriber" type="structures:PrescriberChoice">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Observation" type="structures:Observation" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="Supervisor" type="structures:SupervisorType" minOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="MedicationDispensed" type="structures:RefillResponseDispensedMedication" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="MedicationPrescribed" type="structures:PrescribedMedication" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="MedicationDispensedAdministered" type="structures:Medication" minOccurs="0" maxOccurs="0">
						<xsd:annotation>
							<xsd:documentation>See SCRIPTResponse for Definition and Usage</xsd:documentation>
						</xsd:annotation>
					</xsd:element>
					<xsd:element name="MedicationResponse" type="structures:RefillResponseReplacedMedication"/>
				</xsd:sequence>
			</xsd:restriction>
		</xsd:complexContent>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  RxTransferConfirm  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="RxTransferConfirm">
		<xsd:annotation>
			<xsd:documentation>This transaction is used by the pharmacy receiving (originally requesting) the transfer to confirm that the transferred prescription has been received and the transfer is complete.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="MessageRequestCode" type="ecl:LTCLevelOfChangeCode" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="ReturnReceipt" type="datatypes:an1..3" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="RequestReferenceNumber" type="datatypes:an1..35" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="FollowUpRequest" type="datatypes:n1..1" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="ChangeOfPrescriptionStatusFlag" type="ecl:ChangeOfPrescriptionStatusCode" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="BenefitsCoordination" type="structures:BenefitsCoordinationRestricted" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="DiagnosisGeneral" type="structures:DiagnosisGeneral" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Facility" type="structures:Facility" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="FillStatus" type="structures:FillStatus" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Patient" type="structures:PatientMandatoryAddressType"/>
			<xsd:element name="Pharmacy" type="structures:PharmacyTransfer" minOccurs="2" maxOccurs="2"/>
			<xsd:element name="Prescriber" type="structures:MandatoryPrescriberChoice" minOccurs="0" maxOccurs="0"/>
			<xsd:element name="DispensingRequestCode" type="ecl:DispensingRequestCode" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="DrugAdministrationRequest" type="script:DrugAdministrationRequest" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Observation" type="structures:Observation" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="MedicationDispensed" type="structures:PrescribedMedication" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="MedicationPrescribed" type="structures:NewRxPrescribedMedication" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="MedicationRequested" type="structures:PrescribedMedication" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="RequestedDates" type="datatypes:DateRange" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="ProhibitRefillRequest" type="xsd:boolean" minOccurs="0" maxOccurs="0"/>
			<xsd:element name="ChangeReasonText" type="datatypes:an1..260" minOccurs="0" maxOccurs="0"/>
			<xsd:element name="Pharmacist" type="structures:Pharmacist"/>
			<xsd:element name="RxFillConfirmIndicator" type="ecl:BooleanCode">
				<xsd:annotation>
					<xsd:documentation>Indicates the transfer to pharmacy supports Fill Status transactions.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="TransferRequest" type="ecl:TransferRequestCode"/>
		</xsd:sequence>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  RxTransferRequest  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="RxTransferRequest">
		<xsd:annotation>
			<xsd:documentation>This transaction is used when one pharmacy is asking another pharmacy for a transfer of one or more prescriptions for a specific patient.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="MessageRequestCode" type="ecl:LTCLevelOfChangeCode" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="ReturnReceipt" type="datatypes:an1..3" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="RequestReferenceNumber" type="datatypes:an1..35" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="FollowUpRequest" type="datatypes:n1..1" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="ChangeOfPrescriptionStatusFlag" type="ecl:ChangeOfPrescriptionStatusCode" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="BenefitsCoordination" type="structures:BenefitsCoordinationRestricted" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="DiagnosisGeneral" type="structures:DiagnosisGeneral" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Facility" type="structures:Facility" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="FillStatus" type="structures:FillStatus" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Patient" type="structures:PatientMandatoryAddressType"/>
			<xsd:element name="Pharmacy" type="structures:PharmacyTransfer" minOccurs="2" maxOccurs="2"/>
			<xsd:element name="Prescriber" type="structures:MandatoryPrescriberChoice" minOccurs="0"/>
			<xsd:element name="DispensingRequestCode" type="ecl:DispensingRequestCode" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="DrugAdministrationRequest" type="script:DrugAdministrationRequest" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Observation" type="structures:Observation" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Supervisor" type="structures:SupervisorOptionalType" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>Value SU</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Pharmacist" type="structures:Pharmacist" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>The Pharmacist demographic information (name, telephone, etc.) contains the pharmacist requesting the transfer. It can be sent when required by regulation, or if desired.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="MedicationDispensed" type="structures:PrescribedMedication" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="MedicationPrescribed" type="structures:NewRxPrescribedMedication" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="MedicationTransferRequested" type="structures:TransferMedication" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>If TransferRequest is “SPECIFIC”, MedicationTransferRequested contains as much information is available to assist the transfer from pharmacy to determine which prescription, if possible is being requested for transfer. If multiple “SPECIFIC” prescriptions are to be transferred, but not “ALL” prescriptions, a separate RxTransferRequest must be sent for each specific prescription.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="RequestedDates" type="datatypes:DateRange" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="ProhibitRefillRequest" type="xsd:boolean" minOccurs="0" maxOccurs="0"/>
			<xsd:element name="ChangeReasonText" type="datatypes:an1..260" minOccurs="0" maxOccurs="0"/>
			<xsd:element name="TransferRequest" type="ecl:TransferRequestCode"/>
		</xsd:sequence>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  RxTransferResponse  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="RxTransferResponse">
		<xsd:annotation>
			<xsd:documentation>This transaction is the response from the prescription transfer request to complete the transfer.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="MessageRequestCode" type="ecl:MessageFunctionCode" minOccurs="0" maxOccurs="0"/>
			<xsd:element name="ReturnReceipt" type="datatypes:an1..3" minOccurs="0"/>
			<xsd:element name="RequestReferenceNumber" type="datatypes:an1..35" minOccurs="0"/>
			<xsd:element name="ChangeOfPrescriptionStatusFlag" type="ecl:ChangeOfPrescriptionStatusCode" minOccurs="0" maxOccurs="0"/>
			<xsd:element name="Response" type="script:TransferRxResponseType"/>
			<xsd:element name="BenefitsCoordination" type="structures:RxHistoryBenefitsCoordination" minOccurs="0" maxOccurs="3"/>
			<xsd:element name="Facility" type="structures:Facility" minOccurs="0" maxOccurs="0"/>
			<xsd:element name="Patient" type="structures:PatientMandatoryAddressType"/>
			<xsd:element name="Pharmacy" type="structures:PharmacyTransfer" minOccurs="2" maxOccurs="2"/>
			<xsd:element name="Prescriber" type="structures:HistoryPrescriberChoice" minOccurs="0" maxOccurs="0"/>
			<xsd:element name="Observation" type="structures:Observation" minOccurs="0" maxOccurs="0"/>
			<xsd:element name="Supervisor" type="structures:SupervisorType" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>Value SU</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="RequestedDates" type="datatypes:DateRange" minOccurs="0" maxOccurs="0">
				<xsd:annotation>
					<xsd:documentation>See SCRIPTRequest of Definition and Usage</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Pharmacist" type="structures:Pharmacist" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>If Pharmacist is used, it is to contain the transfer from pharmacist. Demographic information (name, telephone, etc.) can be sent on a denial if specific follow up is required by contacting a specific pharmacist.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="MedicationTransferred" minOccurs="0" maxOccurs="300">
				<xsd:annotation>
					<xsd:documentation>One RxTransferResponse transaction may contain 0 to 300 prescriptions that are being transferred. Within each prescription that is being transferred, multiple dispensings/fills may be reported (0 to 300 for consistency).</xsd:documentation>
				</xsd:annotation>
				<xsd:complexType>
					<xsd:sequence>
						<xsd:element name="MedicationDispensed" type="structures:TransferDispensedMedication" minOccurs="0" maxOccurs="300">
							<xsd:annotation>
								<xsd:documentation>Value D</xsd:documentation>
							</xsd:annotation>
						</xsd:element>
						<xsd:element name="MedicationPrescribed" type="structures:TransferResponseMedication"/>
						<xsd:element name="PrescriptionPreviouslyFilled" type="ecl:BooleanCode">
							<xsd:annotation>
								<xsd:documentation>If the prescription has been dispensed, the mandatory value is “Y” and MedicationDispensed is required. If the prescription has never been filled, the mandatory value is “N” and MedicationDispensed is not sent.</xsd:documentation>
							</xsd:annotation>
						</xsd:element>
						<xsd:element name="Attachment" type="structures:Attachment" minOccurs="0" maxOccurs="unbounded">
							<xsd:annotation>
								<xsd:documentation>Provides patient summary information when applicable</xsd:documentation>
							</xsd:annotation>
						</xsd:element>
					</xsd:sequence>
				</xsd:complexType>
			</xsd:element>
			<xsd:element name="TransferRequest" type="ecl:TransferRequestCode"/>
		</xsd:sequence>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  SCRIPTRequest  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="SCRIPTRequest" abstract="true">
		<xsd:sequence>
			<xsd:element name="MessageRequestCode" type="ecl:MessageFunctionCode" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>For Long Term Care (LTC) Medication Change Process (Prescriber initiated CHANGE Request,) the NEWRX and the CANCEL will use this field to indicate the level of the change.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="ReturnReceipt" type="datatypes:an1..3" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>If this field is submitted with 1 in the request, a Verify transaction is to be sent from the recipient at some time.
1 = Return Receipt Requested
all other values = no return receipt requested.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="RequestReferenceNumber" type="datatypes:an1..35" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>Transaction key. In some trading partner agreements utilizing a mailbox functionality, this field may contain the receiver's identification number for the transaction being returned. On the response to each GetMessage request, the response may contain the mailbox's key to the response. The requester can then, in subsequent GetMessage requests, put the key in this field. This may help the Mailbox retain the position within their files of which mail entry to return to the requester.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="FollowUpRequest" type="datatypes:n1..1" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>Indicator to allow pharmacies to tell prescribers that this is a follow-up RxRenewalRequest or Change Request transaction (when the prescriber has not responded to the first RxRenewalRequest or first Change Request transaction in a reasonable amount of time). The field is not sent on an original request.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="ChangeOfPrescriptionStatusFlag" type="ecl:ChangeOfPrescriptionStatusCode" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>Used when the prescriber wishes to notify the pharmacy to no longer continue dispensing any open refills on an active prescription or to cancel a prescription that has not yet been dispensed.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="BenefitsCoordination" type="structures:BaseBenefitsCoordination" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="DiagnosisGeneral" type="structures:DiagnosisGeneral" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>Element may be used only in the long-term care setting, where there are established processes supporting the sharing of diagnosis information between a resident’s facility and pharmacy. Note: The medication information enables communication of prescription-specific diagnosis information only—appropriate for use in new prescription messaging, but insufficient to support management of a resident’s full drug regimen. The intent is to convey the diagnosis that the prescribed medication is for.  There is also a need to convey diagnosis information in the Census event.  The difference here is that there is no related drug.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Facility" type="structures:Facility" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>Value SK</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="FillStatus" type="structures:FillStatus" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="Patient" type="structures:PatientFullType" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="Pharmacy" type="structures:OptionalPharmacy" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>Value P2.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Prescriber" type="structures:HistoryPrescriberChoice" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="DrugAdministrationRequest" type="script:DrugAdministrationRequest" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="Observation" type="structures:Observation" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="MedicationDispensed" type="structures:MedicationAbstract" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>Value D
			</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="MedicationPrescribed" type="structures:MedicationAbstract" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>Value P.  At least one loop must contain 85 = Date Issued (Written Date). 	If  Filled or PartialFill, the medication prescribed may be sent as clarification. If NotFilled, the medication (dispensed) or (prescribed) is required, depending upon what the pharmacy has knowledge of.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="MedicationRequested" type="structures:MedicationAbstract" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>Value R

Value R.	If one drug is being requested for the change, one loop for the drug being requested should be sent.
	OR
If the pharmacy wishes to send the prescriber a choice of alternative drugs, additional loops may be sent as alternatives. The first alternative sent in the loop is the preferred.
</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Supervisor" type="structures:SupervisorTypeAbstract" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="RequestedDates" type="datatypes:DateRange" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="ProhibitRefillRequest" type="xsd:boolean" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>Allows the prescriber to indicate to the pharmacy that the pharmacy should never request refills for this specific prescription by any technique. 
</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="ChangeReasonText" type="datatypes:an1..260" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>Explanation of the reason for the change request. 
 
Used only in RXChange and adds additional information for RxChangeCode from ECL 
 
</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  SCRIPTRequest1  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="SCRIPTRequest1" abstract="true">
		<xsd:sequence>
			<xsd:element name="BenefitsCoordination" type="structures:BaseBenefitsCoordination" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="DiagnosisGeneral" type="structures:DiagnosisGeneral" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>Element may be used only in the long-term care setting, where there are established processes supporting the sharing of diagnosis information between a resident’s facility and pharmacy. Note: The medication information enables communication of prescription-specific diagnosis information only—appropriate for use in new prescription messaging, but insufficient to support management of a resident’s full drug regimen. The intent is to convey the diagnosis that the prescribed medication is for.  There is also a need to convey diagnosis information in the Census event.  The difference here is that there is no related drug.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Facility" type="structures:Facility" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>Value SK</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="FillStatus" type="structures:FillStatus" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="Patient" type="structures:PatientFullType" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="Pharmacy" type="structures:OptionalPharmacy" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>Value P2.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Prescriber" type="structures:HistoryPrescriberChoice" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="DrugAdministrationRequest" type="script:DrugAdministrationRequest" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="Observation" type="structures:Observation" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="MedicationDispensed" type="structures:MedicationAbstract" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>Value D
			</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="MedicationPrescribed" type="structures:MedicationAbstract" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>Value P.  At least one loop must contain 85 = Date Issued (Written Date). 	If  Filled or PartialFill, the medication prescribed may be sent as clarification. If NotFilled, the medication (dispensed) or (prescribed) is required, depending upon what the pharmacy has knowledge of.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="MedicationRequested" type="structures:MedicationAbstract" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>Value R

Value R.	If one drug is being requested for the change, one loop for the drug being requested should be sent.
	OR
If the pharmacy wishes to send the prescriber a choice of alternative drugs, additional loops may be sent as alternatives. The first alternative sent in the loop is the preferred.
</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Supervisor" type="structures:SupervisorTypeAbstract" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="RequestedDates" type="datatypes:DateRange" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="ProhibitRefillRequest" type="xsd:boolean" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>Allows the prescriber to indicate to the pharmacy that the pharmacy should never request refills for this specific prescription by any technique. 
</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="ChangeReasonText" type="datatypes:an1..260" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>Explanation of the reason for the change request. 
 
Used only in RXChange and adds additional information for RxChangeCode from ECL 
 
</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="NinetyDayAtRetail" type="datatypes:an1..3"/>
		</xsd:sequence>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  SCRIPTResponse  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="SCRIPTResponse" abstract="true">
		<xsd:sequence>
			<xsd:element name="MessageRequestCode" type="ecl:MessageFunctionCode" minOccurs="0">
				<xsd:annotation>
					<xsd:documentation>For Long Term Care (LTC) Medication Change Process (Prescriber initiated CHANGE Request,) the NEWRX and the CANCEL will use this field to indicate the level of the change.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="ReturnReceipt" type="datatypes:an1..3" minOccurs="0"/>
			<xsd:element name="RequestReferenceNumber" type="datatypes:an1..35" minOccurs="0"/>
			<xsd:element name="ChangeOfPrescriptionStatusFlag" type="ecl:ChangeOfPrescriptionStatusCode" minOccurs="0"/>
			<xsd:element name="Response" type="script:ResponseAbstractType" minOccurs="0"/>
			<xsd:element name="BenefitsCoordination" type="structures:BaseBenefitsCoordination" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="Facility" type="structures:Facility" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>Value SK</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Patient" type="structures:PatientFullType" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="Pharmacy" type="structures:Pharmacy" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>Value P2.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Prescriber" type="structures:HistoryPrescriberChoice" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>Value PC</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="Observation" type="structures:Observation" minOccurs="0" maxOccurs="unbounded"/>
			<xsd:element name="Supervisor" type="structures:SupervisorTypeAbstract" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>Value SU</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="MedicationDispensed" type="structures:MedicationAbstract" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>Value D</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="MedicationDispensedAdministered" type="structures:MedicationAbstract" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>Value A.  Only used in RxHistoryResponse</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="MedicationPrescribed" type="structures:MedicationAbstract" minOccurs="0" maxOccurs="unbounded">
				<xsd:annotation>
					<xsd:documentation>Value P.  At least one loop must contain 85 = Date Issued (Written Date). 	If  Filled or PartialFill, the medication prescribed may be sent as clarification. If NotFilled, the medication (dispensed) or (prescribed) is required, depending upon what the pharmacy has knowledge of.</xsd:documentation>
				</xsd:annotation>
			</xsd:element>
			<xsd:element name="MedicationResponse" type="structures:RefillResponseReplacedMedication" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<!--  TransferRxResponseType  <<choice>>  -->
	<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
	<xsd:complexType name="TransferRxResponseType">
		<xsd:complexContent>
			<xsd:restriction base="script:ResponseAbstractType">
				<xsd:choice>
					<xsd:element name="Approved" type="script:ApprovedWithoutReasonType"/>
					<xsd:element name="Denied" type="script:DeniedTransferredResponseType"/>
					<xsd:element name="DeniedNewPrescriptionToFollow" type="datatypes:NoteType" minOccurs="0" maxOccurs="0"/>
					<xsd:element name="ApprovedWithChanges" type="script:ApprovedAbstractType" minOccurs="0" maxOccurs="0"/>
					<xsd:element name="Replace" type="datatypes:NoteType" minOccurs="0" maxOccurs="0"/>
				</xsd:choice>
			</xsd:restriction>
		</xsd:complexContent>
	</xsd:complexType>
	<xsd:annotation>
		<xsd:documentation>The NCPDP script.xsd defines SCRIPT domain transactions</xsd:documentation>
	</xsd:annotation>
</xsd:schema>
