Class: FHIR::Contract::Term::Action
- Defined in:
- lib/fhir_models/fhir/resources/Contract.rb
Defined Under Namespace
Classes: Subject
Constant Summary collapse
- MULTIPLE_TYPES =
{ 'occurrence' => ['dateTime', 'Period', 'Timing'] }
- METADATA =
{ 'id' => {'type'=>'string', 'path'=>'Action.id', 'min'=>0, 'max'=>1}, 'extension' => {'type'=>'Extension', 'path'=>'Action.extension', 'min'=>0, 'max'=>Float::INFINITY}, 'modifierExtension' => {'type'=>'Extension', 'path'=>'Action.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY}, 'doNotPerform' => {'type'=>'boolean', 'path'=>'Action.doNotPerform', 'min'=>0, 'max'=>1}, 'type' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/contractaction'=>['action-a', 'action-b']}, 'type'=>'CodeableConcept', 'path'=>'Action.type', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/contract-action'}}, 'subject' => {'type'=>'Contract::Term::Action::Subject', 'path'=>'Action.subject', 'min'=>0, 'max'=>Float::INFINITY}, 'intent' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/v3-ActReason'=>['PurposeOfUse', 'HMARKT', 'HOPERAT', 'CAREMGT', 'DONAT', 'FRAUD', 'GOV', 'HACCRED', 'HCOMPL', 'HDECD', 'HDIRECT', 'HDM', 'HLEGAL', 'HOUTCOMS', 'HPRGRP', 'HQUALIMP', 'HSYSADMIN', 'LABELING', 'METAMGT', 'MEMADMIN', 'MILCDM', 'PATADMIN', 'PATSFTY', 'PERFMSR', 'RECORDMGT', 'SYSDEV', 'HTEST', 'TRAIN', 'HPAYMT', 'CLMATTCH', 'COVAUTH', 'COVERAGE', 'ELIGDTRM', 'ELIGVER', 'ENROLLM', 'MILDCRG', 'REMITADV', 'HRESCH', 'BIORCH', 'CLINTRCH', 'CLINTRCHNPC', 'CLINTRCHPC', 'PRECLINTRCH', 'DSRCH', 'POARCH', 'TRANSRCH', 'PATRQT', 'FAMRQT', 'PWATRNY', 'SUPNWK', 'PUBHLTH', 'DISASTER', 'THREAT', 'TREAT', 'CLINTRL', 'COC', 'ETREAT', 'BTG', 'ERTREAT', 'POPHLTH']}, 'type'=>'CodeableConcept', 'path'=>'Action.intent', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://terminology.hl7.org/ValueSet/v3-PurposeOfUse'}}, 'linkId' => {'type'=>'string', 'path'=>'Action.linkId', 'min'=>0, 'max'=>Float::INFINITY}, 'status' => {'valid_codes'=>{'http://hl7.org/fhir/contract-action-status'=>['complete']}, 'type'=>'CodeableConcept', 'path'=>'Action.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/contract-actionstatus'}}, 'context' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Encounter', 'http://hl7.org/fhir/StructureDefinition/EpisodeOfCare'], 'type'=>'Reference', 'path'=>'Action.context', 'min'=>0, 'max'=>1}, 'contextLinkId' => {'type'=>'string', 'path'=>'Action.contextLinkId', 'min'=>0, 'max'=>Float::INFINITY}, 'occurrenceDateTime' => {'type'=>'dateTime', 'path'=>'Action.occurrence[x]', 'min'=>0, 'max'=>1}, 'occurrencePeriod' => {'type'=>'Period', 'path'=>'Action.occurrence[x]', 'min'=>0, 'max'=>1}, 'occurrenceTiming' => {'type'=>'Timing', 'path'=>'Action.occurrence[x]', 'min'=>0, 'max'=>1}, 'requester' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Group', 'http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Action.requester', 'min'=>0, 'max'=>Float::INFINITY}, 'requesterLinkId' => {'type'=>'string', 'path'=>'Action.requesterLinkId', 'min'=>0, 'max'=>Float::INFINITY}, 'performerType' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/provenance-participant-type'=>['enterer', 'performer', 'author', 'verifier', 'legal', 'attester', 'informant', 'custodian', 'assembler', 'composer']}, 'type'=>'CodeableConcept', 'path'=>'Action.performerType', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/provenance-agent-type'}}, 'performerRole' => {'valid_codes'=>{'http://hl7.org/fhir/provenance-participant-role'=>['enterer', 'performer', 'author', 'verifier', 'legal', 'attester', 'informant', 'custodian', 'assembler', 'composer']}, 'type'=>'CodeableConcept', 'path'=>'Action.performerRole', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/provenance-agent-role'}}, 'performer' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/PractitionerRole', 'http://hl7.org/fhir/StructureDefinition/CareTeam', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Substance', 'http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Location'], 'type'=>'Reference', 'path'=>'Action.performer', 'min'=>0, 'max'=>1}, 'performerLinkId' => {'type'=>'string', 'path'=>'Action.performerLinkId', 'min'=>0, 'max'=>Float::INFINITY}, 'reasonCode' => {'valid_codes'=>{'http://terminology.hl7.org/CodeSystem/v3-ActReason'=>['PurposeOfUse', 'HMARKT', 'HOPERAT', 'CAREMGT', 'DONAT', 'FRAUD', 'GOV', 'HACCRED', 'HCOMPL', 'HDECD', 'HDIRECT', 'HDM', 'HLEGAL', 'HOUTCOMS', 'HPRGRP', 'HQUALIMP', 'HSYSADMIN', 'LABELING', 'METAMGT', 'MEMADMIN', 'MILCDM', 'PATADMIN', 'PATSFTY', 'PERFMSR', 'RECORDMGT', 'SYSDEV', 'HTEST', 'TRAIN', 'HPAYMT', 'CLMATTCH', 'COVAUTH', 'COVERAGE', 'ELIGDTRM', 'ELIGVER', 'ENROLLM', 'MILDCRG', 'REMITADV', 'HRESCH', 'BIORCH', 'CLINTRCH', 'CLINTRCHNPC', 'CLINTRCHPC', 'PRECLINTRCH', 'DSRCH', 'POARCH', 'TRANSRCH', 'PATRQT', 'FAMRQT', 'PWATRNY', 'SUPNWK', 'PUBHLTH', 'DISASTER', 'THREAT', 'TREAT', 'CLINTRL', 'COC', 'ETREAT', 'BTG', 'ERTREAT', 'POPHLTH']}, 'type'=>'CodeableConcept', 'path'=>'Action.reasonCode', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://terminology.hl7.org/ValueSet/v3-PurposeOfUse'}}, 'reasonReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Condition', 'http://hl7.org/fhir/StructureDefinition/Observation', 'http://hl7.org/fhir/StructureDefinition/DiagnosticReport', 'http://hl7.org/fhir/StructureDefinition/DocumentReference', 'http://hl7.org/fhir/StructureDefinition/Questionnaire', 'http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse'], 'type'=>'Reference', 'path'=>'Action.reasonReference', 'min'=>0, 'max'=>Float::INFINITY}, 'reason' => {'type'=>'string', 'path'=>'Action.reason', 'min'=>0, 'max'=>Float::INFINITY}, 'reasonLinkId' => {'type'=>'string', 'path'=>'Action.reasonLinkId', 'min'=>0, 'max'=>Float::INFINITY}, 'note' => {'type'=>'Annotation', 'path'=>'Action.note', 'min'=>0, 'max'=>Float::INFINITY}, 'securityLabelNumber' => {'type'=>'unsignedInt', 'path'=>'Action.securityLabelNumber', 'min'=>0, 'max'=>Float::INFINITY} }
Instance Attribute Summary collapse
-
#context ⇒ Object
0-1 Reference(Encounter|EpisodeOfCare).
-
#contextLinkId ⇒ Object
0-* [ string ].
-
#doNotPerform ⇒ Object
0-1 boolean.
-
#extension ⇒ Object
0-* [ Extension ].
-
#id ⇒ Object
0-1 string.
-
#intent ⇒ Object
1-1 CodeableConcept.
-
#linkId ⇒ Object
0-* [ string ].
-
#modifierExtension ⇒ Object
0-* [ Extension ].
-
#note ⇒ Object
0-* [ Annotation ].
-
#occurrenceDateTime ⇒ Object
0-1 dateTime.
-
#occurrencePeriod ⇒ Object
0-1 Period.
-
#occurrenceTiming ⇒ Object
0-1 Timing.
-
#performer ⇒ Object
0-1 Reference(RelatedPerson|Patient|Practitioner|PractitionerRole|CareTeam|Device|Substance|Organization|Location).
-
#performerLinkId ⇒ Object
0-* [ string ].
-
#performerRole ⇒ Object
0-1 CodeableConcept.
-
#performerType ⇒ Object
0-* [ CodeableConcept ].
-
#reason ⇒ Object
0-* [ string ].
-
#reasonCode ⇒ Object
0-* [ CodeableConcept ].
-
#reasonLinkId ⇒ Object
0-* [ string ].
-
#reasonReference ⇒ Object
0-* [ Reference(Condition|Observation|DiagnosticReport|DocumentReference|Questionnaire|QuestionnaireResponse) ].
-
#requester ⇒ Object
0-* [ Reference(Patient|RelatedPerson|Practitioner|PractitionerRole|Device|Group|Organization) ].
-
#requesterLinkId ⇒ Object
0-* [ string ].
-
#securityLabelNumber ⇒ Object
0-* [ unsignedInt ].
-
#status ⇒ Object
1-1 CodeableConcept.
-
#subject ⇒ Object
0-* [ Contract::Term::Action::Subject ].
-
#type ⇒ Object
1-1 CodeableConcept.
Method Summary
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, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #to_reference, #valid?, #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
#context ⇒ Object
0-1 Reference(Encounter|EpisodeOfCare)
419 420 421 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 419 def context @context end |
#contextLinkId ⇒ Object
0-* [ string ]
420 421 422 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 420 def contextLinkId @contextLinkId end |
#doNotPerform ⇒ Object
0-1 boolean
413 414 415 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 413 def doNotPerform @doNotPerform end |
#extension ⇒ Object
0-* [ Extension ]
411 412 413 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 411 def extension @extension end |
#id ⇒ Object
0-1 string
410 411 412 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 410 def id @id end |
#intent ⇒ Object
1-1 CodeableConcept
416 417 418 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 416 def intent @intent end |
#linkId ⇒ Object
0-* [ string ]
417 418 419 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 417 def linkId @linkId end |
#modifierExtension ⇒ Object
0-* [ Extension ]
412 413 414 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 412 def modifierExtension @modifierExtension end |
#note ⇒ Object
0-* [ Annotation ]
434 435 436 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 434 def note @note end |
#occurrenceDateTime ⇒ Object
0-1 dateTime
421 422 423 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 421 def occurrenceDateTime @occurrenceDateTime end |
#occurrencePeriod ⇒ Object
0-1 Period
422 423 424 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 422 def occurrencePeriod @occurrencePeriod end |
#occurrenceTiming ⇒ Object
0-1 Timing
423 424 425 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 423 def occurrenceTiming @occurrenceTiming end |
#performer ⇒ Object
0-1 Reference(RelatedPerson|Patient|Practitioner|PractitionerRole|CareTeam|Device|Substance|Organization|Location)
428 429 430 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 428 def performer @performer end |
#performerLinkId ⇒ Object
0-* [ string ]
429 430 431 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 429 def performerLinkId @performerLinkId end |
#performerRole ⇒ Object
0-1 CodeableConcept
427 428 429 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 427 def performerRole @performerRole end |
#performerType ⇒ Object
0-* [ CodeableConcept ]
426 427 428 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 426 def performerType @performerType end |
#reason ⇒ Object
0-* [ string ]
432 433 434 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 432 def reason @reason end |
#reasonCode ⇒ Object
0-* [ CodeableConcept ]
430 431 432 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 430 def reasonCode @reasonCode end |
#reasonLinkId ⇒ Object
0-* [ string ]
433 434 435 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 433 def reasonLinkId @reasonLinkId end |
#reasonReference ⇒ Object
0-* [ Reference(Condition|Observation|DiagnosticReport|DocumentReference|Questionnaire|QuestionnaireResponse) ]
431 432 433 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 431 def reasonReference @reasonReference end |
#requester ⇒ Object
0-* [ Reference(Patient|RelatedPerson|Practitioner|PractitionerRole|Device|Group|Organization) ]
424 425 426 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 424 def requester @requester end |
#requesterLinkId ⇒ Object
0-* [ string ]
425 426 427 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 425 def requesterLinkId @requesterLinkId end |
#securityLabelNumber ⇒ Object
0-* [ unsignedInt ]
435 436 437 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 435 def securityLabelNumber @securityLabelNumber end |
#status ⇒ Object
1-1 CodeableConcept
418 419 420 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 418 def status @status end |
#subject ⇒ Object
0-* [ Contract::Term::Action::Subject ]
415 416 417 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 415 def subject @subject end |
#type ⇒ Object
1-1 CodeableConcept
414 415 416 |
# File 'lib/fhir_models/fhir/resources/Contract.rb', line 414 def type @type end |