<!--
 <DescrizioneCaso>Si verifica il comportamento corretto del sistema in caso 
 di EROGAZIONE prescrizione farmaceutica del solo codice ministeriale con sostituzione farmaco</DescrizioneCaso>
-->
<ClinicalDocument xsi:schemaLocation="urn:hl7-org:v3 CDA.xsd" xmlns="urn:hl7-org:v3" xmlns:mif="urn:hl7-org:v3/mif" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<realmCode code="IT"/>
	<typeId extension="POCD_MT000040" root="2.16.840.1.113883.1.3"/>
	<templateId extension="ITPRF_EROG_FARMA-001" root="2.16.840.1.113883.2.9.10.2.11"/>
	<id root="2.16.840.1.113883.2.9.4.3.4" extension="$nrbe"+"E"+"TODAY(yyyyMMddHHmmss)" assigningAuthorityName="MEF"/>
	<code code="29304-3" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="EROGAZIONE PRESCRIZIONE FARMACEUTICA" codeSystemVersion="2.19">
		<translation code="3400" codeSystem="2.16.840.1.113883.2.9.6.1.25" codeSystemName="ITCDADOC_TYPECODE" codeSystemVersion="1" displayName="Erogazione">
			<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>
		</translation>
	</code>
	<effectiveTime value="TODAY(yyyyMMddHHmmss)"/>
	<confidentialityCode code="N" codeSystem="2.16.840.1.113883.5.25" codeSystemName="Confidentiality"/>
	<languageCode code="ita-ITA"/>
	<!--estension deve essere valorizzato come segue $nrbe"+"E"+"TODAY(yyyyMMddHHmmssSSS)-->
	
	<setId assigningAuthorityName="MEF" extension="$nrbe"+"E"+"TODAY(yyyyMMddHHmmss)" root="2.16.840.1.113883.2.9.4.3.4"/>
	<versionNumber value="1"/>
	<recordTarget typeCode="RCT" contextControlCode="OP">
		<patientRole classCode="PAT">
			<id assigningAuthorityName="MEF" extension="CHRMRA35C18A662Z" root="2.16.840.1.113883.2.9.4.3.2"/>
         <patient>
            <name>
               <given>FRANCESCO</given>
               <family>ALBANO</family>
            </name>
            <administrativeGenderCode code="M" codeSystem="2.16.840.1.113883.5.1" displayName="M"/>
            <birthTime value="19481018"/>
         </patient>	  
		</patientRole>
	</recordTarget>
	<author typeCode="AUT" contextControlCode="OP">
		<time value="TODAY(yyyyMMddHHmmss)"/>
		<assignedAuthor>
			<id assigningAuthorityName="MEF" extension="CCCFNC76D01A662R" root="2.16.840.1.113883.2.9.4.3.2"/>
			 <id assigningAuthorityName="Regione Puglia" extension="1159" root="2.16.840.1.113883.2.9.2.160.4.2"/>
			<assignedPerson>
				<name>
					<given>MARIA ROSARIA</given>
					<family/>
				</name>
			</assignedPerson>
			<representedOrganization>
				<id root="2.16.840.1.113883.2.9.2.160.4.2.1" extension="01128" assigningAuthorityName="REGIONE PUGLIA"/>
			</representedOrganization>
		</assignedAuthor>
	</author>
	<custodian typeCode="CST">
		<assignedCustodian classCode="ASSIGNED">
			<representedCustodianOrganization classCode="ORG" determinerCode="INSTANCE">
				<id extension="ASL" root="2.16.840.1.113883.2.9.2"/>
			</representedCustodianOrganization>
		</assignedCustodian>
	</custodian>
	<legalAuthenticator typeCode="LA" contextControlCode="OP">
		<time value="TODAY(yyyyMMddHHmmss)"/>
		<signatureCode code="S"/>
		<assignedEntity>
			<id assigningAuthorityName='MEF' extension="CCCFNC76D01A662R" root='2.16.840.1.113883.2.9.4.3.2'/>
			<assignedPerson>
				<name>
					<given>MARIA ROSARIA</given>
					<family>PANACCIULLI</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.11" extension="$nrbe" assigningAuthorityName="Regione Puglia"/>
		</order>
	</inFulfillmentOf>
	<component typeCode="COMP">
		<structuredBody moodCode="EVN" classCode="DOCBODY">
			<component typeCode="COMP">
				<section ID="EROGAZIONE_FARMACEUTICA">
					<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 AURO 50CPR 400MG4</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="TODAY(yyyyMMddHHmmss)"/>
							<product typeCode="PRD">
								<manufacturedProduct>
									<!--$targa -->
									<id root="2.16.840.1.113883.2.9.4.1.23" extension="2222222222" assigningAuthorityName="Regione Puglia" displayable="true"/>
									<manufacturedLabeledDrug classCode="MMAT" determinerCode="KIND">
										<!--$codProdPrestErog-->
										<code code="035386010" codeSystem="2.16.840.1.113883.2.9.6.1.5" codeSystemName="AIC"
										displayName ="A.I.C.">
											<originalText>
												<reference value="a1"/>
											</originalText>
										</code>
									</manufacturedLabeledDrug>
								</manufacturedProduct>
							</product>
							
							<!-- nuovo campo identificativoProdPrest  -->
							<entryRelationship typeCode="GEVL">
								<encounter classCode="ACCT" moodCode="INT">
									<text>1</text>
								</encounter>
							</entryRelationship>
							<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"/>
									<!-- $prezzo-->
									<value xsi:type="MO" value="12"/>
								</observation>
							</entryRelationship>
							<entryRelationship typeCode="REFR">
								<observation classCode="OBS" moodCode="DEF">
									<code code="1.14" codeSystem="2.16.840.1.113883.2.9.6.1.48" codeSystemName="Tipologie importi" codeSystemVersion="1" displayName="Altri Costi"/>
									<!-- $altriCosti-->
									<value xsi:type="MO" value="10"/>
								</observation>
							</entryRelationship>
						</supply>
					</entry>
				</section>
			</component>
		</structuredBody>
	</component>
</ClinicalDocument>