Class: FHIR::Consent

Inherits:
Model
  • Object
show all
Includes:
Hashable, Json, Xml
Defined in:
lib/fhir_models/fhir/resources/Consent.rb

Defined Under Namespace

Classes: Policy, Provision, Verification

Constant Summary collapse

MULTIPLE_TYPES =
{
  'source' => ['Attachment', 'Reference']
}
SEARCH_PARAMS =
['date', 'identifier', 'patient', 'action', 'actor', 'category', 'consentor', 'data', 'organization', 'period', 'purpose', 'scope', 'security-label', 'source-reference', 'status']
METADATA =
{
  'id' => {'type'=>'id', 'path'=>'Consent.id', 'min'=>0, 'max'=>1},
  'meta' => {'type'=>'Meta', 'path'=>'Consent.meta', 'min'=>0, 'max'=>1},
  'implicitRules' => {'type'=>'uri', 'path'=>'Consent.implicitRules', 'min'=>0, 'max'=>1},
  'language' => {'valid_codes'=>{'urn:ietf:bcp:47'=>['ar', 'bn', 'cs', 'da', 'de', 'de-AT', 'de-CH', 'de-DE', 'el', 'en', 'en-AU', 'en-CA', 'en-GB', 'en-IN', 'en-NZ', 'en-SG', 'en-US', 'es', 'es-AR', 'es-ES', 'es-UY', 'fi', 'fr', 'fr-BE', 'fr-CH', 'fr-FR', 'fy', 'fy-NL', 'hi', 'hr', 'it', 'it-CH', 'it-IT', 'ja', 'ko', 'nl', 'nl-BE', 'nl-NL', 'no', 'no-NO', 'pa', 'pl', 'pt', 'pt-BR', 'ru', 'ru-RU', 'sr', 'sr-RS', 'sv', 'sv-SE', 'te', 'zh', 'zh-CN', 'zh-HK', 'zh-SG', 'zh-TW']}, 'type'=>'code', 'path'=>'Consent.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'preferred', 'uri'=>'http://hl7.org/fhir/ValueSet/languages'}},
  'text' => {'type'=>'Narrative', 'path'=>'Consent.text', 'min'=>0, 'max'=>1},
  'contained' => {'type'=>'Resource', 'path'=>'Consent.contained', 'min'=>0, 'max'=>Float::INFINITY},
  'extension' => {'type'=>'Extension', 'path'=>'Consent.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Consent.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'identifier' => {'type'=>'Identifier', 'path'=>'Consent.identifier', 'min'=>0, 'max'=>Float::INFINITY},
  'status' => {'valid_codes'=>{'http://hl7.org/fhir/consent-state-codes'=>['draft', 'proposed', 'active', 'rejected', 'inactive', 'entered-in-error']}, 'type'=>'code', 'path'=>'Consent.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/consent-state-codes|4.0.0'}},
  'scope' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/consentscope'=>['adr', 'research', 'patient-privacy', 'treatment']}, 'type'=>'CodeableConcept', 'path'=>'Consent.scope', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/consent-scope'}},
  'category' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/consentcategorycodes'=>['acd', 'dnr', 'emrgonly', 'hcd', 'npp', 'polst', 'research', 'rsdid', 'rsreid'], 'http://terminology.hl7.org/CodeSystem/v3-ActCode'=>['ICOL', 'IDSCL', 'INFA', 'INFAO', 'INFASO', 'IRDSCL', 'RESEARCH', 'RSDID', 'RSREID'], 'http://loinc.org'=>['59284-0', '57016-8', '57017-6', '64292-6']}, 'type'=>'CodeableConcept', 'path'=>'Consent.category', 'min'=>1, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/consent-category'}},
  'patient' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient'], 'type'=>'Reference', 'path'=>'Consent.patient', 'min'=>0, 'max'=>1},
  'dateTime' => {'type'=>'dateTime', 'path'=>'Consent.dateTime', 'min'=>0, 'max'=>1},
  'performer' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole'], 'type'=>'Reference', 'path'=>'Consent.performer', 'min'=>0, 'max'=>Float::INFINITY},
  'organization' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Consent.organization', 'min'=>0, 'max'=>Float::INFINITY},
  'sourceAttachment' => {'type'=>'Attachment', 'path'=>'Consent.source[x]', 'min'=>0, 'max'=>1},
  'sourceReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Consent', 'http://hl7.org/fhir/StructureDefinition/DocumentReference', 'http://hl7.org/fhir/StructureDefinition/Contract', 'http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse'], 'type'=>'Reference', 'path'=>'Consent.source[x]', 'min'=>0, 'max'=>1},
  'policy' => {'type'=>'Consent::Policy', 'path'=>'Consent.policy', 'min'=>0, 'max'=>Float::INFINITY},
  'policyRule' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/consentpolicycodes'=>['cric', 'illinois-minor-procedure', 'hipaa-auth', 'hipaa-npp', 'hipaa-restrictions', 'hipaa-research', 'hipaa-self-pay', 'mdhhs-5515', 'nyssipp', 'va-10-0484', 'va-10-0485', 'va-10-5345', 'va-10-5345a', 'va-10-5345a-mhv', 'va-10-10116', 'va-21-4142', 'ssa-827', 'dch-3927', 'squaxin', 'nl-lsp', 'at-elga', 'nih-hipaa', 'nci', 'nih-grdr', 'nih-527', 'ga4gh']}, 'type'=>'CodeableConcept', 'path'=>'Consent.policyRule', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/consent-policy'}},
  'verification' => {'type'=>'Consent::Verification', 'path'=>'Consent.verification', 'min'=>0, 'max'=>Float::INFINITY},
  'provision' => {'type'=>'Consent::Provision', 'path'=>'Consent.provision', 'min'=>0, 'max'=>1}
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Xml

