Class: FHIR::DSTU2::Contract
- Defined in:
- lib/fhir_dstu2_models/fhir/resources/Contract.rb
Defined Under Namespace
Classes: Actor, Friendly, Legal, Rule, Signer, Term, ValuedItem
Constant Summary collapse
- MULTIPLE_TYPES =
{ 'binding' => ['Attachment', 'Reference'] }
- SEARCH_PARAMS =
['actor', 'identifier', 'patient', 'signer', 'subject']
- METADATA =
{ 'id' => { 'type' => 'id', 'path' => 'Contract.id', 'min' => 0, 'max' => 1 }, 'meta' => { 'type' => 'Meta', 'path' => 'Contract.meta', 'min' => 0, 'max' => 1 }, 'implicitRules' => { 'type' => 'uri', 'path' => 'Contract.implicitRules', 'min' => 0, 'max' => 1 }, 'language' => { 'type' => 'code', 'path' => 'Contract.language', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'required', 'uri' => 'http://tools.ietf.org/html/bcp47' } }, 'text' => { 'type' => 'Narrative', 'path' => 'Contract.text', 'min' => 0, 'max' => 1 }, 'contained' => { 'type' => 'Resource', 'path' => 'Contract.contained', 'min' => 0, 'max' => Float::INFINITY }, 'extension' => { 'type' => 'Extension', 'path' => 'Contract.extension', 'min' => 0, 'max' => Float::INFINITY }, 'modifierExtension' => { 'type' => 'Extension', 'path' => 'Contract.modifierExtension', 'min' => 0, 'max' => Float::INFINITY }, 'identifier' => { 'type' => 'Identifier', 'path' => 'Contract.identifier', 'min' => 0, 'max' => 1 }, 'issued' => { 'type' => 'dateTime', 'path' => 'Contract.issued', 'min' => 0, 'max' => 1 }, 'applies' => { 'type' => 'Period', 'path' => 'Contract.applies', 'min' => 0, 'max' => 1 }, 'subject' => { 'type' => 'Reference', 'path' => 'Contract.subject', 'min' => 0, 'max' => Float::INFINITY }, 'authority' => { 'type' => 'Reference', 'path' => 'Contract.authority', 'min' => 0, 'max' => Float::INFINITY }, 'domain' => { 'type' => 'Reference', 'path' => 'Contract.domain', 'min' => 0, 'max' => Float::INFINITY }, 'type' => { 'valid_codes' => { 'http://hl7.org/fhir/contracttypecodes' => ['privacy', 'disclosure'] }, 'type' => 'CodeableConcept', 'path' => 'Contract.type', 'min' => 0, 'max' => 1, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/contract-type' } }, 'subType' => { 'valid_codes' => { 'http://hl7.org/fhir/contractsubtypecodes' => ['disclosure-CA', 'disclosure-US'] }, 'type' => 'CodeableConcept', 'path' => 'Contract.subType', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/contract-subtype' } }, 'action' => { 'valid_codes' => { 'http://www.hl7.org/fhir/contractaction' => ['action-a', 'action-b'] }, 'type' => 'CodeableConcept', 'path' => 'Contract.action', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/contract-action' } }, 'actionReason' => { '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' => 'Contract.actionReason', 'min' => 0, 'max' => Float::INFINITY, 'binding' => { 'strength' => 'example', 'uri' => 'http://hl7.org/fhir/ValueSet/v3-PurposeOfUse' } }, 'actor' => { 'type' => 'Contract::Actor', 'path' => 'Contract.actor', 'min' => 0, 'max' => Float::INFINITY }, 'valuedItem' => { 'type' => 'Contract::ValuedItem', 'path' => 'Contract.valuedItem', 'min' => 0, 'max' => Float::INFINITY }, 'signer' => { 'type' => 'Contract::Signer', 'path' => 'Contract.signer', 'min' => 0, 'max' => Float::INFINITY }, 'term' => { 'type' => 'Contract::Term', 'path' => 'Contract.term', 'min' => 0, 'max' => Float::INFINITY }, 'bindingAttachment' => { 'type' => 'Attachment', 'path' => 'Contract.binding[x]', 'min' => 0, 'max' => 1 }, 'bindingReference' => { 'type' => 'Reference', 'path' => 'Contract.binding[x]', 'min' => 0, 'max' => 1 }, 'friendly' => { 'type' => 'Contract::Friendly', 'path' => 'Contract.friendly', 'min' => 0, 'max' => Float::INFINITY }, 'legal' => { 'type' => 'Contract::Legal', 'path' => 'Contract.legal', 'min' => 0, 'max' => Float::INFINITY }, 'rule' => { 'type' => 'Contract::Rule', 'path' => 'Contract.rule', 'min' => 0, 'max' => Float::INFINITY } }
Instance Attribute Summary collapse
-
#action ⇒ Object
0-* [ CodeableConcept ].
-
#actionReason ⇒ Object
0-* [ CodeableConcept ].
-
#actor ⇒ Object
0-* [ Contract::Actor ].
-
#applies ⇒ Object
0-1 Period.
-
#authority ⇒ Object
0-* [ Reference() ].
-
#bindingAttachment ⇒ Object
0-1 Attachment.
-
#bindingReference ⇒ Object
0-1 Reference().
-
#contained ⇒ Object
0-* [ Resource ].
-
#domain ⇒ Object
0-* [ Reference() ].
-
#extension ⇒ Object
0-* [ Extension ].
-
#friendly ⇒ Object
0-* [ Contract::Friendly ].
-
#id ⇒ Object
0-1 id.
-
#identifier ⇒ Object
0-1 Identifier.
-
#implicitRules ⇒ Object
0-1 uri.
-
#issued ⇒ Object
0-1 dateTime.
-
#language ⇒ Object
0-1 code.
-
#legal ⇒ Object
0-* [ Contract::Legal ].
-
#meta ⇒ Object
0-1 Meta.
-
#modifierExtension ⇒ Object
0-* [ Extension ].
-
#rule ⇒ Object
0-* [ Contract::Rule ].
-
#signer ⇒ Object
0-* [ Contract::Signer ].
-
#subject ⇒ Object
0-* [ Reference() ].
-
#subType ⇒ Object
0-* [ CodeableConcept ].
-
#term ⇒ Object
0-* [ Contract::Term ].
-
#text ⇒ Object
0-1 Narrative.
-
#type ⇒ Object
0-1 CodeableConcept.
-
#valuedItem ⇒ Object
0-* [ Contract::ValuedItem ].
Instance Method Summary collapse
Methods included from Xml
from_xml, #to_xml, valid?, validate
Methods included from Deprecate
Methods included from Json
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
Constructor Details
This class inherits a constructor from FHIR::DSTU2::Model
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class FHIR::DSTU2::Model
Instance Attribute Details
#action ⇒ Object
0-* [ CodeableConcept ]
303 304 305 |
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 303 def action @action end |
#actionReason ⇒ Object
0-* [ CodeableConcept ]
304 305 306 |
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 304 def actionReason @actionReason end |
#actor ⇒ Object
0-* [ Contract::Actor ]
305 306 307 |
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 305 def actor @actor end |
#applies ⇒ Object
0-1 Period
297 298 299 |
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 297 def applies @applies end |
#authority ⇒ Object
0-* [ Reference() ]
299 300 301 |
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 299 def @authority end |
#bindingAttachment ⇒ Object
0-1 Attachment
309 310 311 |
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 309 def bindingAttachment @bindingAttachment end |
#bindingReference ⇒ Object
0-1 Reference()
310 311 312 |
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 310 def bindingReference @bindingReference end |
#contained ⇒ Object
0-* [ Resource ]
292 293 294 |
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 292 def contained @contained end |
#domain ⇒ Object
0-* [ Reference() ]
300 301 302 |
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 300 def domain @domain end |
#extension ⇒ Object
0-* [ Extension ]
293 294 295 |
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 293 def extension @extension end |
#friendly ⇒ Object
0-* [ Contract::Friendly ]
311 312 313 |
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 311 def friendly @friendly end |
#id ⇒ Object
0-1 id
287 288 289 |
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 287 def id @id end |
#identifier ⇒ Object
0-1 Identifier
295 296 297 |
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 295 def identifier @identifier end |
#implicitRules ⇒ Object
0-1 uri
289 290 291 |
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 289 def implicitRules @implicitRules end |
#issued ⇒ Object
0-1 dateTime
296 297 298 |
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 296 def issued @issued end |
#language ⇒ Object
0-1 code
290 291 292 |
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 290 def language @language end |
#legal ⇒ Object
0-* [ Contract::Legal ]
312 313 314 |
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 312 def legal @legal end |
#meta ⇒ Object
0-1 Meta
288 289 290 |
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 288 def @meta end |
#modifierExtension ⇒ Object
0-* [ Extension ]
294 295 296 |
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 294 def modifierExtension @modifierExtension end |
#rule ⇒ Object
0-* [ Contract::Rule ]
313 314 315 |
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 313 def rule @rule end |
#signer ⇒ Object
0-* [ Contract::Signer ]
307 308 309 |
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 307 def signer @signer end |
#subject ⇒ Object
0-* [ Reference() ]
298 299 300 |
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 298 def subject @subject end |
#subType ⇒ Object
0-* [ CodeableConcept ]
302 303 304 |
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 302 def subType @subType end |
#term ⇒ Object
0-* [ Contract::Term ]
308 309 310 |
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 308 def term @term end |
#text ⇒ Object
0-1 Narrative
291 292 293 |
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 291 def text @text end |
#type ⇒ Object
0-1 CodeableConcept
301 302 303 |
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 301 def type @type end |
#valuedItem ⇒ Object
0-* [ Contract::ValuedItem ]
306 307 308 |
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 306 def valuedItem @valuedItem end |
Instance Method Details
#resourceType ⇒ Object
315 316 317 |
# File 'lib/fhir_dstu2_models/fhir/resources/Contract.rb', line 315 def resourceType 'Contract' end |