Class: FHIR::Consent
- Defined in:
- lib/fhir/resources/Consent.rb
Defined Under Namespace
Classes: Except
Constant Summary collapse
- MULTIPLE_TYPES =
{ 'source' => ['Attachment', 'Identifier', 'Reference'] }
- SEARCH_PARAMS =
["action", "actor", "category", "consentor", "data", "date", "identifier", "organization", "patient", "period", "purpose", "recipient", "security", "source", "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' => {'type'=>'code', 'path'=>'Consent.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', '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'=>1}, 'status' => {'valid_codes'=>{'http://hl7.org/fhir/consent-status'=>['draft', 'proposed', 'active', 'rejected', 'inactive', 'entered-in-error', '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-status'}}, 'category' => {'valid_codes'=>{'http://hl7.org/fhir/consentcategorycodes'=>['cat1', 'advance-directive', 'cat2', 'medical-consent', 'cat3', 'hipaa', 'SSA-827', 'cat4', 'DCH-3927', 'squaxin', 'cat5', 'nl-lsp', 'at-elga', 'cat6', 'nih-hipaa', 'nci', 'nih-grdr', 'va-10-10116', 'nih-527', 'ga4gh', 'cat1', 'cat2', 'cat3', 'cat4', 'cat5', 'cat6']}, 'type'=>'CodeableConcept', 'path'=>'Consent.category', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/consent-category'}}, 'dateTime' => {'type'=>'dateTime', 'path'=>'Consent.dateTime', 'min'=>0, 'max'=>1}, 'period' => {'type'=>'Period', 'path'=>'Consent.period', 'min'=>0, 'max'=>1}, 'patient' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient'], 'type'=>'Reference', 'path'=>'Consent.patient', 'min'=>1, 'max'=>1}, 'consentor' => {'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'], 'type'=>'Reference', 'path'=>'Consent.consentor', 'min'=>0, 'max'=>Float::INFINITY}, 'organization' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Consent.organization', 'min'=>0, 'max'=>1}, 'sourceAttachment' => {'type'=>'Attachment', 'path'=>'Consent.source[x]', 'min'=>0, 'max'=>1}, 'sourceIdentifier' => {'type'=>'Identifier', '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'=>'uri', 'path'=>'Consent.policy', 'min'=>1, 'max'=>1}, 'recipient' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Group', '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/CareTeam'], 'type'=>'Reference', 'path'=>'Consent.recipient', 'min'=>0, 'max'=>Float::INFINITY}, 'purpose' => {'valid_codes'=>{'http://hl7.org/fhir/v3/ActReason'=>['PurposeOfUse', 'HMARKT', 'HOPERAT', 'DONAT', 'FRAUD', 'GOV', 'HACCRED', 'HCOMPL', 'HDECD', 'HDIRECT', 'HLEGAL', 'HOUTCOMS', 'HPRGRP', 'HQUALIMP', 'HSYSADMIN', 'MEMADMIN', 'PATADMIN', 'PATSFTY', 'PERFMSR', 'RECORDMGT', 'TRAIN', 'HPAYMT', 'CLMATTCH', 'COVAUTH', 'COVERAGE', 'ELIGDTRM', 'ELIGVER', 'ENROLLM', 'REMITADV', 'HRESCH', 'CLINTRCH', 'PATRQT', 'FAMRQT', 'PWATRNY', 'SUPNWK', 'PUBHLTH', 'DISASTER', 'THREAT', 'TREAT', 'CAREMGT', 'CLINTRL', 'ETREAT', 'POPHLTH']}, 'type'=>'Coding', 'path'=>'Consent.purpose', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/v3-PurposeOfUse'}}, 'except' => {'type'=>'Consent::Except', 'path'=>'Consent.except', 'min'=>0, 'max'=>Float::INFINITY} }
Instance Attribute Summary collapse
-
#category ⇒ Object
0-* [ CodeableConcept ].
-
#consentor ⇒ Object
0-* [ Reference(Organization|Patient|Practitioner|RelatedPerson) ].
-
#contained ⇒ Object
0-* [ Resource ].
-
#dateTime ⇒ Object
0-1 dateTime.
-
#except ⇒ Object
0-* [ Consent::Except ].
-
#extension ⇒ Object
0-* [ Extension ].
-
#id ⇒ Object
0-1 id.
-
#identifier ⇒ Object
0-1 Identifier.
-
#implicitRules ⇒ Object
0-1 uri.
-
#language ⇒ Object
0-1 code.
-
#meta ⇒ Object
0-1 Meta.
-
#modifierExtension ⇒ Object
0-* [ Extension ].
-
#organization ⇒ Object
0-1 Reference(Organization).
-
#patient ⇒ Object
1-1 Reference(Patient).
-
#period ⇒ Object
0-1 Period.
-
#policy ⇒ Object
1-1 uri.
-
#purpose ⇒ Object
0-* [ Coding ].
-
#recipient ⇒ Object
0-* [ Reference(Device|Group|Organization|Patient|Practitioner|RelatedPerson|CareTeam) ].
-
#sourceAttachment ⇒ Object
0-1 Attachment.
-
#sourceIdentifier ⇒ Object
0-1 Identifier.
-
#sourceReference ⇒ Object
0-1 Reference(Consent|DocumentReference|Contract|QuestionnaireResponse).
-
#status ⇒ Object
1-1 code.
-
#text ⇒ Object
0-1 Narrative.
Instance Method Summary collapse
Methods included from Xml
from_xml, is_valid?, #to_xml, validate
Methods included from Json
Methods included from Hashable
Methods inherited from Model
#attribute_mismatch, #compare_attribute, #equals?, #initialize, #is_valid?, #method_missing, #mismatch, #to_reference, #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
#category ⇒ Object
0-* [ CodeableConcept ]
121 122 123 |
# File 'lib/fhir/resources/Consent.rb', line 121 def category @category end |
#consentor ⇒ Object
0-* [ Reference(Organization|Patient|Practitioner|RelatedPerson) ]
125 126 127 |
# File 'lib/fhir/resources/Consent.rb', line 125 def @consentor end |
#contained ⇒ Object
0-* [ Resource ]
116 117 118 |
# File 'lib/fhir/resources/Consent.rb', line 116 def contained @contained end |
#dateTime ⇒ Object
0-1 dateTime
122 123 124 |
# File 'lib/fhir/resources/Consent.rb', line 122 def dateTime @dateTime end |
#except ⇒ Object
0-* [ Consent::Except ]
133 134 135 |
# File 'lib/fhir/resources/Consent.rb', line 133 def except @except end |
#extension ⇒ Object
0-* [ Extension ]
117 118 119 |
# File 'lib/fhir/resources/Consent.rb', line 117 def extension @extension end |
#id ⇒ Object
0-1 id
111 112 113 |
# File 'lib/fhir/resources/Consent.rb', line 111 def id @id end |
#identifier ⇒ Object
0-1 Identifier
119 120 121 |
# File 'lib/fhir/resources/Consent.rb', line 119 def identifier @identifier end |
#implicitRules ⇒ Object
0-1 uri
113 114 115 |
# File 'lib/fhir/resources/Consent.rb', line 113 def implicitRules @implicitRules end |
#language ⇒ Object
0-1 code
114 115 116 |
# File 'lib/fhir/resources/Consent.rb', line 114 def language @language end |
#meta ⇒ Object
0-1 Meta
112 113 114 |
# File 'lib/fhir/resources/Consent.rb', line 112 def @meta end |
#modifierExtension ⇒ Object
0-* [ Extension ]
118 119 120 |
# File 'lib/fhir/resources/Consent.rb', line 118 def modifierExtension @modifierExtension end |
#organization ⇒ Object
0-1 Reference(Organization)
126 127 128 |
# File 'lib/fhir/resources/Consent.rb', line 126 def organization @organization end |
#patient ⇒ Object
1-1 Reference(Patient)
124 125 126 |
# File 'lib/fhir/resources/Consent.rb', line 124 def patient @patient end |
#period ⇒ Object
0-1 Period
123 124 125 |
# File 'lib/fhir/resources/Consent.rb', line 123 def period @period end |
#policy ⇒ Object
1-1 uri
130 131 132 |
# File 'lib/fhir/resources/Consent.rb', line 130 def policy @policy end |
#purpose ⇒ Object
0-* [ Coding ]
132 133 134 |
# File 'lib/fhir/resources/Consent.rb', line 132 def purpose @purpose end |
#recipient ⇒ Object
0-* [ Reference(Device|Group|Organization|Patient|Practitioner|RelatedPerson|CareTeam) ]
131 132 133 |
# File 'lib/fhir/resources/Consent.rb', line 131 def recipient @recipient end |
#sourceAttachment ⇒ Object
0-1 Attachment
127 128 129 |
# File 'lib/fhir/resources/Consent.rb', line 127 def sourceAttachment @sourceAttachment end |
#sourceIdentifier ⇒ Object
0-1 Identifier
128 129 130 |
# File 'lib/fhir/resources/Consent.rb', line 128 def sourceIdentifier @sourceIdentifier end |
#sourceReference ⇒ Object
0-1 Reference(Consent|DocumentReference|Contract|QuestionnaireResponse)
129 130 131 |
# File 'lib/fhir/resources/Consent.rb', line 129 def sourceReference @sourceReference end |
#status ⇒ Object
1-1 code
120 121 122 |
# File 'lib/fhir/resources/Consent.rb', line 120 def status @status end |
#text ⇒ Object
0-1 Narrative
115 116 117 |
# File 'lib/fhir/resources/Consent.rb', line 115 def text @text end |
Instance Method Details
#resourceType ⇒ Object
135 136 137 |
# File 'lib/fhir/resources/Consent.rb', line 135 def resourceType 'Consent' end |