Class: FHIR::Communication
- Defined in:
- lib/fhir_models/fhir/resources/Communication.rb
Defined Under Namespace
Classes: Payload
Constant Summary collapse
- SEARCH_PARAMS =
["based-on", "category", "context", "identifier", "medium", "patient", "received", "recipient", "sender", "sent", "status", "subject"]
- METADATA =
{ 'id' => {'type'=>'id', 'path'=>'Communication.id', 'min'=>0, 'max'=>1}, 'meta' => {'type'=>'Meta', 'path'=>'Communication.meta', 'min'=>0, 'max'=>1}, 'implicitRules' => {'type'=>'uri', 'path'=>'Communication.implicitRules', 'min'=>0, 'max'=>1}, 'language' => {'type'=>'code', 'path'=>'Communication.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/languages'}}, 'text' => {'type'=>'Narrative', 'path'=>'Communication.text', 'min'=>0, 'max'=>1}, 'contained' => {'type'=>'Resource', 'path'=>'Communication.contained', 'min'=>0, 'max'=>Float::INFINITY}, 'extension' => {'type'=>'Extension', 'path'=>'Communication.extension', 'min'=>0, 'max'=>Float::INFINITY}, 'modifierExtension' => {'type'=>'Extension', 'path'=>'Communication.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY}, 'identifier' => {'type'=>'Identifier', 'path'=>'Communication.identifier', 'min'=>0, 'max'=>Float::INFINITY}, 'basedOn' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Communication.basedOn', 'min'=>0, 'max'=>Float::INFINITY}, 'parent' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Communication.parent', 'min'=>0, 'max'=>Float::INFINITY}, 'status' => {'valid_codes'=>{'http://hl7.org/fhir/communication-status'=>['in-progress', 'completed', 'suspended', 'rejected', 'failed', 'in-progress', 'completed', 'suspended', 'rejected', 'failed']}, 'type'=>'code', 'path'=>'Communication.status', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/communication-status'}}, 'category' => {'type'=>'CodeableConcept', 'path'=>'Communication.category', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>nil}}, 'medium' => {'valid_codes'=>{'http://hl7.org/fhir/v3/ParticipationMode'=>['ELECTRONIC', 'PHYSICAL', 'REMOTE', 'VERBAL', 'DICTATE', 'FACE', 'PHONE', 'VIDEOCONF', 'WRITTEN', 'FAXWRIT', 'HANDWRIT', 'MAILWRIT', 'ONLINEWRIT', 'EMAILWRIT', 'TYPEWRIT']}, 'type'=>'CodeableConcept', 'path'=>'Communication.medium', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/v3-ParticipationMode'}}, 'subject' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Group'], 'type'=>'Reference', 'path'=>'Communication.subject', 'min'=>0, 'max'=>1}, 'topic' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Communication.topic', 'min'=>0, 'max'=>Float::INFINITY}, 'context' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Encounter', 'http://hl7.org/fhir/StructureDefinition/EpisodeOfCare'], 'type'=>'Reference', 'path'=>'Communication.context', 'min'=>0, 'max'=>1}, 'sent' => {'type'=>'dateTime', 'path'=>'Communication.sent', 'min'=>0, 'max'=>1}, 'received' => {'type'=>'dateTime', 'path'=>'Communication.received', 'min'=>0, 'max'=>1}, 'sender' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Device', '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'=>'Communication.sender', 'min'=>0, 'max'=>1}, 'recipient' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Device', '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/Group'], 'type'=>'Reference', 'path'=>'Communication.recipient', 'min'=>0, 'max'=>Float::INFINITY}, 'reason' => {'valid_codes'=>{'http://hl7.org/fhir/v3/ActReason'=>['_ActAccommodationReason', 'ACCREQNA', 'FLRCNV', 'MEDNEC', 'PAT', '_ActCoverageReason', '_EligibilityActReasonCode', '_ActIneligibilityReason', 'COVSUS', 'DECSD', 'REGERR', '_CoverageEligibilityReason', 'AGE', 'CRIME', 'DIS', 'EMPLOY', 'FINAN', 'HEALTH', 'MULTI', 'PNC', 'STATUTORY', 'VEHIC', 'WORK', '_ActInformationManagementReason', '_ActHealthInformationManagementReason', '_ActConsentInformationAccessOverrideReason', 'OVRER', 'OVRPJ', 'OVRPS', 'OVRTPS', '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', '_ActInformationPrivacyReason', 'MARKT', 'OPERAT', 'LEGAL', 'ACCRED', 'COMPL', 'ENADMIN', 'OUTCOMS', 'PRGRPT', 'QUALIMP', 'SYSADMN', 'PAYMT', 'RESCH', 'SRVC', '_ActInvalidReason', 'ADVSTORAGE', 'COLDCHNBRK', 'EXPLOT', 'OUTSIDESCHED', 'PRODRECALL', '_ActInvoiceCancelReason', 'INCCOVPTY', 'INCINVOICE', 'INCPOLICY', 'INCPROV', '_ActNoImmunizationReason', 'IMMUNE', 'MEDPREC', 'OSTOCK', 'PATOBJ', 'PHILISOP', 'RELIG', 'VACEFF', 'VACSAF', '_ActSupplyFulfillmentRefusalReason', 'FRR01', 'FRR02', 'FRR03', 'FRR04', 'FRR05', 'FRR06', '_ClinicalResearchEventReason', 'RET', 'SCH', 'TRM', 'UNS', '_ClinicalResearchObservationReason', 'NPT', 'PPT', 'UPT', '_CombinedPharmacyOrderSuspendReasonCode', 'ALTCHOICE', 'CLARIF', 'DRUGHIGH', 'HOSPADM', 'LABINT', 'NON-AVAIL', 'PREG', 'SALG', 'SDDI', 'SDUPTHER', 'SINTOL', 'SURG', 'WASHOUT', '_ControlActNullificationReasonCode', 'ALTD', 'EIE', 'NORECMTCH', '_ControlActNullificationRefusalReasonType', 'INRQSTATE', 'NOMATCH', 'NOPRODMTCH', 'NOSERMTCH', 'NOVERMTCH', 'NOPERM', 'NOUSERPERM', 'NOAGNTPERM', 'NOUSRPERM', 'WRNGVER', '_ControlActReason', '_MedicationOrderAbortReasonCode', 'DISCONT', 'INEFFECT', 'MONIT', 'NOREQ', 'NOTCOVER', 'PREFUS', 'RECALL', 'REPLACE', 'DOSECHG', 'REPLACEFIX', 'UNABLE', '_MedicationOrderReleaseReasonCode', 'HOLDDONE', 'HOLDINAP', '_ModifyPrescriptionReasonType', 'ADMINERROR', 'CLINMOD', '_PharmacySupplyEventAbortReason', 'CONTRA', 'FOABORT', 'FOSUSP', 'NOPICK', 'PATDEC', 'QUANTCHG', '_PharmacySupplyEventStockReasonCode', 'FLRSTCK', 'LTC', 'OFFICE', 'PHARM', 'PROG', '_PharmacySupplyRequestRenewalRefusalReasonCode', 'ALREADYRX', 'FAMPHYS', 'MODIFY', 'NEEDAPMT', 'NOTAVAIL', 'NOTPAT', 'ONHOLD', 'PRNA', 'STOPMED', 'TOOEARLY', '_SupplyOrderAbortReasonCode', 'IMPROV', 'INTOL', 'NEWSTR', 'NEWTHER', '_GenericUpdateReasonCode', 'CHGDATA', 'FIXDATA', 'MDATA', 'NEWDATA', 'UMDATA', '_PatientProfileQueryReasonCode', 'ADMREV', 'PATCAR', 'PATREQ', 'PRCREV', 'REGUL', 'RSRCH', 'VALIDATION', '_PharmacySupplyRequestFulfillerRevisionRefusalReasonCode', 'LOCKED', 'UNKWNTARGET', '_RefusalReasonCode', '_SchedulingActReason', 'BLK', 'DEC', 'FIN', 'MED', 'MTG', 'PHY', '_StatusRevisionRefusalReasonCode', 'FILLED', '_SubstanceAdministrationPermissionRefusalReasonCode', 'PATINELIG', 'PROTUNMET', 'PROVUNAUTH', '_SubstanceAdminSubstitutionNotAllowedReason', 'ALGINT', 'COMPCON', 'THERCHAR', 'TRIAL', '_SubstanceAdminSubstitutionReason', 'CT', 'FP', 'OS', 'RR', '_TransferActReason', 'ER', 'RQ', '_ActBillableServiceReason', '_ActBillableClinicalServiceReason', 'BONUS', 'CHD', 'DEP', 'ECH', 'EDU', 'EMP', 'ESP', 'FAM', 'IND', 'INVOICE', 'PROA', 'RECOV', 'RETRO', 'SPC', 'SPO', 'TRAN']}, 'type'=>'CodeableConcept', 'path'=>'Communication.reason', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/v3-ActReason'}}, 'payload' => {'type'=>'Communication::Payload', 'path'=>'Communication.payload', 'min'=>0, 'max'=>Float::INFINITY}, 'note' => {'type'=>'Annotation', 'path'=>'Communication.note', 'min'=>0, 'max'=>Float::INFINITY} }
Instance Attribute Summary collapse
-
#basedOn ⇒ Object
0-* [ Reference(Resource) ].
-
#category ⇒ Object
0-1 CodeableConcept.
-
#contained ⇒ Object
0-* [ Resource ].
-
#context ⇒ Object
0-1 Reference(Encounter|EpisodeOfCare).
-
#extension ⇒ Object
0-* [ Extension ].
-
#id ⇒ Object
0-1 id.
-
#identifier ⇒ Object
0-* [ Identifier ].
-
#implicitRules ⇒ Object
0-1 uri.
-
#language ⇒ Object
0-1 code.
-
#medium ⇒ Object
0-* [ CodeableConcept ].
-
#meta ⇒ Object
0-1 Meta.
-
#modifierExtension ⇒ Object
0-* [ Extension ].
-
#note ⇒ Object
0-* [ Annotation ].
-
#parent ⇒ Object
0-* [ Reference(Resource) ].
-
#payload ⇒ Object
0-* [ Communication::Payload ].
-
#reason ⇒ Object
0-* [ CodeableConcept ].
-
#received ⇒ Object
0-1 dateTime.
-
#recipient ⇒ Object
0-* [ Reference(Device|Organization|Patient|Practitioner|RelatedPerson|Group) ].
-
#sender ⇒ Object
0-1 Reference(Device|Organization|Patient|Practitioner|RelatedPerson).
-
#sent ⇒ Object
0-1 dateTime.
-
#status ⇒ Object
0-1 code.
-
#subject ⇒ Object
0-1 Reference(Patient|Group).
-
#text ⇒ Object
0-1 Narrative.
-
#topic ⇒ Object
0-* [ Reference(Resource) ].
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
#basedOn ⇒ Object
0-* [ Reference(Resource) ]
69 70 71 |
# File 'lib/fhir_models/fhir/resources/Communication.rb', line 69 def basedOn @basedOn end |
#category ⇒ Object
0-1 CodeableConcept
72 73 74 |
# File 'lib/fhir_models/fhir/resources/Communication.rb', line 72 def category @category end |
#contained ⇒ Object
0-* [ Resource ]
65 66 67 |
# File 'lib/fhir_models/fhir/resources/Communication.rb', line 65 def contained @contained end |
#context ⇒ Object
0-1 Reference(Encounter|EpisodeOfCare)
76 77 78 |
# File 'lib/fhir_models/fhir/resources/Communication.rb', line 76 def context @context end |
#extension ⇒ Object
0-* [ Extension ]
66 67 68 |
# File 'lib/fhir_models/fhir/resources/Communication.rb', line 66 def extension @extension end |
#id ⇒ Object
0-1 id
60 61 62 |
# File 'lib/fhir_models/fhir/resources/Communication.rb', line 60 def id @id end |
#identifier ⇒ Object
0-* [ Identifier ]
68 69 70 |
# File 'lib/fhir_models/fhir/resources/Communication.rb', line 68 def identifier @identifier end |
#implicitRules ⇒ Object
0-1 uri
62 63 64 |
# File 'lib/fhir_models/fhir/resources/Communication.rb', line 62 def implicitRules @implicitRules end |
#language ⇒ Object
0-1 code
63 64 65 |
# File 'lib/fhir_models/fhir/resources/Communication.rb', line 63 def language @language end |
#medium ⇒ Object
0-* [ CodeableConcept ]
73 74 75 |
# File 'lib/fhir_models/fhir/resources/Communication.rb', line 73 def medium @medium end |
#meta ⇒ Object
0-1 Meta
61 62 63 |
# File 'lib/fhir_models/fhir/resources/Communication.rb', line 61 def @meta end |
#modifierExtension ⇒ Object
0-* [ Extension ]
67 68 69 |
# File 'lib/fhir_models/fhir/resources/Communication.rb', line 67 def modifierExtension @modifierExtension end |
#note ⇒ Object
0-* [ Annotation ]
83 84 85 |
# File 'lib/fhir_models/fhir/resources/Communication.rb', line 83 def note @note end |
#parent ⇒ Object
0-* [ Reference(Resource) ]
70 71 72 |
# File 'lib/fhir_models/fhir/resources/Communication.rb', line 70 def parent @parent end |
#payload ⇒ Object
0-* [ Communication::Payload ]
82 83 84 |
# File 'lib/fhir_models/fhir/resources/Communication.rb', line 82 def payload @payload end |
#reason ⇒ Object
0-* [ CodeableConcept ]
81 82 83 |
# File 'lib/fhir_models/fhir/resources/Communication.rb', line 81 def reason @reason end |
#received ⇒ Object
0-1 dateTime
78 79 80 |
# File 'lib/fhir_models/fhir/resources/Communication.rb', line 78 def received @received end |
#recipient ⇒ Object
0-* [ Reference(Device|Organization|Patient|Practitioner|RelatedPerson|Group) ]
80 81 82 |
# File 'lib/fhir_models/fhir/resources/Communication.rb', line 80 def recipient @recipient end |
#sender ⇒ Object
0-1 Reference(Device|Organization|Patient|Practitioner|RelatedPerson)
79 80 81 |
# File 'lib/fhir_models/fhir/resources/Communication.rb', line 79 def sender @sender end |
#sent ⇒ Object
0-1 dateTime
77 78 79 |
# File 'lib/fhir_models/fhir/resources/Communication.rb', line 77 def sent @sent end |
#status ⇒ Object
0-1 code
71 72 73 |
# File 'lib/fhir_models/fhir/resources/Communication.rb', line 71 def status @status end |
#subject ⇒ Object
0-1 Reference(Patient|Group)
74 75 76 |
# File 'lib/fhir_models/fhir/resources/Communication.rb', line 74 def subject @subject end |
#text ⇒ Object
0-1 Narrative
64 65 66 |
# File 'lib/fhir_models/fhir/resources/Communication.rb', line 64 def text @text end |
#topic ⇒ Object
0-* [ Reference(Resource) ]
75 76 77 |
# File 'lib/fhir_models/fhir/resources/Communication.rb', line 75 def topic @topic end |
Instance Method Details
#resourceType ⇒ Object
85 86 87 |
# File 'lib/fhir_models/fhir/resources/Communication.rb', line 85 def resourceType 'Communication' end |