Class: FHIR::DiagnosticReport
- 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
-
#category ⇒ Object
0-1 CodeableConcept.
-
#code ⇒ Object
1-1 CodeableConcept.
-
#codedDiagnosis ⇒ Object
0-* [ CodeableConcept ].
-
#conclusion ⇒ Object
0-1 string.
-
#contained ⇒ Object
0-* [ Resource ].
-
#effectiveDateTime ⇒ Object
1-1 dateTime.
-
#effectivePeriod ⇒ Object
1-1 Period.
-
#encounter ⇒ Object
0-1 Reference(Encounter).
-
#extension ⇒ Object
0-* [ Extension ].
-
#id ⇒ Object
0-1 id.
-
#identifier ⇒ Object
0-* [ Identifier ].
-
#image ⇒ Object
0-* [ DiagnosticReport::Image ].
-
#imagingStudy ⇒ Object
0-* [ Reference(ImagingStudy|ImagingManifest) ].
-
#implicitRules ⇒ Object
0-1 uri.
-
#issued ⇒ Object
1-1 instant.
-
#language ⇒ Object
0-1 code.
-
#meta ⇒ Object
0-1 Meta.
-
#modifierExtension ⇒ Object
0-* [ Extension ].
-
#performer ⇒ Object
1-* [ Reference(Practitioner|Organization) ].
-
#presentedForm ⇒ Object
0-* [ Attachment ].
-
#request ⇒ Object
0-* [ Reference(DiagnosticRequest|ProcedureRequest|ReferralRequest) ].
-
#result ⇒ Object
0-* [ Reference(Observation) ].
-
#specimen ⇒ Object
0-* [ Reference(Specimen) ].
-
#status ⇒ Object
1-1 code.
-
#subject ⇒ Object
1-1 Reference(Patient|Group|Device|Location).
-
#text ⇒ Object
0-1 Narrative.
Instance Method Summary collapse
Methods included from Xml
from_xml, is_valid?, #to_xml, validate
Methods included from Json
Methods included from Hashable
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
#category ⇒ Object
0-1 CodeableConcept
70 71 72 |
# File 'lib/fhir/resources/DiagnosticReport.rb', line 70 def category @category end |
#code ⇒ Object
1-1 CodeableConcept
71 72 73 |
# File 'lib/fhir/resources/DiagnosticReport.rb', line 71 def code @code end |
#codedDiagnosis ⇒ Object
0-* [ CodeableConcept ]
84 85 86 |
# File 'lib/fhir/resources/DiagnosticReport.rb', line 84 def codedDiagnosis @codedDiagnosis end |
#conclusion ⇒ Object
0-1 string
83 84 85 |
# File 'lib/fhir/resources/DiagnosticReport.rb', line 83 def conclusion @conclusion end |
#contained ⇒ Object
0-* [ Resource ]
65 66 67 |
# File 'lib/fhir/resources/DiagnosticReport.rb', line 65 def contained @contained end |
#effectiveDateTime ⇒ Object
1-1 dateTime
74 75 76 |
# File 'lib/fhir/resources/DiagnosticReport.rb', line 74 def effectiveDateTime @effectiveDateTime end |
#effectivePeriod ⇒ Object
1-1 Period
75 76 77 |
# File 'lib/fhir/resources/DiagnosticReport.rb', line 75 def effectivePeriod @effectivePeriod end |
#encounter ⇒ Object
0-1 Reference(Encounter)
73 74 75 |
# File 'lib/fhir/resources/DiagnosticReport.rb', line 73 def encounter @encounter end |
#extension ⇒ Object
0-* [ Extension ]
66 67 68 |
# File 'lib/fhir/resources/DiagnosticReport.rb', line 66 def extension @extension end |
#id ⇒ Object
0-1 id
60 61 62 |
# File 'lib/fhir/resources/DiagnosticReport.rb', line 60 def id @id end |
#identifier ⇒ Object
0-* [ Identifier ]
68 69 70 |
# File 'lib/fhir/resources/DiagnosticReport.rb', line 68 def identifier @identifier end |
#image ⇒ Object
0-* [ DiagnosticReport::Image ]
82 83 84 |
# File 'lib/fhir/resources/DiagnosticReport.rb', line 82 def image @image end |
#imagingStudy ⇒ Object
0-* [ Reference(ImagingStudy|ImagingManifest) ]
81 82 83 |
# File 'lib/fhir/resources/DiagnosticReport.rb', line 81 def imagingStudy @imagingStudy end |
#implicitRules ⇒ Object
0-1 uri
62 63 64 |
# File 'lib/fhir/resources/DiagnosticReport.rb', line 62 def implicitRules @implicitRules end |
#issued ⇒ Object
1-1 instant
76 77 78 |
# File 'lib/fhir/resources/DiagnosticReport.rb', line 76 def issued @issued end |
#language ⇒ Object
0-1 code
63 64 65 |
# File 'lib/fhir/resources/DiagnosticReport.rb', line 63 def language @language end |
#meta ⇒ Object
0-1 Meta
61 62 63 |
# File 'lib/fhir/resources/DiagnosticReport.rb', line 61 def @meta end |
#modifierExtension ⇒ Object
0-* [ Extension ]
67 68 69 |
# File 'lib/fhir/resources/DiagnosticReport.rb', line 67 def modifierExtension @modifierExtension end |
#performer ⇒ Object
1-* [ Reference(Practitioner|Organization) ]
77 78 79 |
# File 'lib/fhir/resources/DiagnosticReport.rb', line 77 def performer @performer end |
#presentedForm ⇒ Object
0-* [ Attachment ]
85 86 87 |
# File 'lib/fhir/resources/DiagnosticReport.rb', line 85 def presentedForm @presentedForm end |
#request ⇒ Object
0-* [ Reference(DiagnosticRequest|ProcedureRequest|ReferralRequest) ]
78 79 80 |
# File 'lib/fhir/resources/DiagnosticReport.rb', line 78 def request @request end |
#result ⇒ Object
0-* [ Reference(Observation) ]
80 81 82 |
# File 'lib/fhir/resources/DiagnosticReport.rb', line 80 def result @result end |
#specimen ⇒ Object
0-* [ Reference(Specimen) ]
79 80 81 |
# File 'lib/fhir/resources/DiagnosticReport.rb', line 79 def specimen @specimen end |
#status ⇒ Object
1-1 code
69 70 71 |
# File 'lib/fhir/resources/DiagnosticReport.rb', line 69 def status @status end |
#subject ⇒ Object
1-1 Reference(Patient|Group|Device|Location)
72 73 74 |
# File 'lib/fhir/resources/DiagnosticReport.rb', line 72 def subject @subject end |
#text ⇒ Object
0-1 Narrative
64 65 66 |
# File 'lib/fhir/resources/DiagnosticReport.rb', line 64 def text @text end |
Instance Method Details
#resourceType ⇒ Object
87 88 89 |
# File 'lib/fhir/resources/DiagnosticReport.rb', line 87 def resourceType 'DiagnosticReport' end |