Class: FHIR::DSTU2::DiagnosticReport

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

Defined Under Namespace

Classes: Image

Constant Summary collapse

MULTIPLE_TYPES =
{
  'effective' => ['dateTime', 'Period']
}
SEARCH_PARAMS =
['category', 'code', 'date', 'diagnosis', 'encounter', 'identifier', 'image', 'issued', 'patient', 'performer', 'request', 'result', 'specimen', 'status', 'subject']
METADATA =
{
  'id' => {'type'=>'id', 'path'=>'DiagnosticReport.id', 'min'=>0, 'max'=>1},
  'meta' => {'type'=>'Meta', 'path'=>'DiagnosticReport.meta', 'min'=>0, 'max'=>1},
  'implicitRules' => {'type'=>'uri', 'path'=>'DiagnosticReport.implicitRules', 'min'=>0, 'max'=>1},
  'language' => {'type'=>'code', 'path'=>'DiagnosticReport.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
  'text' => {'type'=>'Narrative', 'path'=>'DiagnosticReport.text', 'min'=>0, 'max'=>1},
  'contained' => {'type'=>'Resource', 'path'=>'DiagnosticReport.contained', 'min'=>0, 'max'=>Float::INFINITY},
  'extension' => {'type'=>'Extension', 'path'=>'DiagnosticReport.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'DiagnosticReport.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'identifier' => {'type'=>'Identifier', 'path'=>'DiagnosticReport.identifier', 'min'=>0, 'max'=>Float::INFINITY},
  'status' => {'valid_codes'=>{'http://hl7.org/fhir/diagnostic-report-status'=>['registered', 'partial', 'final', 'corrected', 'appended', 'cancelled', 'entered-in-error']}, 'type'=>'code', 'path'=>'DiagnosticReport.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/diagnostic-report-status'}},
  'category' => {'valid_codes'=>{'http://hl7.org/fhir/v2/0074'=>['AU', 'BG', 'BLB', 'CG', 'CH', 'CP', 'CT', 'CTH', 'CUS', 'EC', 'EN', 'GE', 'HM', 'ICU', 'IMG', 'IMM', 'LAB', 'MB', 'MCB', 'MYC', 'NMR', 'NMS', 'NRS', 'OSL', 'OT', 'OTH', 'OUS', 'PAR', 'PAT', 'PF', 'PHR', 'PHY', 'PT', 'RAD', 'RC', 'RT', 'RUS', 'RX', 'SP', 'SR', 'TX', 'URN', 'VR', 'VUS', 'XRC']}, 'type'=>'CodeableConcept', 'path'=>'DiagnosticReport.category', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/diagnostic-service-sections'}},
  'code' => {'valid_codes'=>{'http://loinc.org'=>[]}, 'type'=>'CodeableConcept', 'path'=>'DiagnosticReport.code', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'preferred', 'uri'=>'http://hl7.org/fhir/ValueSet/report-codes'}},
  'subject' => {'type'=>'Reference', 'path'=>'DiagnosticReport.subject', 'min'=>1, 'max'=>1},
  'encounter' => {'type'=>'Reference', 'path'=>'DiagnosticReport.encounter', 'min'=>0, 'max'=>1},
  'effectiveDateTime' => {'type'=>'dateTime', 'path'=>'DiagnosticReport.effective[x]', 'min'=>1, 'max'=>1},
  'effectivePeriod' => {'type'=>'Period', 'path'=>'DiagnosticReport.effective[x]', 'min'=>1, 'max'=>1},
  'issued' => {'type'=>'instant', 'path'=>'DiagnosticReport.issued', 'min'=>1, 'max'=>1},
  'performer' => {'type'=>'Reference', 'path'=>'DiagnosticReport.performer', 'min'=>1, 'max'=>1},
  'request' => {'type'=>'Reference', 'path'=>'DiagnosticReport.request', 'min'=>0, 'max'=>Float::INFINITY},
  'specimen' => {'type'=>'Reference', 'path'=>'DiagnosticReport.specimen', 'min'=>0, 'max'=>Float::INFINITY},
  'result' => {'type'=>'Reference', 'path'=>'DiagnosticReport.result', 'min'=>0, 'max'=>Float::INFINITY},
  'imagingStudy' => {'type'=>'Reference', 'path'=>'DiagnosticReport.imagingStudy', 'min'=>0, 'max'=>Float::INFINITY},
  'image' => {'type'=>'DiagnosticReport::Image', 'path'=>'DiagnosticReport.image', 'min'=>0, 'max'=>Float::INFINITY},
  'conclusion' => {'type'=>'string', 'path'=>'DiagnosticReport.conclusion', 'min'=>0, 'max'=>1},
  'codedDiagnosis' => {'valid_codes'=>{'http://snomed.info/sct'=>[]}, 'type'=>'CodeableConcept', 'path'=>'DiagnosticReport.codedDiagnosis', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/clinical-findings'}},
  'presentedForm' => {'type'=>'Attachment', 'path'=>'DiagnosticReport.presentedForm', '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, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #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

#categoryObject

0-1 CodeableConcept



71
72
73
# File 'lib/fhir_dstu2_models/fhir/resources/DiagnosticReport.rb', line 71

def category
  @category
end

#codeObject

1-1 CodeableConcept



72
73
74
# File 'lib/fhir_dstu2_models/fhir/resources/DiagnosticReport.rb', line 72

def code
  @code
end

#codedDiagnosisObject

0-* [ CodeableConcept ]



85
86
87
# File 'lib/fhir_dstu2_models/fhir/resources/DiagnosticReport.rb', line 85

def codedDiagnosis
  @codedDiagnosis
end

#conclusionObject

0-1 string



84
85
86
# File 'lib/fhir_dstu2_models/fhir/resources/DiagnosticReport.rb', line 84

def conclusion
  @conclusion
end

#containedObject

0-* [ Resource ]



66
67
68
# File 'lib/fhir_dstu2_models/fhir/resources/DiagnosticReport.rb', line 66

def contained
  @contained
end

#effectiveDateTimeObject

1-1 dateTime



75
76
77
# File 'lib/fhir_dstu2_models/fhir/resources/DiagnosticReport.rb', line 75

def effectiveDateTime
  @effectiveDateTime
end

#effectivePeriodObject

1-1 Period



76
77
78
# File 'lib/fhir_dstu2_models/fhir/resources/DiagnosticReport.rb', line 76

def effectivePeriod
  @effectivePeriod
end

#encounterObject

0-1 Reference()



74
75
76
# File 'lib/fhir_dstu2_models/fhir/resources/DiagnosticReport.rb', line 74

def encounter
  @encounter
end

#extensionObject

0-* [ Extension ]



67
68
69
# File 'lib/fhir_dstu2_models/fhir/resources/DiagnosticReport.rb', line 67

def extension
  @extension
end

#idObject

0-1 id



61
62
63
# File 'lib/fhir_dstu2_models/fhir/resources/DiagnosticReport.rb', line 61

def id
  @id
end

#identifierObject

0-* [ Identifier ]



69
70
71
# File 'lib/fhir_dstu2_models/fhir/resources/DiagnosticReport.rb', line 69

def identifier
  @identifier
end

#imageObject

0-* [ DiagnosticReport::Image ]



83
84
85
# File 'lib/fhir_dstu2_models/fhir/resources/DiagnosticReport.rb', line 83

def image
  @image
end

#imagingStudyObject

0-* [ Reference() ]



82
83
84
# File 'lib/fhir_dstu2_models/fhir/resources/DiagnosticReport.rb', line 82

def imagingStudy
  @imagingStudy
end

#implicitRulesObject

0-1 uri



63
64
65
# File 'lib/fhir_dstu2_models/fhir/resources/DiagnosticReport.rb', line 63

def implicitRules
  @implicitRules
end

#issuedObject

1-1 instant



77
78
79
# File 'lib/fhir_dstu2_models/fhir/resources/DiagnosticReport.rb', line 77

def issued
  @issued
end

#languageObject

0-1 code



64
65
66
# File 'lib/fhir_dstu2_models/fhir/resources/DiagnosticReport.rb', line 64

def language
  @language
end

#metaObject

0-1 Meta



62
63
64
# File 'lib/fhir_dstu2_models/fhir/resources/DiagnosticReport.rb', line 62

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



68
69
70
# File 'lib/fhir_dstu2_models/fhir/resources/DiagnosticReport.rb', line 68

def modifierExtension
  @modifierExtension
end

#performerObject

1-1 Reference()



78
79
80
# File 'lib/fhir_dstu2_models/fhir/resources/DiagnosticReport.rb', line 78

def performer
  @performer
end

#presentedFormObject

0-* [ Attachment ]



86
87
88
# File 'lib/fhir_dstu2_models/fhir/resources/DiagnosticReport.rb', line 86

def presentedForm
  @presentedForm
end

#requestObject

0-* [ Reference() ]



79
80
81
# File 'lib/fhir_dstu2_models/fhir/resources/DiagnosticReport.rb', line 79

def request
  @request
end

#resultObject

0-* [ Reference() ]



81
82
83
# File 'lib/fhir_dstu2_models/fhir/resources/DiagnosticReport.rb', line 81

def result
  @result
end

#specimenObject

0-* [ Reference() ]



80
81
82
# File 'lib/fhir_dstu2_models/fhir/resources/DiagnosticReport.rb', line 80

def specimen
  @specimen
end

#statusObject

1-1 code



70
71
72
# File 'lib/fhir_dstu2_models/fhir/resources/DiagnosticReport.rb', line 70

def status
  @status
end

#subjectObject

1-1 Reference()



73
74
75
# File 'lib/fhir_dstu2_models/fhir/resources/DiagnosticReport.rb', line 73

def subject
  @subject
end

#textObject

0-1 Narrative



65
66
67
# File 'lib/fhir_dstu2_models/fhir/resources/DiagnosticReport.rb', line 65

def text
  @text
end

Instance Method Details

#resourceTypeObject



88
89
90
# File 'lib/fhir_dstu2_models/fhir/resources/DiagnosticReport.rb', line 88

def resourceType
  'DiagnosticReport'
end