Class: FHIR::STU3::Contract

Inherits:
Model
  • Object
show all
Includes:
Hashable, Json, Xml
Defined in:
lib/fhir_stu3_models/fhir/resources/Contract.rb

Defined Under Namespace

Classes: Agent, Friendly, Legal, Rule, Signer, Term, ValuedItem

Constant Summary collapse

MULTIPLE_TYPES =
{
  'binding' => ['Attachment', 'Reference']
}
SEARCH_PARAMS =
['agent', 'authority', 'domain', 'identifier', 'issued', 'patient', 'signer', 'subject', 'term-topic']
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' => {'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', 'pt', 'pt-BR', 'ru', 'ru-RU', 'sr', 'sr-SP', 'sv', 'sv-SE', 'te', 'zh', 'zh-CN', 'zh-HK', 'zh-SG', 'zh-TW']}, 'type'=>'code', 'path'=>'Contract.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/languages'}},
  '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},
  'status' => {'valid_codes'=>{'http://hl7.org/fhir/contract-status'=>['amended', 'appended', 'cancelled', 'disputed', 'entered-in-error', 'executable', 'executed', 'negotiable', 'offered', 'policy', 'rejected', 'renewed', 'revoked', 'resolved', 'terminated']}, 'type'=>'code', 'path'=>'Contract.status', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/contract-status'}},
  'issued' => {'type'=>'dateTime', 'path'=>'Contract.issued', 'min'=>0, 'max'=>1},
  'applies' => {'type'=>'Period', 'path'=>'Contract.applies', 'min'=>0, 'max'=>1},
  'subject' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Contract.subject', 'min'=>0, 'max'=>Float::INFINITY},
  'topic' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Contract.topic', 'min'=>0, 'max'=>Float::INFINITY},
  'authority' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Contract.authority', 'min'=>0, 'max'=>Float::INFINITY},
  'domain' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Location'], 'type'=>'Reference', 'path'=>'Contract.domain', 'min'=>0, 'max'=>Float::INFINITY},
  'type' => {'valid_codes'=>{'http://hl7.org/fhir/contracttypecodes'=>['privacy', 'disclosure', 'healthinsurance', 'supply', 'consent']}, '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'=>['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'=>'CodeableConcept', 'path'=>'Contract.actionReason', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/v3-PurposeOfUse'}},
  'decisionType' => {'valid_codes'=>{'http://hl7.org/fhir/v3/ActCode'=>['EMRGONLY', 'GRANTORCHOICE', 'IMPLIED', 'IMPLIEDD', 'NOCONSENT', 'NOPP', 'OPTIN', 'OPTINR', 'OPTOUT', 'OPTOUTE']}, 'type'=>'CodeableConcept', 'path'=>'Contract.decisionType', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/v3-ActConsentDirective'}},
  'contentDerivative' => {'valid_codes'=>{'http://hl7.org/fhir/contract-content-derivative'=>['registration', 'retrieval', 'statement', 'shareable']}, 'type'=>'CodeableConcept', 'path'=>'Contract.contentDerivative', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/contract-content-derivative'}},
  'securityLabel' => {'valid_codes'=>{'http://hl7.org/fhir/v3/Confidentiality'=>['U', 'L', 'M', 'N', 'R', 'V'], 'http://hl7.org/fhir/v3/ActCode'=>['ETH', 'GDIS', 'HIV', 'PSY', 'SCA', 'SOC', 'SDV', 'SEX', 'STD', 'TBOO', 'SICKLE', 'DEMO', 'DOB', 'GENDER', 'LIVARG', 'MARST', 'RACE', 'REL', 'B', 'EMPL', 'LOCIS', 'SSP', 'ADOL', 'CEL', 'DIA', 'DRGIS', 'EMP', 'PDS', 'PRS', 'COMPT', 'HRCOMPT', 'RESCOMPT', 'RMGTCOMPT', 'SecurityPolicy', 'ObligationPolicy', 'ANONY', 'AOD', 'AUDIT', 'AUDTR', 'CPLYCC', 'CPLYCD', 'CPLYJPP', 'CPLYOPP', 'CPLYOSP', 'CPLYPOL', 'DECLASSIFYLABEL', 'DEID', 'DELAU', 'DOWNGRDLABEL', 'DRIVLABEL', 'ENCRYPT', 'ENCRYPTR', 'ENCRYPTT', 'ENCRYPTU', 'HUAPRV', 'LABEL', 'MASK', 'MINEC', 'PERSISTLABEL', 'PRIVMARK', 'PSEUD', 'REDACT', 'UPGRDLABEL', 'RefrainPolicy', 'NOAUTH', 'NOCOLLECT', 'NODSCLCD', 'NODSCLCDS', 'NOINTEGRATE', 'NOLIST', 'NOMOU', 'NOORGPOL', 'NOPAT', 'NOPERSISTP', 'NORDSCLCD', 'NORDSCLCDS', 'NORDSCLW', 'NORELINK', 'NOREUSE', 'NOVIP', 'ORCON'], 'http://hl7.org/fhir/v3/ObservationValue'=>['ABSTRED', 'AGGRED', 'ANONYED', 'MAPPED', 'MASKED', 'PSEUDED', 'REDACTED', 'SUBSETTED', 'SYNTAC', 'TRSLT', 'VERSIONED', 'CRYTOHASH', 'DIGSIG', 'HRELIABLE', 'RELIABLE', 'UNCERTREL', 'UNRELIABLE', 'CLINAST', 'DEVAST', 'HCPAST', 'PACQAST', 'PATAST', 'PAYAST', 'PROAST', 'SDMAST', 'CLINRPT', 'DEVRPT', 'HCPRPT', 'PACQRPT', 'PATRPT', 'PAYRPT', 'PRORPT', 'SDMRPT'], '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'], 'http://hl7.org/fhir/v3/ActUSPrivacyLaw'=>['_ActUSPrivacyLaw', '42CFRPart2', 'CommonRule', 'HIPAANOPP', 'HIPAAPsyNotes', 'HIPAASelfPay', 'Title38Section7332'], nil=>[]}, 'type'=>'Coding', 'path'=>'Contract.securityLabel', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/security-labels'}},
  'agent' => {'type'=>'Contract::Agent', 'path'=>'Contract.agent', 'min'=>0, 'max'=>Float::INFINITY},
  'signer' => {'type'=>'Contract::Signer', 'path'=>'Contract.signer', 'min'=>0, 'max'=>Float::INFINITY},
  'valuedItem' => {'type'=>'Contract::ValuedItem', 'path'=>'Contract.valuedItem', '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_profiles'=>['http://hl7.org/fhir/StructureDefinition/Composition', 'http://hl7.org/fhir/StructureDefinition/DocumentReference', 'http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse'], '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

Instance Method Summary collapse

Methods included from Xml

from_xml, #to_xml, valid?, validate

Methods included from Deprecate

#deprecate

Methods included from Json

from_json, #to_json

Methods included from Hashable

#from_hash, #to_hash

Methods inherited from Model

#==, #attribute_mismatch, #compare_attribute, #each_element, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #to_reference, #valid?, #validate, #validate_profile

Constructor Details

This class inherits a constructor from FHIR::STU3::Model

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FHIR::STU3::Model

Instance Attribute Details

#actionObject

0-* [ CodeableConcept ]



312
313
314
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 312

def action
  @action
end

#actionReasonObject

0-* [ CodeableConcept ]



313
314
315
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 313

def actionReason
  @actionReason
end

#agentObject

0-* [ Contract::Agent ]



317
318
319
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 317

def agent
  @agent
end

#appliesObject

0-1 Period



305
306
307
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 305

def applies
  @applies
end

#authorityObject

0-* [ Reference(Organization) ]



308
309
310
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 308

def authority
  @authority
end

#bindingAttachmentObject

0-1 Attachment



321
322
323
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 321

def bindingAttachment
  @bindingAttachment
end

#bindingReferenceObject

0-1 Reference(Composition|DocumentReference|QuestionnaireResponse)



322
323
324
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 322

def bindingReference
  @bindingReference
end

#containedObject

0-* [ Resource ]



299
300
301
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 299

def contained
  @contained
end

#contentDerivativeObject

0-1 CodeableConcept



315
316
317
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 315

def contentDerivative
  @contentDerivative
end

#decisionTypeObject

0-1 CodeableConcept



314
315
316
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 314

def decisionType
  @decisionType
end

#domainObject

0-* [ Reference(Location) ]



309
310
311
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 309

def domain
  @domain
end

#extensionObject

0-* [ Extension ]



300
301
302
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 300

def extension
  @extension
end

#friendlyObject

0-* [ Contract::Friendly ]



323
324
325
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 323

def friendly
  @friendly
end

#idObject

0-1 id



294
295
296
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 294

def id
  @id
end

#identifierObject

0-1 Identifier



302
303
304
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 302

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



296
297
298
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 296

def implicitRules
  @implicitRules
end

#issuedObject

0-1 dateTime



304
305
306
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 304

def issued
  @issued
end

#languageObject

0-1 code



297
298
299
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 297

def language
  @language
end

0-* [ Contract::Legal ]



324
325
326
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 324

def legal
  @legal
end

#metaObject

0-1 Meta



295
296
297
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 295

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



301
302
303
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 301

def modifierExtension
  @modifierExtension
end

#ruleObject

0-* [ Contract::Rule ]



325
326
327
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 325

def rule
  @rule
end

#securityLabelObject

0-* [ Coding ]



316
317
318
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 316

def securityLabel
  @securityLabel
end

#signerObject

0-* [ Contract::Signer ]



318
319
320
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 318

def signer
  @signer
end

#statusObject

0-1 code



303
304
305
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 303

def status
  @status
end

#subjectObject

0-* [ Reference(Resource) ]



306
307
308
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 306

def subject
  @subject
end

#subTypeObject

0-* [ CodeableConcept ]



311
312
313
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 311

def subType
  @subType
end

#termObject

0-* [ Contract::Term ]



320
321
322
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 320

def term
  @term
end

#textObject

0-1 Narrative



298
299
300
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 298

def text
  @text
end

#topicObject

0-* [ Reference(Resource) ]



307
308
309
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 307

def topic
  @topic
end

#typeObject

0-1 CodeableConcept



310
311
312
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 310

def type
  @type
end

#valuedItemObject

0-* [ Contract::ValuedItem ]



319
320
321
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 319

def valuedItem
  @valuedItem
end

Instance Method Details

#resourceTypeObject



327
328
329
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 327

def resourceType
  'Contract'
end