from_xml, #to_xml, valid?, validate

Methods included from Deprecate

#deprecate

Methods included from Json

from_json, #to_json

Methods included from Hashable

#from_hash, #to_hash

Methods inherited from Model

#==, #attribute_mismatch, #compare_attribute, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #to_reference, #valid?, #validate, #validate_profile

Constructor Details

This class inherits a constructor from FHIR::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FHIR::Model

Instance Attribute Details

#categoryObject

1-* [ CodeableConcept ]



167
168
169
# File 'lib/fhir_models/fhir/resources/Consent.rb', line 167

def category
  @category
end

#containedObject

0-* [ Resource ]



161
162
163
# File 'lib/fhir_models/fhir/resources/Consent.rb', line 161

def contained
  @contained
end

#dateTimeObject

0-1 dateTime



169
170
171
# File 'lib/fhir_models/fhir/resources/Consent.rb', line 169

def dateTime
  @dateTime
end

#extensionObject

0-* [ Extension ]



162
163
164
# File 'lib/fhir_models/fhir/resources/Consent.rb', line 162

def extension
  @extension
end

#idObject

0-1 id



156
157
158
# File 'lib/fhir_models/fhir/resources/Consent.rb', line 156

def id
  @id
end

#identifierObject

0-* [ Identifier ]



164
165
166
# File 'lib/fhir_models/fhir/resources/Consent.rb', line 164

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



158
159
160
# File 'lib/fhir_models/fhir/resources/Consent.rb', line 158

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



159
160
161
# File 'lib/fhir_models/fhir/resources/Consent.rb', line 159

def language
  @language
end

#metaObject

0-1 Meta



157
158
159
# File 'lib/fhir_models/fhir/resources/Consent.rb', line 157

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



163
164
165
# File 'lib/fhir_models/fhir/resources/Consent.rb', line 163

def modifierExtension
  @modifierExtension
end

#organizationObject

0-* [ Reference(Organization) ]



171
172
173
# File 'lib/fhir_models/fhir/resources/Consent.rb', line 171

def organization
  @organization
end

#patientObject

0-1 Reference(Patient)



168
169
170
# File 'lib/fhir_models/fhir/resources/Consent.rb', line 168

def patient
  @patient
end

#performerObject

0-* [ Reference(Organization|Patient|Practitioner|RelatedPerson|PractitionerRole) ]



170
171
172
# File 'lib/fhir_models/fhir/resources/Consent.rb', line 170

def performer
  @performer
end

#policyObject

0-* [ Consent::Policy ]



174
175
176
# File 'lib/fhir_models/fhir/resources/Consent.rb', line 174

def policy
  @policy
end

#policyRuleObject

0-1 CodeableConcept



175
176
177
# File 'lib/fhir_models/fhir/resources/Consent.rb', line 175

def policyRule
  @policyRule
end

#provisionObject

0-1 Consent::Provision



177
178
179
# File 'lib/fhir_models/fhir/resources/Consent.rb', line 177

def provision
  @provision
end

#scopeObject

1-1 CodeableConcept



166
167
168
# File 'lib/fhir_models/fhir/resources/Consent.rb', line 166

def scope
  @scope
end

#sourceAttachmentObject

0-1 Attachment



172
173
174
# File 'lib/fhir_models/fhir/resources/Consent.rb', line 172

def sourceAttachment
  @sourceAttachment
end

#sourceReferenceObject

0-1 Reference(Consent|DocumentReference|Contract|QuestionnaireResponse)



173
174
175
# File 'lib/fhir_models/fhir/resources/Consent.rb', line 173

def sourceReference
  @sourceReference
end

#statusObject

1-1 code



165
166
167
# File 'lib/fhir_models/fhir/resources/Consent.rb', line 165

def status
  @status
end

#textObject

0-1 Narrative



160
161
162
# File 'lib/fhir_models/fhir/resources/Consent.rb', line 160

def text
  @text
end

#verificationObject

0-* [ Consent::Verification ]



176
177
178
# File 'lib/fhir_models/fhir/resources/Consent.rb', line 176

def verification
  @verification
end

Instance Method Details

#resourceTypeObject



179
180
181
# File 'lib/fhir_models/fhir/resources/Consent.rb', line 179

def resourceType
  'Consent'
end