Class: FHIR::STU3::Provenance

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

Defined Under Namespace

Classes: Agent, Entity

Constant Summary collapse

SEARCH_PARAMS =
['agent', 'agent-role', 'end', 'entity-id', 'entity-ref', 'location', 'patient', 'recorded', 'signature-type', 'start', 'target']
METADATA =
{
  'id' => {'type'=>'id', 'path'=>'Provenance.id', 'min'=>0, 'max'=>1},
  'meta' => {'type'=>'Meta', 'path'=>'Provenance.meta', 'min'=>0, 'max'=>1},
  'implicitRules' => {'type'=>'uri', 'path'=>'Provenance.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'=>'Provenance.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/languages'}},
  'text' => {'type'=>'Narrative', 'path'=>'Provenance.text', 'min'=>0, 'max'=>1},
  'contained' => {'type'=>'Resource', 'path'=>'Provenance.contained', 'min'=>0, 'max'=>Float::INFINITY},
  'extension' => {'type'=>'Extension', 'path'=>'Provenance.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Provenance.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'target' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Provenance.target', 'min'=>1, 'max'=>Float::INFINITY},
  'period' => {'type'=>'Period', 'path'=>'Provenance.period', 'min'=>0, 'max'=>1},
  'recorded' => {'type'=>'instant', 'path'=>'Provenance.recorded', 'min'=>1, 'max'=>1},
  'policy' => {'type'=>'uri', 'path'=>'Provenance.policy', 'min'=>0, 'max'=>Float::INFINITY},
  'location' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Location'], 'type'=>'Reference', 'path'=>'Provenance.location', 'min'=>0, 'max'=>1},
  'reason' => {'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'=>'Coding', 'path'=>'Provenance.reason', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/v3-PurposeOfUse'}},
  'activity' => {'valid_codes'=>{'http://hl7.org/fhir/v3/DocumentCompletion'=>['AU', 'DI', 'DO', 'IN', 'IP', 'LA', 'NU', 'PA', 'UC'], 'http://hl7.org/fhir/v3/ActStatus'=>['normal', 'aborted', 'active', 'cancelled', 'completed', 'held', 'new', 'suspended', 'nullified', 'obsolete'], 'http://hl7.org/fhir/v3/DataOperation'=>['OPERATE', 'CREATE', 'DELETE', 'EXECUTE', 'READ', 'UPDATE', 'APPEND', 'MODIFYSTATUS', 'ABORT', 'ACTIVATE', 'CANCEL', 'COMPLETE', 'HOLD', 'JUMP', 'NULLIFY', 'OBSOLETE', 'REACTIVATE', 'RELEASE', 'RESUME', 'SUSPEND'], 'http://hl7.org/fhir/v3/ActCode'=>['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'], 'http://hl7.org/fhir/w3c-provenance-activity-type'=>['Generation', 'Usage', 'Communication', 'Start', 'End', 'Invalidation', 'Derivation', 'Revision', 'Quotation', 'Primary-Source', 'Attribution', 'Collection'], 'http://hl7.org/fhir/extra-activity-type'=>['aggregate', 'compose', 'label'], nil=>[]}, 'type'=>'Coding', 'path'=>'Provenance.activity', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/provenance-activity-type'}},
  'agent' => {'type'=>'Provenance::Agent', 'path'=>'Provenance.agent', 'min'=>1, 'max'=>Float::INFINITY},
  'entity' => {'type'=>'Provenance::Entity', 'path'=>'Provenance.entity', 'min'=>0, 'max'=>Float::INFINITY},
  'signature' => {'type'=>'Signature', 'path'=>'Provenance.signature', '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

#activityObject

0-1 Coding



105
106
107
# File 'lib/fhir_stu3_models/fhir/resources/Provenance.rb', line 105

def activity
  @activity
end

#agentObject

1-* [ Provenance::Agent ]



106
107
108
# File 'lib/fhir_stu3_models/fhir/resources/Provenance.rb', line 106

def agent
  @agent
end

#containedObject

0-* [ Resource ]



96
97
98
# File 'lib/fhir_stu3_models/fhir/resources/Provenance.rb', line 96

def contained
  @contained
end

#entityObject

0-* [ Provenance::Entity ]



107
108
109
# File 'lib/fhir_stu3_models/fhir/resources/Provenance.rb', line 107

def entity
  @entity
end

#extensionObject

0-* [ Extension ]



97
98
99
# File 'lib/fhir_stu3_models/fhir/resources/Provenance.rb', line 97

def extension
  @extension
end

#idObject

0-1 id



91
92
93
# File 'lib/fhir_stu3_models/fhir/resources/Provenance.rb', line 91

def id
  @id
end

#implicitRulesObject

0-1 uri



93
94
95
# File 'lib/fhir_stu3_models/fhir/resources/Provenance.rb', line 93

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



94
95
96
# File 'lib/fhir_stu3_models/fhir/resources/Provenance.rb', line 94

def language
  @language
end

#locationObject

0-1 Reference(Location)



103
104
105
# File 'lib/fhir_stu3_models/fhir/resources/Provenance.rb', line 103

def location
  @location
end

#metaObject

0-1 Meta



92
93
94
# File 'lib/fhir_stu3_models/fhir/resources/Provenance.rb', line 92

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



98
99
100
# File 'lib/fhir_stu3_models/fhir/resources/Provenance.rb', line 98

def modifierExtension
  @modifierExtension
end

#periodObject

0-1 Period



100
101
102
# File 'lib/fhir_stu3_models/fhir/resources/Provenance.rb', line 100

def period
  @period
end

#policyObject

0-* [ uri ]



102
103
104
# File 'lib/fhir_stu3_models/fhir/resources/Provenance.rb', line 102

def policy
  @policy
end

#reasonObject

0-* [ Coding ]



104
105
106
# File 'lib/fhir_stu3_models/fhir/resources/Provenance.rb', line 104

def reason
  @reason
end

#recordedObject

1-1 instant



101
102
103
# File 'lib/fhir_stu3_models/fhir/resources/Provenance.rb', line 101

def recorded
  @recorded
end

#signatureObject

0-* [ Signature ]



108
109
110
# File 'lib/fhir_stu3_models/fhir/resources/Provenance.rb', line 108

def signature
  @signature
end

#targetObject

1-* [ Reference(Resource) ]



99
100
101
# File 'lib/fhir_stu3_models/fhir/resources/Provenance.rb', line 99

def target
  @target
end

#textObject

0-1 Narrative



95
96
97
# File 'lib/fhir_stu3_models/fhir/resources/Provenance.rb', line 95

def text
  @text
end

Instance Method Details

#resourceTypeObject



110
111
112
# File 'lib/fhir_stu3_models/fhir/resources/Provenance.rb', line 110

def resourceType
  'Provenance'
end