PREFIX fhir: PREFIX fhirvs: PREFIX xsd: BASE start=@ AND {fhir:nodeRole [fhir:treeRoot]} # A healthcare consumer's choices to permit or deny recipients or roles to perform actions for specific purposes and periods of time CLOSED { a [fhir:Consent]; fhir:nodeRole [fhir:treeRoot]?; fhir:Resource.id id?; # Logical id of this artifact fhir:Resource.meta @?; # Metadata about the resource fhir:Resource.implicitRules @?; # A set of rules under which this # content was created fhir:Resource.language @?; # Language of the resource content fhir:DomainResource.text @?; # Text summary of the resource, for # human interpretation fhir:DomainResource.contained @*; # Contained, inline Resources fhir:DomainResource.extension @*; # Additional content defined by # implementations fhir:DomainResource.modifierExtension @*; # Extensions that cannot be ignored fhir:Consent.identifier @*; # Identifier for this record # (external references) fhir:Consent.status @ AND {fhir:value @fhirvs:consent-state-codes}; # draft | proposed | active | # rejected | inactive | # entered-in-error fhir:Consent.scope @; # Which of the four areas this # resource covers (extensible) fhir:Consent.category @+; # Classification of the consent # statement - for indexing/retrieval fhir:Consent.patient @?; # Who the consent applies to fhir:Consent.dateTime @?; # When this Consent was created or # indexed fhir:Consent.performer @*; # Who is agreeing to the policy and # rules fhir:Consent.organization @*; # Custodian of the consent ( # Source from which this consent is # taken fhir:Consent.sourceAttachment @ | fhir:Consent.sourceReference @ )?; fhir:Consent.policy @*; # Policies covered by this consent fhir:Consent.policyRule @?; # Regulation that this consents to fhir:Consent.verification @*; # Consent Verified by patient or # family fhir:Consent.provision @?; # Constraints to the base # Consent.policyRule fhir:index xsd:integer? # Relative position in a list } # Constraints to the base Consent.policyRule CLOSED { fhir:Element.id string?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored # even if unrecognized fhir:Consent.provision.type @ AND {fhir:value @fhirvs:consent-provision-type}?; # deny | permit fhir:Consent.provision.period @?; # Timeframe for this rule fhir:Consent.provision.actor @*; # Who|what controlled by this rule # (or group, by role) fhir:Consent.provision.action @*; # Actions controlled by this rule fhir:Consent.provision.securityLabel @*; # Security Labels that define # affected resources fhir:Consent.provision.purpose @*; # Context of activities covered by # this rule fhir:Consent.provision.class @*; # e.g. Resource Type, Profile, CDA, # etc. fhir:Consent.provision.code @*; # e.g. LOINC or SNOMED CT code, etc. # in the content fhir:Consent.provision.dataPeriod @?; # Timeframe for data controlled by # this rule fhir:Consent.provision.data @*; # Data controlled by this rule fhir:Consent.provision.provision @*; # Nested Exception Rules fhir:index xsd:integer? # Relative position in a list } # Consent Verified by patient or family CLOSED { fhir:Element.id string?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored # even if unrecognized fhir:Consent.verification.verified @; # Has been verified fhir:Consent.verification.verifiedWith @?; # Person who verified fhir:Consent.verification.verificationDate @?; # When consent verified fhir:index xsd:integer? # Relative position in a list } # Policies covered by this consent CLOSED { fhir:Element.id string?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored # even if unrecognized fhir:Consent.policy.authority @?; # Enforcement source for policy fhir:Consent.policy.uri @?; # Specific policy covered by this # consent fhir:index xsd:integer? # Relative position in a list } # Nested Exception Rules CLOSED { fhir:index xsd:integer? # Relative position in a list } # Data controlled by this rule CLOSED { fhir:Element.id string?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored # even if unrecognized fhir:Consent.provision.data.meaning @ AND {fhir:value @fhirvs:consent-data-meaning}; # instance | related | dependents | # authoredby fhir:Consent.provision.data.reference @; # The actual data reference fhir:index xsd:integer? # Relative position in a list } # Who|what controlled by this rule (or group, by role) CLOSED { fhir:Element.id string?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored # even if unrecognized fhir:Consent.provision.actor.role @; # How the actor is involved fhir:Consent.provision.actor.reference @; # Resource for the actor (or group, # by role) fhir:index xsd:integer? # Relative position in a list } #---------------------- Data Types ------------------- # Primitive Type dateTime CLOSED { fhir:Element.id string?; # xml:id (or equivalent in JSON) fhir:Element.extension @*; # Additional content defined by # implementations fhir:value dateTime?; # Primitive value for dateTime fhir:index xsd:integer? # Relative position in a list } # Metadata about a resource CLOSED { fhir:Element.id id?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:Meta.versionId @?; # Version specific identifier fhir:Meta.lastUpdated @?; # When the resource version last # changed fhir:Meta.source @?; # Identifies where the resource # comes from fhir:Meta.profile @*; # Profiles this resource claims to # conform to fhir:Meta.security @*; # Security Labels applied to this # resource fhir:Meta.tag @*; # Tags applied to this resource fhir:index xsd:integer? # Relative position in a list } # Primitive Type code CLOSED { fhir:Element.id string?; # xml:id (or equivalent in JSON) fhir:Element.extension @*; # Additional content defined by # implementations fhir:value code?; # Primitive value for code fhir:index xsd:integer? # Relative position in a list } # A reference from one resource to another CLOSED { fhir:link IRI?; fhir:Element.id id?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:Reference.reference @?; # Literal reference, Relative, # internal or absolute URL fhir:Reference.type @?; # Type the reference refers to (e.g. # "Patient") fhir:Reference.identifier @?; # Logical reference, when literal # reference is not known fhir:Reference.display @?; # Text alternative for the resource fhir:index xsd:integer? # Relative position in a list } # Base Resource {a .+; fhir:Resource.id id?; # Logical id of this artifact fhir:Resource.meta @?; # Metadata about the resource fhir:Resource.implicitRules @?; # A set of rules under which this # content was created fhir:Resource.language @?; # Language of the resource content fhir:index xsd:integer? } # Time range defined by start and end date/time CLOSED { fhir:Element.id id?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:Period.start @?; # Starting time with inclusive # boundary fhir:Period.end @?; # End time with inclusive boundary, # if not ongoing fhir:index xsd:integer? # Relative position in a list } # Content in a format defined elsewhere CLOSED { fhir:Element.id id?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:Attachment.contentType @ AND {fhir:value @fhirvs:mimetypes}?; # Mime type of the content, with # charset etc. fhir:Attachment.language @?; # Human language of the content # (BCP-47) fhir:Attachment.data @?; # Data inline, base64ed fhir:Attachment.url @?; # Uri where the data can be found fhir:Attachment.size @?; # Number of bytes of content (if url # provided) fhir:Attachment.hash @?; # Hash of the data (sha-1, base64ed) fhir:Attachment.title @?; # Label to display in place of the # data fhir:Attachment.creation @?; # Date attachment was first created fhir:index xsd:integer? # Relative position in a list } # Primitive Type uri CLOSED { fhir:Element.id string?; # xml:id (or equivalent in JSON) fhir:Element.extension @*; # Additional content defined by # implementations fhir:value uri?; # Primitive value for uri fhir:index xsd:integer? # Relative position in a list } # Optional Extensions Element CLOSED { fhir:Element.id id?; fhir:Element.extension @*; fhir:Extension.url uri; ( fhir:Extension.valueBase64Binary @ | fhir:Extension.valueBoolean @ | fhir:Extension.valueCanonical @ | fhir:Extension.valueCode @ | fhir:Extension.valueDate @ | fhir:Extension.valueDateTime @ | fhir:Extension.valueDecimal @ | fhir:Extension.valueId @ | fhir:Extension.valueInstant @ | fhir:Extension.valueInteger @ | fhir:Extension.valueMarkdown @ | fhir:Extension.valueOid @ | fhir:Extension.valuePositiveInt @ | fhir:Extension.valueString @ | fhir:Extension.valueTime @