JohnMoehrke Consent with Segmented data - Testing Guide (TG)
0.1.0-current - ci-build International flag

JohnMoehrke Consent with Segmented data - Testing Guide (TG), published by John Moehrke (himself). This guide is not an authorized publication; it is the continuous build for version 0.1.0-current built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/JohnMoehrke/ConsentWithSeg-testing/ and changes regularly. See the Directory of published versions

: The test plan for the IG - TTL Representation

Page standards status: Informative

Raw ttl | Download


@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

 a fhir:TestPlan ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "theTestPlan"] ; # 
  fhir:url [ fhir:v "http://johnmoehrke.github.io/ConsentWithSeg-testing/TestPlan/theTestPlan"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "0.1.0-current"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:date [ fhir:v "2024-11-20T15:14:57+00:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "John Moehrke (himself)"] ; # 
  fhir:contact ( [
fhir:name [ fhir:v "John Moehrke (himself)" ] ;
    ( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "http://healthcaresecprivacy.blogspot.com" ]     ] [
fhir:system [ fhir:v "email" ] ;
fhir:value [ fhir:v "JohnMoehrke@gmail.com" ]     ] )
  ] [
fhir:name [ fhir:v "John Moehrke (himself)" ] ;
    ( fhir:telecom [
fhir:system [ fhir:v "email" ] ;
fhir:value [ fhir:v "JohnMoehrke@gmail.com" ]     ] )
  ] ) ; # 
  fhir:description [ fhir:v "Test user access against various kinds of Consent"] ; # 
  fhir:jurisdiction ( [
    ( fhir:coding [
fhir:system [ fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ] ;
fhir:code [ fhir:v "001" ]     ] )
  ] ) ; # 
  fhir:testTools [ fhir:v "some good tool"] ; # 
  fhir:testCase ( [
fhir:sequence [ fhir:v "1"^^xsd:integer ] ;
    ( fhir:scope [
fhir:reference [ fhir:v "Consent/ex-consent-treat" ]     ] ) ;
    ( fhir:testRun [
fhir:narrative [ fhir:v "```Gherkin\nFeature: Basic Consent \n\nBackground: purpose of use is allowed\n\nScenario: User requests access and is authorized due to basic consent \n\nScenario Outline: basic\n  Given @ConsentRecorder has or has not recorded a \\<Consent\\>\n    And default rule is \\<default\\>\n  When \\<user\\> uses @UserApp to request access control token\n    And @AccessControlDecider actor consults the @ConsentRepository\n    And \\<Consent\\> \n  Then Authorization \\<auth\\>\n\nExamples:\n\n  | Consent | default | User  | auth   |\n  |---------|---------|-------|--------|\n  | none    | deny    | User1 | deny   |\n  | none    | deny    | User2 | deny   |\n  | none    | permit  | User1 | permit |\n  | none    | permit  | User2 | permit |\n  | permit  | ~any~   | User1 | permit |\n  | permit  | ~any~   | User2 | permit |\n  | deny    | ~any~   | User1 | deny   |\n  | deny    | ~any~   | User2 | deny   |\n```" ] ;
fhir:script [
fhir:language [
          ( fhir:coding [
fhir:system [ fhir:v "urn:ietf:bcp:13"^^xsd:anyURI ] ;
fhir:code [ fhir:v "text/x-gherkin" ]           ] ) ;
fhir:text [ fhir:v "Gherkin" ]         ] ;
fhir:source [
a fhir:Reference ;
fhir:reference [ fhir:v "DocumentReference/Dr-only-non-sensitive-script" ]         ]       ]     ] )
  ] [
fhir:sequence [ fhir:v "2"^^xsd:integer ] ;
    ( fhir:scope [
fhir:reference [ fhir:v "Consent/ex-consent-treat" ]     ] ) ;
    ( fhir:testRun [
fhir:narrative [ fhir:v "Feature: todo" ]     ] )
  ] [
fhir:sequence [ fhir:v "3"^^xsd:integer ] ;
    ( fhir:scope [
fhir:reference [ fhir:v "Consent/ex-consent-treat" ]     ] ) ;
    ( fhir:testRun [
fhir:narrative [ fhir:v "Feature: todo" ]     ] )
  ] [
fhir:sequence [ fhir:v "4"^^xsd:integer ] ;
    ( fhir:scope [
fhir:reference [ fhir:v "Consent/ex-consent-treat" ]     ] ) ;
    ( fhir:testRun [
fhir:narrative [ fhir:v "```Gherkin\nFeature: Consent authorize activity for non-sensitive data\n\nScenario: User requests access and is permitted normal data due to Consent \n  Given ConsentRecorder records Consent\n    And The Consent given is for the User\n    And The Consent given restricts data for this user to non-sensitive data\n  When User uses UserApp to request data\n    And AccessControl actor consults the ConsentRepository\n    And Consent is found, \n    And Consent found does authorize this user only for non-sensitive data\n  Then Only non-sensitive data can be given\n    And SLS inspects the Search Response bundle and tags sensitive data (R-ConfidentialityCode)\n    And AccessEnforcement removes from the Search Response Bundle the data tagged as sensitive (R-ConfidentalityCode)\n    And Only non-sensitive data is given\n```" ] ;
fhir:script [
fhir:language [
          ( fhir:coding [
fhir:system [ fhir:v "urn:ietf:bcp:13"^^xsd:anyURI ] ;
fhir:code [ fhir:v "text/x-gherkin" ]           ] ) ;
fhir:text [ fhir:v "Gherkin" ]         ] ;
fhir:source [
a fhir:Reference ;
fhir:reference [ fhir:v "DocumentReference/Dr-give-consent-script" ]         ]       ]     ] )
  ] ) . #