Class: FHIR::R4::Consent
- Defined in:
- lib/fhir_models/r4/generated/resources/Consent.rb
Defined Under Namespace
Classes: Policy, Provision, Verification
Constant Summary collapse
- MULTIPLE_TYPES =
{ 'source' => ['Attachment', 'Reference'] }
- SEARCH_PARAMS =
['action', 'actor', 'category', 'consentor', 'data', 'date', 'identifier', 'organization', 'patient', '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'}}, '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} }
Constants included from FHIR::R4
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
Instance Attribute Summary collapse
-
#category ⇒ Object
1-* [ CodeableConcept ].
-
#contained ⇒ Object
0-* [ Resource ].
-
#dateTime ⇒ Object
0-1 dateTime.
-
#extension ⇒ Object
0-* [ Extension ].
-
#id ⇒ Object
0-1 id.
-
#identifier ⇒ Object
0-* [ Identifier ].
-
#implicitRules ⇒ Object
0-1 uri.
-
#language ⇒ Object
0-1 code.
-
#meta ⇒ Object
0-1 Meta.
-
#modifierExtension ⇒ Object
0-* [ Extension ].
-
#organization ⇒ Object
0-* [ Reference(Organization) ].
-
#patient ⇒ Object
0-1 Reference(Patient).
-
#performer ⇒ Object
0-* [ Reference(Organization|Patient|Practitioner|RelatedPerson|PractitionerRole) ].
-
#policy ⇒ Object
0-* [ Consent::Policy ].
-
#policyRule ⇒ Object
0-1 CodeableConcept.
-
#provision ⇒ Object
0-1 Consent::Provision.
-
#scope ⇒ Object
1-1 CodeableConcept.
-
#sourceAttachment ⇒ Object
0-1 Attachment.
-
#sourceReference ⇒ Object
0-1 Reference(Consent|DocumentReference|Contract|QuestionnaireResponse).
-
#status ⇒ Object
1-1 code.
-
#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 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
1-* [ CodeableConcept ]
168 169 170 |
# File 'lib/fhir_models/r4/generated/resources/Consent.rb', line 168 def category @category end |
#contained ⇒ Object
0-* [ Resource ]
162 163 164 |
# File 'lib/fhir_models/r4/generated/resources/Consent.rb', line 162 def contained @contained end |
#dateTime ⇒ Object
0-1 dateTime
170 171 172 |
# File 'lib/fhir_models/r4/generated/resources/Consent.rb', line 170 def dateTime @dateTime end |
#extension ⇒ Object
0-* [ Extension ]
163 164 165 |
# File 'lib/fhir_models/r4/generated/resources/Consent.rb', line 163 def extension @extension end |
#id ⇒ Object
0-1 id
157 158 159 |
# File 'lib/fhir_models/r4/generated/resources/Consent.rb', line 157 def id @id end |
#identifier ⇒ Object
0-* [ Identifier ]
165 166 167 |
# File 'lib/fhir_models/r4/generated/resources/Consent.rb', line 165 def identifier @identifier end |
#implicitRules ⇒ Object
0-1 uri
159 160 161 |
# File 'lib/fhir_models/r4/generated/resources/Consent.rb', line 159 def implicitRules @implicitRules end |
#language ⇒ Object
0-1 code
160 161 162 |
# File 'lib/fhir_models/r4/generated/resources/Consent.rb', line 160 def language @language end |
#meta ⇒ Object
0-1 Meta
158 159 160 |
# File 'lib/fhir_models/r4/generated/resources/Consent.rb', line 158 def @meta end |
#modifierExtension ⇒ Object
0-* [ Extension ]
164 165 166 |
# File 'lib/fhir_models/r4/generated/resources/Consent.rb', line 164 def modifierExtension @modifierExtension end |
#organization ⇒ Object
0-* [ Reference(Organization) ]
172 173 174 |
# File 'lib/fhir_models/r4/generated/resources/Consent.rb', line 172 def organization @organization end |
#patient ⇒ Object
0-1 Reference(Patient)
169 170 171 |
# File 'lib/fhir_models/r4/generated/resources/Consent.rb', line 169 def patient @patient end |
#performer ⇒ Object
0-* [ Reference(Organization|Patient|Practitioner|RelatedPerson|PractitionerRole) ]
171 172 173 |
# File 'lib/fhir_models/r4/generated/resources/Consent.rb', line 171 def performer @performer end |
#policy ⇒ Object
0-* [ Consent::Policy ]
175 176 177 |
# File 'lib/fhir_models/r4/generated/resources/Consent.rb', line 175 def policy @policy end |
#policyRule ⇒ Object
0-1 CodeableConcept
176 177 178 |
# File 'lib/fhir_models/r4/generated/resources/Consent.rb', line 176 def policyRule @policyRule end |
#provision ⇒ Object
0-1 Consent::Provision
178 179 180 |
# File 'lib/fhir_models/r4/generated/resources/Consent.rb', line 178 def provision @provision end |
#scope ⇒ Object
1-1 CodeableConcept
167 168 169 |
# File 'lib/fhir_models/r4/generated/resources/Consent.rb', line 167 def scope @scope end |
#sourceAttachment ⇒ Object
0-1 Attachment
173 174 175 |
# File 'lib/fhir_models/r4/generated/resources/Consent.rb', line 173 def sourceAttachment @sourceAttachment end |
#sourceReference ⇒ Object
0-1 Reference(Consent|DocumentReference|Contract|QuestionnaireResponse)
174 175 176 |
# File 'lib/fhir_models/r4/generated/resources/Consent.rb', line 174 def sourceReference @sourceReference end |
#status ⇒ Object
1-1 code
166 167 168 |
# File 'lib/fhir_models/r4/generated/resources/Consent.rb', line 166 def status @status end |
#text ⇒ Object
0-1 Narrative
161 162 163 |
# File 'lib/fhir_models/r4/generated/resources/Consent.rb', line 161 def text @text end |
#verification ⇒ Object
0-* [ Consent::Verification ]
177 178 179 |
# File 'lib/fhir_models/r4/generated/resources/Consent.rb', line 177 def verification @verification end |
Instance Method Details
#resourceType ⇒ Object
180 181 182 |
# File 'lib/fhir_models/r4/generated/resources/Consent.rb', line 180 def resourceType 'Consent' end |