Class: FHIR::DiagnosticReport

Inherits:
Model
  • Object
show all
Includes:
Hashable, Json, Xml
Defined in:
lib/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'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/languages'}},
  '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', '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', 'IMM', 'LAB', 'MB', 'MCB', 'MYC', 'NMR', 'NMS', 'NRS', 'OSL', 'OT', 'OTH', 'OUS', 'PF', 'PHR', 'PHY', 'PT', 'RAD', 'RC', 'RT', 'RUS', 'RX', 'SP', 'SR', 'TX', '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_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Group', 'http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Location'], 'type'=>'Reference', 'path'=>'DiagnosticReport.subject', 'min'=>1, 'max'=>1},
  'encounter' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/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_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'DiagnosticReport.performer', 'min'=>1, 'max'=>Float::INFINITY},
  'request' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/DiagnosticRequest', 'http://hl7.org/fhir/StructureDefinition/ProcedureRequest', 'http://hl7.org/fhir/StructureDefinition/ReferralRequest'], 'type'=>'Reference', 'path'=>'DiagnosticReport.request', 'min'=>0, 'max'=>Float::INFINITY},
  'specimen' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Specimen'], 'type'=>'Reference', 'path'=>'DiagnosticReport.specimen', 'min'=>0, 'max'=>Float::INFINITY},
  'result' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Observation'], 'type'=>'Reference', 'path'=>'DiagnosticReport.result', 'min'=>0, 'max'=>Float::INFINITY},
  'imagingStudy' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/ImagingStudy', 'http://hl7.org/fhir/StructureDefinition/ImagingManifest'], '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, is_valid?, #to_xml, validate

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?, #initialize, #is_valid?, #method_missing, #mismatch, #to_reference, #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

#categoryObject

0-1 CodeableConcept



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

def category
  @category
end

#codeObject

1-1 CodeableConcept



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

def code
  @code
end

#codedDiagnosisObject

0-* [ CodeableConcept ]



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

def codedDiagnosis
  @codedDiagnosis
end

#conclusionObject

0-1 string



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

def conclusion
  @conclusion
end

#containedObject

0-* [ Resource ]



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

def contained
  @contained
end

#effectiveDateTimeObject

1-1 dateTime



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

def effectiveDateTime
  @effectiveDateTime
end

#effectivePeriodObject

1-1 Period



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

def effectivePeriod
  @effectivePeriod
end

#encounterObject

0-1 Reference(Encounter)



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

def encounter
  @encounter
end

#extensionObject

0-* [ Extension ]



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

def extension
  @extension
end

#idObject

0-1 id



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

def id
  @id
end

#identifierObject

0-* [ Identifier ]



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

def identifier
  @identifier
end

#imageObject

0-* [ DiagnosticReport::Image ]



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

def image
  @image
end

#imagingStudyObject

0-* [ Reference(ImagingStudy|ImagingManifest) ]



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

def imagingStudy
  @imagingStudy
end

#implicitRulesObject

0-1 uri



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

def implicitRules
  @implicitRules
end

#issuedObject

1-1 instant



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

def issued
  @issued
end

#languageObject

0-1 code



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

def language
  @language
end

#metaObject

0-1 Meta



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

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



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

def modifierExtension
  @modifierExtension
end

#performerObject

1-* [ Reference(Practitioner|Organization) ]



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

def performer
  @performer
end

#presentedFormObject

0-* [ Attachment ]



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

def presentedForm
  @presentedForm
end

#requestObject

0-* [ Reference(DiagnosticRequest|ProcedureRequest|ReferralRequest) ]



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

def request
  @request
end

#resultObject

0-* [ Reference(Observation) ]



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

def result
  @result
end

#specimenObject

0-* [ Reference(Specimen) ]



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

def specimen
  @specimen
end

#statusObject

1-1 code



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

def status
  @status
end

#subjectObject

1-1 Reference(Patient|Group|Device|Location)



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

def subject
  @subject
end

#textObject

0-1 Narrative



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

def text
  @text
end

Instance Method Details

#resourceTypeObject



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

def resourceType
  'DiagnosticReport'
end