
<!--
 <DescrizioneCaso>Si verifica il comportamento corretto del sistema in caso di EROGAZIONE prescrizione farmaceutica con codice ministeriale e gruppo di equivalenza con sostituzione di farmaco</DescrizioneCaso>
-->
<ClinicalDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" moodCode="EVN" xmlns="urn:hl7-org:v3" xsi:schemaLocation="urn:hl7-org:v3 CDA.xsd">
	<realmCode code="IT"/>
	<typeId root="2.16.840.1.113883.1.3" extension="POCD_MT000040"/>
	<templateId root="2.16.840.1.113883.2.9.10.2.11" extension="ITPRF_EROG_FARMA-001"/>
	<!-- poligarfico di stato -->
	<!--<id root="2.16.840.1.113883.2.9.4.3.4" extension="546879999999990" assigningAuthorityName="Regione Puglia"/> -->
	<!-- OR IUP -->
	<!--<id root="2.16.840.1.113883.2.9.4.3.4" extension="00M6RG0005UDME20140223173501543" assigningAuthorityName="Regione Puglia"/>-->
	<!-- OR NRE -->
	<id root="2.16.840.1.113883.2.9.4.3.4" extension="E20140223173501543" assigningAuthorityName="MEF"/> 
	<code code="29304-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" codeSystemVersion="2.19">
		<translation code="3400">
			<qualifier>
				<value code="3400-11" codeSystem="2.16.840.1.113883.2.9.6.1.25" codeSystemName="ITCDADOC_TYPECODE" codeSystemVersion="1" displayName="EROGAZIONE FARMACEUTICA"/>
			</qualifier>
			<qualifier>
				<value code="EFC" 
                            codeSystem="2.16.840.1.113883.2.9.5.2.1" 
                            codeSystemName="Classificazione Prescrizione" 
                            codeSystemVersion="1.0" 
                            displayName="Distribuzione per conto"/>		 
			</qualifier>
		</translation>
	</code>
	<effectiveTime value=""/>
	<confidentialityCode code="N" codeSystem="2.16.840.1.113883.5.25" codeSystemName="Confidentiality"/>
	<!-- poligarfico di stato -->
	<!--<setId root="2.16.840.1.113883.2.9.4.3.4" extension="546879999999990" assigningAuthorityName="Regione Puglia"/>-->
	<!-- OR IUP -->
	<!--<setId root="2.16.840.1.113883.2.9.4.3.4" extension="00M6RG0005UDME20140223173501543" assigningAuthorityName="Regione Puglia"/>-->
	<!-- OR NRE -->
	<setId root="2.16.840.1.113883.2.9.4.3.4" extension="E20140223173501543" assigningAuthorityName="MEF"/>
	<versionNumber value="1"/>
	<recordTarget typeCode="RCT" contextControlCode="OP">
		<patientRole classCode="PAT">
			<id root="2.16.840.1.113883.2.9.4.3.2" extension="CHRMRA35C18A662Z" assigningAuthorityName="MEF"/>
			<patient classCode="PSN" determinerCode="INSTANCE"/>
		</patientRole>
	</recordTarget>
	<author typeCode="AUT" contextControlCode="OP">
		<time value=""/>
		<assignedAuthor>
			<id assigningAuthorityName='MEF' extension='' root='2.16.840.1.113883.2.9.4.3.2'/>
			<assignedPerson>
				<name>
				   <given>MARIA ROSARIA</given>
				   <family></family>
				</name>
			</assignedPerson>
			<representedOrganization>
				<!-- $root?? -->
				<id root="2.16.840.1.113883.2.9.2.160.4.2.1" extension="01128"/>
			</representedOrganization>	
		</assignedAuthor>
	</author>
	<custodian typeCode="CST">
		<assignedCustodian classCode="ASSIGNED">
			<representedCustodianOrganization classCode="ORG" determinerCode="INSTANCE">
				<id root="2.16.840.1.113883.2.9.2" extension="ASL"/>
			</representedCustodianOrganization>
		</assignedCustodian>
	</custodian>
	<legalAuthenticator typeCode="LA" contextControlCode="OP">
		<time value=""/>
		<signatureCode code="S"/>
		<assignedEntity>
			<id assigningAuthorityName='MEF' extension='' root='2.16.840.1.113883.2.9.4.3.2'/>
			<assignedPerson>
				<name>
				   <given>MARIA ROSARIA</given>
				   <family></family>
				</name>
			</assignedPerson>
		</assignedEntity>
	</legalAuthenticator>
	<participant typeCode="IND" contextControlCode="OP">
		<associatedEntity classCode="GUAR">
			<scopingOrganization classCode="ORG" determinerCode="INSTANCE"/>
		</associatedEntity>
	</participant>
	<inFulfillmentOf>
		<order  moodCode="RQO">
		<id root="2.16.840.1.113883.2.9.4.3.6" extension="" assigningAuthorityName="Regione Puglia"/>
		</order>
	</inFulfillmentOf>
	<component>
		<structuredBody classCode="DOCBODY" moodCode="EVN">
			<component>
				<section ID="EROGAZIONE_FARMACEUTICA" classCode="DOCSECT" moodCode="EVN">
					<code code="29304-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" codeSystemVersion="2.19"/>
					<text mediaType="text/x-hl7-text+xml">
						<list ID="EROG">
							<caption>Farmaci Erogati:</caption>
							<item>
								<content ID='a1'>MESALAZINA DRM*500MG 20 SUP.</content>
							</item>							
						</list>
					</text>					
					<entry>
						<supply classCode="SPLY" moodCode="EVN">
							<id root="2.16.840.1.113883.2.9.6.1.23" extension="1190808" assigningAuthorityName="AIFA" displayable="true"/>							
							<!-- $dataErogazione-->
							<effectiveTime value=""/>
							<quantity value="1" unit="1"/>
							<product typeCode="PRD">
								<manufacturedProduct>
									<id root="2.16.840.1.113883.2.9.4.1.23" extension="2222222222" assigningAuthorityName="IPZS" displayable="true"/>
									<manufacturedLabeledDrug classCode="MMAT">
										<!--$codProdPrestErog-->
										<code code="034462059" codeSystem="2.16.840.1.113883.2.9.6.1.5" codeSystemName="AIC" displayName="A.I.C.">
											<originalText>
												<reference value="a1"/>
											</originalText>											
											<translation code="02D" codeSystem="2.16.840.1.113883.2.9.6.1.51" codeSystemName="Tabella gruppo di equivalenza" displayName="MESALAZINA DRM*500MG 20 SUP."/>
										</code>
									</manufacturedLabeledDrug>
								</manufacturedProduct>
							</product>
							<!--<entryRelationship typeCode="REFR">
								<act moodCode="EVN" classCode="ACT">
									<code code="TD"
										  codeSystem="2.16.840.1.113883.2.9.5.1.4" 
										  codeSystemName="Estensione Vocabolario ActCode" 
										  displayName="Dichiarazione targa doppia"/>
									<text>$dichTargaDoppia</text>
								</act>
							</entryRelationship>-->	
							<entryRelationship typeCode="CAUS">
								<act classCode="ACT" moodCode="EVN">
									<code code="S">
										<qualifier>
											<value xsi:type="CE" code="1"/>
										</qualifier>
									</code>
								</act>
							</entryRelationship>							
							<entryRelationship typeCode="REFR">
								<supply classCode="SPLY" moodCode="RQO">
									<product>
										<manufacturedProduct>
											<manufacturedLabeledDrug>
												<!--$codProdPrest-->
												<code code="034298051" codeSystem="2.16.840.1.113883.2.9.6.1.5" codeSystemName="AIC" displayName="A.I.C." /> 
											</manufacturedLabeledDrug>
										</manufacturedProduct>
									</product>
								</supply>
							</entryRelationship>							
							<entryRelationship typeCode="REFR">
								<!--INFO SINGOLA CONFEZIONE (1)-->
								<observation classCode="OBS" moodCode="DEF">
									<code code="1.1" codeSystem="2.16.840.1.113883.2.9.6.1.48" codeSystemName="Tipologie importi" codeSystemVersion="1" displayName="Importo relativo al ticket"/>
									<!-- $ticketConfezione-->
									<value xsi:type="MO" value="1"/>
									<!--DIFFERENZA GENERICO 1-->
									<entryRelationship typeCode="REFR">
										<observation classCode="OBS" moodCode="DEF">
											<code code="1.6" codeSystem="2.16.840.1.113883.2.9.6.1.48" codeSystemName="Tipologie importi" codeSystemVersion="1" displayName="Differenza Generico"/>
											<!-- $diffGenerico -->
											<value xsi:type="MO" value="1.2"/>
										</observation>
									</entryRelationship>
									<!--PREZZO RIMBORSO 1-->
									<entryRelationship typeCode="REFR">
										<observation classCode="OBS" moodCode="DEF">
											<code code="1.7" codeSystem="2.16.840.1.113883.2.9.6.1.48" codeSystemName="Tipologie importi" codeSystemVersion="1" displayName="Prezzo Rimborso"/>
											<!-- $prezzoRimborso -->
											<value xsi:type="MO" value="1.3"/>
										</observation>
									</entryRelationship>
									<!--ONERE PRODOTTO 1-->
									<entryRelationship typeCode="REFR">
										<observation classCode="OBS" moodCode="DEF">
											<code code="1.8" codeSystem="2.16.840.1.113883.2.9.6.1.48" codeSystemName="Tipologie importi" codeSystemVersion="1" displayName="Onere Prodotto"/>
											<!-- $onereProd -->
											<value xsi:type="MO" value="1.4"/>
										</observation>
									</entryRelationship>
									<!--SCONTO SSN 1-->
									<entryRelationship typeCode="REFR">
										<observation classCode="OBS" moodCode="DEF">
											<code code="1.9" codeSystem="2.16.840.1.113883.2.9.6.1.48" codeSystemName="Tipologie importi" codeSystemVersion="1" displayName="Sconto SSN"/>
											<!-- $scontoSSN -->
											<value xsi:type="MO" value="1.5"/>
										</observation>
									</entryRelationship>
									<!--SCONTO INDUSTRIA 1-->
									<entryRelationship typeCode="REFR">
										<observation classCode="OBS" moodCode="DEF">
											<code code="1.10" codeSystem="2.16.840.1.113883.2.9.6.1.48" codeSystemName="Tipologie importi" codeSystemVersion="1" displayName="Sconto Industria"/>
											<!-- $extraScontoIndustria -->
											<value xsi:type="MO" value="1.6"/>
										</observation>
									</entryRelationship>
									<!--SCONTO PAYBACK 1-->
									<entryRelationship typeCode="REFR">
										<observation classCode="OBS" moodCode="DEF">
											<code code="1.11" codeSystem="2.16.840.1.113883.2.9.6.1.48" codeSystemName="Tipologie importi" codeSystemVersion="1" displayName="Sconto Payback"/>
											<!-- $extraScontoPayback -->
											<value xsi:type="MO" value="1.7"/>
										</observation>
									</entryRelationship>
									<!--SCONTO DL31052010 1-->
									<entryRelationship typeCode="REFR">
										<observation classCode="OBS" moodCode="DEF">
											<code code="1.12" codeSystem="2.16.840.1.113883.2.9.6.1.48" codeSystemName="Tipologie importi" codeSystemVersion="1" displayName="Sconto DL31052010"/>
											<!-- $extraScontoDL31052010 -->
											<value xsi:type="MO" value="1.8"/>
										</observation>
									</entryRelationship>
									<!--prezzo-->
									<entryRelationship typeCode="REFR">
										<observation classCode="OBS" moodCode="DEF">
											<code code="1.13" codeSystem="2.16.840.1.113883.2.9.6.1.48" codeSystemName="Tipologie importi" codeSystemVersion="1" displayName="Prezzo al pubblico"/>
											<!-- $prezzo -->
											<value xsi:type="MO" value="1.9"/>
										</observation>
									</entryRelationship>					   
								</observation>
							</entryRelationship>
						</supply>
					</entry>					
				</section>
			</component>
		</structuredBody>
	</component>
</ClinicalDocument>