Class: FHIR::R5::Consent
- 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
Instance Attribute Summary collapse
-
#category ⇒ Object
0-* [ CodeableConcept ].
-
#contained ⇒ Object
0-* [ Resource ].
-
#controller ⇒ Object
0-* [ Reference(HealthcareService|Organization|Patient|Practitioner) ].
-
#date ⇒ Object
0-1 date.
-
#decision ⇒ Object
0-1 code.
-
#extension ⇒ Object
0-* [ Extension ].
-
#grantee ⇒ Object
0-* [ Reference(CareTeam|HealthcareService|Organization|Patient|Practitioner|RelatedPerson|PractitionerRole) ].
-
#grantor ⇒ Object
0-* [ Reference(CareTeam|HealthcareService|Organization|Patient|Practitioner|RelatedPerson|PractitionerRole) ].
-
#id ⇒ Object
0-1 id.
-
#identifier ⇒ Object
0-* [ Identifier ].
-
#implicitRules ⇒ Object
0-1 uri.
-
#language ⇒ Object
0-1 code.
-
#manager ⇒ Object
0-* [ Reference(HealthcareService|Organization|Patient|Practitioner) ].
-
#meta ⇒ Object
0-1 Meta.
-
#modifierExtension ⇒ Object
0-* [ Extension ].
-
#period ⇒ Object
0-1 Period.
-
#policyBasis ⇒ Object
0-1 Consent::PolicyBasis.
-
#policyText ⇒ Object
0-* [ Reference(DocumentReference) ].
-
#provision ⇒ Object
0-* [ Consent::Provision ].
-
#regulatoryBasis ⇒ Object
0-* [ CodeableConcept ].
-
#sourceAttachment ⇒ Object
0-* [ Attachment ].
-
#sourceReference ⇒ Object
0-* [ Reference(Consent|DocumentReference|Contract|QuestionnaireResponse) ].
-
#status ⇒ Object
1-1 code.
-
#subject ⇒ Object
0-1 Reference(Patient|Practitioner|Group).
-
#text ⇒ Object
0-1 Narrative.
-
#verification ⇒ Object
0-* [ Consent::Verification ].
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
Methods included from ClassXml
#from_xml, #valid?, #validate, #xml_node_to_hash
Methods included from InstanceXml
Methods included from ClassJson
Methods included from InstanceJson
Methods included from Hashable
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
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
#category ⇒ Object
0-* [ CodeableConcept ]
174 175 176 |
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 174 def category @category end |
#contained ⇒ Object
0-* [ Resource ]
169 170 171 |
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 169 def contained @contained end |
#controller ⇒ Object
0-* [ Reference(HealthcareService|Organization|Patient|Practitioner) ]
181 182 183 |
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 181 def controller @controller end |
#date ⇒ Object
0-1 date
176 177 178 |
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 176 def date @date end |
#decision ⇒ Object
0-1 code
188 189 190 |
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 188 def decision @decision end |
#extension ⇒ Object
0-* [ Extension ]
170 171 172 |
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 170 def extension @extension end |
#grantee ⇒ Object
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 |
#grantor ⇒ Object
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 |
#id ⇒ Object
0-1 id
164 165 166 |
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 164 def id @id end |
#identifier ⇒ Object
0-* [ Identifier ]
172 173 174 |
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 172 def identifier @identifier end |
#implicitRules ⇒ Object
0-1 uri
166 167 168 |
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 166 def implicitRules @implicitRules end |
#language ⇒ Object
0-1 code
167 168 169 |
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 167 def language @language end |
#manager ⇒ Object
0-* [ Reference(HealthcareService|Organization|Patient|Practitioner) ]
180 181 182 |
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 180 def manager @manager end |
#meta ⇒ Object
0-1 Meta
165 166 167 |
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 165 def @meta end |
#modifierExtension ⇒ Object
0-* [ Extension ]
171 172 173 |
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 171 def modifierExtension @modifierExtension end |
#period ⇒ Object
0-1 Period
177 178 179 |
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 177 def period @period end |
#policyBasis ⇒ Object
0-1 Consent::PolicyBasis
185 186 187 |
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 185 def policyBasis @policyBasis end |
#policyText ⇒ Object
0-* [ Reference(DocumentReference) ]
186 187 188 |
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 186 def policyText @policyText end |
#provision ⇒ Object
0-* [ Consent::Provision ]
189 190 191 |
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 189 def provision @provision end |
#regulatoryBasis ⇒ Object
0-* [ CodeableConcept ]
184 185 186 |
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 184 def regulatoryBasis @regulatoryBasis end |
#sourceAttachment ⇒ Object
0-* [ Attachment ]
182 183 184 |
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 182 def sourceAttachment @sourceAttachment end |
#sourceReference ⇒ Object
0-* [ Reference(Consent|DocumentReference|Contract|QuestionnaireResponse) ]
183 184 185 |
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 183 def sourceReference @sourceReference end |
#status ⇒ Object
1-1 code
173 174 175 |
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 173 def status @status end |
#subject ⇒ Object
0-1 Reference(Patient|Practitioner|Group)
175 176 177 |
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 175 def subject @subject end |
#text ⇒ Object
0-1 Narrative
168 169 170 |
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 168 def text @text end |
#verification ⇒ Object
0-* [ Consent::Verification ]
187 188 189 |
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 187 def verification @verification end |
Instance Method Details
#resourceType ⇒ Object
191 192 193 |
# File 'lib/fhir_models/r5/generated/resources/Consent.rb', line 191 def resourceType 'Consent' end |