ГОСТ ISO/TS 22600-3—2013
Policyld=Hurn:oasls.names:tc.xacml:2.0.examp!e:policyld:2’-
RuleCombiningAlgld="urn:oa3is:names.tc:xacml.1.0:mle-comblning-algoMhm:deny-overr>des’’>
<PolicyDefaults>
<XPathVersion>hUp://
www.w3.org/TR/1999/Rec-xpath-19991116</XPathVersion>
</PolicyDefaults>
<Target/>
<VaflableOefinltion Vartableld="1 7590035‘>
<Apply Functionld="urn:oasls.namea:tc;xacml:2.0:function:date-less-or-equar>
<Apply Functionld=,’urn:oasis:name8;tc:xacml:1.0:function:date-one-and-only“>
<EnvironmentAttrlbuteDe8ignator
Attrlbuteld="urn:o8sis names.tc.xacml:1.0:environment:current-date"
DataType="
http://www.w3.org/2001/XMLSchema*date*/
>
</Apply>
<Apply Funct>onld="urn:oasls:names:tc.xacml:1.0.functlon:date-add-yearMonthDuratton*>
<Apply Functionld=*urn:oasis:names:tc:xacml:1.O.function:date-one-and-only">
«AttributeSelector
RequestContextPath=’7/md:record/md:patient/md:patientDoB/text()"
DataType=*
http://vvww
w3.org/2001/XMLSchema#date"/>
</Apply>
«AttributeValue DataType=”
http://www.w3.org/TR/2002/WD-xquery-operators-2
0 02
0816»yearMonthDurat»on*>
<xf:dt-yearMonthDuration> P16Y«/xf:dt-yearMonthDuration>
</AttributeValue>
«/Apply>
</Apply>
</VariableDeflnltlon>
<RuleRuleld=“urn:oasis:names:tc.xacml:2.0:example:ruleld:2"Effect=*Permit*>
«Descript*on>
Лицо может читать любую медицинскую карту в пространстве имен http-tfwwvv.med.example.com/records.xsd. кото
рую оно создало или которую ведет, при условии, что пациенту меньше 16neT</Descnption>
<Target>
<Resources>
<Resource>
«ResourceMatch Matchld»*um:oasls:names:tc:xacml:1.0:funcUon:strlng-equal*>
«AttributeValue
DataType=*http:tfvwvw.vv3.org/2001/XMLSchema#str<ng*>http.tfwwvv.med.example.com/schemas/record.xsd«/Attribute
Value>
<ResourceAttrlbuteDesignator
Attributeld="urn:oasis:names tc:xacml.2.0:resource:target-namespace’
DataType=*
http://vwvw.vv3.org/20Q1/XMLSchema#strmg*/
>
«/ResourceMatch*
«ResourceMatch Matchld=*um:oasls:names:tc:xacml:1.0:function.xpath-node-match">
«AttributeValue DataType=’
-http://www.w3.org/2001/XMLSchema#stnng,->/md:record
</AttributeValue>
<ResourceAttrlbuteDeslgnator
Attrlbuteld="urn:oasis:names:tc:xacml:1.0 resource:xpath”
DataType=,http:tfvvww.vv3.org/2001/XMLSchema#strlng’V>
</ResourceMatch>
</Resource>
</Resources>
«Actions*
«Action*
<ActlonMatch Matchld=*urn:oasls:names:tc:xacml:1.0:function:stnng-equal’*
<AttrtbuteValue DataType=*http:tfvvvvw.vv3.org/2
001/XMLSchema»stnng’*read«/AttnbuteValue*
<ActionAttrlbute De slgnator
Attrlbuteld="urn:oasls:names:tc:xacml:1.0:action:acbon-id"
DataType=*http:/Avvvw.vv3.org/2001/XMLSchema»string*/>
«/ActionMatch>
«/Action*
</Actlons>
</Target>
52