Class: FHIR::R5::Consent

Inherits:
Model show all
Includes:
Hashable, Json, Xml
Defined in:
lib/fhir_models/r5/generated/resources/Consent.rb

Defined Under Namespace

Classes: PolicyBasis, Provision, Verification

Constant Summary collapse

SEARCH_PARAMS =
['action', 'actor', 'category', 'controller', 'data', 'date', 'grantee', 'identifier', 'manager', 'patient', 'period', 'purpose', 'security-label', 'source-reference', 'status', 'subject', 'verified', 'verified-date']
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' => {'type'=>'code', 'path'=>'Consent.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'additional'=>[{'purpose'=>'starter', 'valueSet'=>'http://hl7.org/fhir/ValueSet/languages'}], 'uri'=>'http://hl7.org/fhir/ValueSet/all-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', 'active', 'inactive', 'not-done', 'entered-in-error', 'unknown']}, 'type'=>'code', 'path'=>'Consent.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/consent-state-codes'}},
  'category' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/consentscope'=>['research', 'patient-privacy', 'treatment'], 'http://terminology.hl7.org/CodeSystem/consentcategorycodes'=>['acd', 'dnr', 'emrgonly', 'hcd', 'npp', 'polst', 'research', 'rsdid', 'rsreid'], 'http://terminology.hl7.org/CodeSystem/v3-ActCode'=>['_ActConsentType', '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'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/consent-category'}},
  'subject' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/Group'], 'type'=>'Reference', 'path'=>'Consent.subject', 'min'=>0, 'max'=>1},
  'date' => {'type'=>'date', 'path'=>'Consent.date', 'min'=>0, 'max'=>1},
  'period' => {'type'=>'Period', 'path'=>'Consent.period', 'min'=>0, 'max'=>1},
  'grantor' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/CareTeam', 'http://hl7.org/fhir/StructureDefinition/HealthcareService', '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.grantor', 'min'=>0, 'max'=>Float::INFINITY},
  'grantee' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/CareTeam', 'http://hl7.org/fhir/StructureDefinition/HealthcareService', '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.grantee', 'min'=>0, 'max'=>Float::INFINITY},
  'manager' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/HealthcareService', 'http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner'], 'type'=>'Reference', 'path'=>'Consent.manager', 'min'=>0, 'max'=>Float::INFINITY},
  'controller' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/HealthcareService', 'http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner'], 'type'=>'Reference', 'path'=>'Consent.controller', 'min'=>0, 'max'=>Float::INFINITY},
  'sourceAttachment' => {'type'=>'Attachment', 'path'=>'Consent.sourceAttachment', 'min'=>0, 'max'=>Float::INFINITY},
  '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.sourceReference', 'min'=>0, 'max'=>Float::INFINITY},
  'regulatoryBasis' => {'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', 'ch-epr']}, 'type'=>'CodeableConcept', 'path'=>'Consent.regulatoryBasis', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/consent-policy'}},
  'policyBasis' => {'type'=>'Consent::PolicyBasis', 'path'=>'Consent.policyBasis', 'min'=>0, 'max'=>1},
  'policyText' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/DocumentReference'], 'type'=>'Reference', 'path'=>'Consent.policyText', 'min'=>0, 'max'=>Float::INFINITY},
  'verification' => {'type'=>'Consent::Verification', 'path'=>'Consent.verification', 'min'=>0, 'max'=>Float::INFINITY},
  'decision' => {'valid_codes'=>{'http://hl7.org/fhir/consent-provision-type'=>['deny', 'permit']}, 'type'=>'code', 'path'=>'Consent.decision', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/consent-provision-type'}},
  'provision' => {'type'=>'Consent::Provision', 'path'=>'Consent.provision', 'min'=>0, 'max'=>Float::INFINITY}
}

Constants included from FHIR::R4

FHIR::R4::PRIMITIVES, FHIR::R4::RESOURCES, FHIR::R4::TYPES

Constants included from FHIR

Account, ActivityDefinition, Address, AdverseEvent, Age, AllergyIntolerance, Annotation, Appointment, AppointmentResponse, Attachment, AuditEvent, BackboneElement, Basic, Binary, BiologicallyDerivedProduct, BodyStructure, Bundle, CapabilityStatement, CarePlan, CareTeam, CatalogEntry, ChargeItem, ChargeItemDefinition, Claim, ClaimResponse, ClinicalImpression, CodeSystem, CodeableConcept, Coding, Communication, CommunicationRequest, CompartmentDefinition, Composition, ConceptMap, Condition, Consent, ContactDetail, ContactPoint, Contract, Contributor, Count, Coverage, CoverageEligibilityRequest, CoverageEligibilityResponse, DataRequirement, Definitions, DetectedIssue, Device, DeviceDefinition, DeviceMetric, DeviceRequest, DeviceUseStatement, DiagnosticReport, Distance, DocumentManifest, DocumentReference, DomainResource, Dosage, Duration, EffectEvidenceSynthesis, Element, ElementDefinition, Encounter, Endpoint, EnrollmentRequest, EnrollmentResponse, EpisodeOfCare, EventDefinition, Evidence, EvidenceVariable, ExampleScenario, ExplanationOfBenefit, Expression, Extension, FamilyMemberHistory, Flag, Goal, GraphDefinition, Group, GuidanceResponse, HealthcareService, HumanName, Identifier, ImagingStudy, Immunization, ImmunizationEvaluation, ImmunizationRecommendation, ImplementationGuide, InsurancePlan, Invoice, Library, Linkage, List, Location, MarketingStatus, Measure, MeasureReport, Media, Medication, MedicationAdministration, MedicationDispense, MedicationKnowledge, MedicationRequest, MedicationStatement, MedicinalProduct, MedicinalProductAuthorization, MedicinalProductContraindication, MedicinalProductIndication, MedicinalProductIngredient, MedicinalProductInteraction, MedicinalProductManufactured, MedicinalProductPackaged, MedicinalProductPharmaceutical, MedicinalProductUndesirableEffect, MessageDefinition, MessageHeader, Meta, MolecularSequence, Money, NamingSystem, Narrative, NutritionOrder, Observation, ObservationDefinition, OperationDefinition, OperationOutcome, Organization, OrganizationAffiliation, PRIMITIVES, ParameterDefinition, Parameters, Patient, PaymentNotice, PaymentReconciliation, Period, Person, PlanDefinition, Population, Practitioner, PractitionerRole, Procedure, ProdCharacteristic, ProductShelfLife, Provenance, Quantity, Questionnaire, QuestionnaireResponse, FHIR::RESOURCES, FHIR::Range, FHIR::Ratio, FHIR::Reference, FHIR::RelatedArtifact, FHIR::RelatedPerson, FHIR::RequestGroup, FHIR::ResearchDefinition, FHIR::ResearchElementDefinition, FHIR::ResearchStudy, FHIR::ResearchSubject, FHIR::Resource, FHIR::RiskAssessment, FHIR::RiskEvidenceSynthesis, SampledData, Schedule, SearchParameter, ServiceRequest, Signature, Slot, Specimen, SpecimenDefinition, StructureDefinition, StructureDefinitionCompare, StructureMap, Subscription, Substance, SubstanceAmount, SubstanceNucleicAcid, SubstancePolymer, SubstanceProtein, SubstanceReferenceInformation, SubstanceSourceMaterial, SubstanceSpecification, SupplyDelivery, SupplyRequest, TYPES, Task, TerminologyCapabilities, TestReport, TestScript, Timing, TriggerDefinition, UsageContext, ValueSet, VerificationResult, VisionPrescription

Constants included from FHIR::R5

PRIMITIVES, RESOURCES, TYPES

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from FHIR::R4

#fhir_version_string, #versioned_fhir_module

Methods included from FHIR

default_logger, fhir_version_string, logger, logger=, primitive?, versioned_fhir_module

Methods included from ClassMethods

#from_contents

Methods included from ClassXml

#from_xml, #valid?, #validate, #xml_node_to_hash

Methods included from InstanceXml

#hash_to_xml_node, #to_xml

Methods included from ClassJson

#from_json

Methods included from InstanceJson

#to_json

Methods included from Hashable

#from_hash, #to_hash

Methods included from FHIR::R5

#fhir_version_string, #versioned_fhir_module

Methods inherited from Model

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

Methods included from Deprecate

#deprecate

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

0-* [ CodeableConcept ]



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

def category
  @category
end

#containedObject

0-* [ Resource ]



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

def contained
  @contained
end

#controllerObject

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



181
182
183
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 181

def controller
  @controller
end

#dateObject

0-1 date



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

def date
  @date
end

#decisionObject

0-1 code



188
189
190
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 188

def decision
  @decision
end

#extensionObject

0-* [ Extension ]



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

def extension
  @extension
end

#granteeObject

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



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

def grantee
  @grantee
end

#grantorObject

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



178
179
180
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 178

def grantor
  @grantor
end

#idObject

0-1 id



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

def id
  @id
end

#identifierObject

0-* [ Identifier ]



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

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



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

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



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

def language
  @language
end

#managerObject

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



180
181
182
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 180

def manager
  @manager
end

#metaObject

0-1 Meta



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

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



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

def modifierExtension
  @modifierExtension
end

#periodObject

0-1 Period



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

def period
  @period
end

#policyBasisObject

0-1 Consent::PolicyBasis



185
186
187
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 185

def policyBasis
  @policyBasis
end

#policyTextObject

0-* [ Reference(DocumentReference) ]



186
187
188
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 186

def policyText
  @policyText
end

#provisionObject

0-* [ Consent::Provision ]



189
190
191
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 189

def provision
  @provision
end

#regulatoryBasisObject

0-* [ CodeableConcept ]



184
185
186
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 184

def regulatoryBasis
  @regulatoryBasis
end

#sourceAttachmentObject

0-* [ Attachment ]



182
183
184
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 182

def sourceAttachment
  @sourceAttachment
end

#sourceReferenceObject

0-* [ Reference(Consent|DocumentReference|Contract|QuestionnaireResponse) ]



183
184
185
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 183

def sourceReference
  @sourceReference
end

#statusObject

1-1 code



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

def status
  @status
end

#subjectObject

0-1 Reference(Patient|Practitioner|Group)



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

def subject
  @subject
end

#textObject

0-1 Narrative



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

def text
  @text
end

#verificationObject

0-* [ Consent::Verification ]



187
188
189
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 187

def verification
  @verification
end

Instance Method Details

#resourceTypeObject



191
192
193
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 191

def resourceType
  'Consent'
end