All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.policy-set-template-303.xml Maven / Gradle / Ivy

The newest version!
<!-- Template 303 -->
<PolicySet
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:hl7="urn:hl7-org:v3"
	xmlns="urn:oasis:names:tc:xacml:2.0:policy:schema:os"
	PolicySetId="${id}"
	PolicyCombiningAlgId="urn:oasis:names:tc:xacml:1.0:policy-combining-algorithm:deny-overrides"> 
	<Description>
		Patient specific PolicySet for User Assignment 303 - allowing a user (representative) to access the patient's EPD on behalf of the patient
	</Description>
	<Target>
		<Subjects>
			<Subject>
				<SubjectMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
					<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">${representativeId}</AttributeValue>
					<SubjectAttributeDesignator
						AttributeId="urn:oasis:names:tc:xacml:1.0:subject:subject-id"
					DataType="http://www.w3.org/2001/XMLSchema#string" />
				</SubjectMatch>
				<SubjectMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:string-equal">
					<AttributeValue DataType="http://www.w3.org/2001/XMLSchema#string">urn:e-health-suisse:representative-id</AttributeValue>
					<SubjectAttributeDesignator
						AttributeId="urn:oasis:names:tc:xacml:1.0:subject:subject-id-qualifier"
					DataType="http://www.w3.org/2001/XMLSchema#string" />
				</SubjectMatch>
				<SubjectMatch MatchId="urn:hl7-org:v3:function:CV-equal">
					<AttributeValue DataType="urn:hl7-org:v3#CV">
						<hl7:CodedValue code="REP" codeSystem="2.16.756.5.30.1.127.3.10.6" />
					</AttributeValue>
					<SubjectAttributeDesignator
						DataType="urn:hl7-org:v3#CV"
					AttributeId="urn:oasis:names:tc:xacml:2.0:subject:role" />
				</SubjectMatch>				
			</Subject>
		</Subjects>
		<Resources>
			<Resource>
				<ResourceMatch MatchId="urn:hl7-org:v3:function:II-equal">
					<AttributeValue DataType="urn:hl7-org:v3#II">
						<hl7:InstanceIdentifier root="2.16.756.5.30.1.127.3.10.3" extension="${eprSpid}"/>
					</AttributeValue>
					<ResourceAttributeDesignator
						DataType="urn:hl7-org:v3#II"
					AttributeId="urn:e-health-suisse:2015:epr-spid"/>
				</ResourceMatch>
			</Resource>
		</Resources>
		#if ($startDate || $endDate)
		<Environments>
			<Environment>
				#if ($startDate)
				<EnvironmentMatch
						MatchId="urn:oasis:names:tc:xacml:1.0:function:date-less-than-or-equal">
					<AttributeValue	DataType="http://www.w3.org/2001/XMLSchema#date">${startDate}</AttributeValue>
					<EnvironmentAttributeDesignator
							AttributeId="urn:oasis:names:tc:xacml:1.0:environment:current-date"
							DataType="http://www.w3.org/2001/XMLSchema#date"/>
				</EnvironmentMatch>
				#end
				#if ($endDate)
				<EnvironmentMatch
						MatchId="urn:oasis:names:tc:xacml:1.0:function:date-greater-than-or-equal">
					<AttributeValue	DataType="http://www.w3.org/2001/XMLSchema#date">${endDate}</AttributeValue>
					<EnvironmentAttributeDesignator
							AttributeId="urn:oasis:names:tc:xacml:1.0:environment:current-date"
							DataType="http://www.w3.org/2001/XMLSchema#date"/>
				</EnvironmentMatch>
				#end
			</Environment>
		</Environments>
		#end
	</Target>
	<PolicySetIdReference>urn:e-health-suisse:2015:policies:access-level:full</PolicySetIdReference>
</PolicySet>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy