Class: FHIR::STU3::Contract
- 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
-
#action ⇒ Object
0-* [ CodeableConcept ].
-
#actionReason ⇒ Object
0-* [ CodeableConcept ].
-
#agent ⇒ Object
0-* [ Contract::Agent ].
-
#applies ⇒ Object
0-1 Period.
-
#authority ⇒ Object
0-* [ Reference(Organization) ].
-
#bindingAttachment ⇒ Object
0-1 Attachment.
-
#bindingReference ⇒ Object
0-1 Reference(Composition|DocumentReference|QuestionnaireResponse).
-
#contained ⇒ Object
0-* [ Resource ].
-
#contentDerivative ⇒ Object
0-1 CodeableConcept.
-
#decisionType ⇒ Object
0-1 CodeableConcept.
-
#domain ⇒ Object
0-* [ Reference(Location) ].
-
#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 ].
-
#securityLabel ⇒ Object
0-* [ Coding ].
-
#signer ⇒ Object
0-* [ Contract::Signer ].
-
#status ⇒ Object
0-1 code.
-
#subject ⇒ Object
0-* [ Reference(Resource) ].
-
#subType ⇒ Object
0-* [ CodeableConcept ].
-
#term ⇒ Object
0-* [ Contract::Term ].
-
#text ⇒ Object
0-1 Narrative.
-
#topic ⇒ Object
0-* [ Reference(Resource) ].
-
#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?, #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
#action ⇒ Object
0-* [ CodeableConcept ]
312 313 314 |
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 312 def action @action end |
#actionReason ⇒ Object
0-* [ CodeableConcept ]
313 314 315 |
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 313 def actionReason @actionReason end |
#agent ⇒ Object
0-* [ Contract::Agent ]
317 318 319 |
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 317 def agent @agent end |
#applies ⇒ Object
0-1 Period
305 306 307 |
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 305 def applies @applies end |
#authority ⇒ Object
0-* [ Reference(Organization) ]
308 309 310 |
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 308 def @authority end |
#bindingAttachment ⇒ Object
0-1 Attachment
321 322 323 |
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 321 def bindingAttachment @bindingAttachment end |
#bindingReference ⇒ Object
0-1 Reference(Composition|DocumentReference|QuestionnaireResponse)
322 323 324 |
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 322 def bindingReference @bindingReference end |
#contained ⇒ Object
0-* [ Resource ]
299 300 301 |
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 299 def contained @contained end |
#contentDerivative ⇒ Object
0-1 CodeableConcept
315 316 317 |
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 315 def contentDerivative @contentDerivative end |
#decisionType ⇒ Object
0-1 CodeableConcept
314 315 316 |
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 314 def decisionType @decisionType end |
#domain ⇒ Object
0-* [ Reference(Location) ]
309 310 311 |
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 309 def domain @domain end |
#extension ⇒ Object
0-* [ Extension ]
300 301 302 |
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 300 def extension @extension end |
#friendly ⇒ Object
0-* [ Contract::Friendly ]
323 324 325 |
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 323 def friendly @friendly end |
#id ⇒ Object
0-1 id
294 295 296 |
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 294 def id @id end |
#identifier ⇒ Object
0-1 Identifier
302 303 304 |
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 302 def identifier @identifier end |
#implicitRules ⇒ Object
0-1 uri
296 297 298 |
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 296 def implicitRules @implicitRules end |
#issued ⇒ Object
0-1 dateTime
304 305 306 |
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 304 def issued @issued end |
#language ⇒ Object
0-1 code
297 298 299 |
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 297 def language @language end |
#legal ⇒ Object
0-* [ Contract::Legal ]
324 325 326 |
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 324 def legal @legal end |
#meta ⇒ Object
0-1 Meta
295 296 297 |
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 295 def @meta end |
#modifierExtension ⇒ Object
0-* [ Extension ]
301 302 303 |
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 301 def modifierExtension @modifierExtension end |
#rule ⇒ Object
0-* [ Contract::Rule ]
325 326 327 |
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 325 def rule @rule end |
#securityLabel ⇒ Object
0-* [ Coding ]
316 317 318 |
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 316 def securityLabel @securityLabel end |
#signer ⇒ Object
0-* [ Contract::Signer ]
318 319 320 |
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 318 def signer @signer end |
#status ⇒ Object
0-1 code
303 304 305 |
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 303 def status @status end |
#subject ⇒ Object
0-* [ Reference(Resource) ]
306 307 308 |
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 306 def subject @subject end |
#subType ⇒ Object
0-* [ CodeableConcept ]
311 312 313 |
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 311 def subType @subType end |
#term ⇒ Object
0-* [ Contract::Term ]
320 321 322 |
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 320 def term @term end |
#text ⇒ Object
0-1 Narrative
298 299 300 |
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 298 def text @text end |
#topic ⇒ Object
0-* [ Reference(Resource) ]
307 308 309 |
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 307 def topic @topic end |
#type ⇒ Object
0-1 CodeableConcept
310 311 312 |
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 310 def type @type end |
#valuedItem ⇒ Object
0-* [ Contract::ValuedItem ]
319 320 321 |
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 319 def valuedItem @valuedItem end |
Instance Method Details
#resourceType ⇒ Object
327 328 329 |
# File 'lib/fhir_stu3_models/fhir/resources/Contract.rb', line 327 def resourceType 'Contract' end |