Class: FHIR::DSTU2::FamilyMemberHistory

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

Defined Under Namespace

Classes: Condition

Constant Summary collapse

MULTIPLE_TYPES =
{
  'born' => ['Period', 'date', 'string'],
  'age' => ['Quantity', 'Range', 'string'],
  'deceased' => ['boolean', 'Quantity', 'Range', 'date', 'string']
}
SEARCH_PARAMS =
['code', 'date', 'gender', 'identifier', 'patient', 'relationship']
METADATA =
{
  'id' => {'type'=>'id', 'path'=>'FamilyMemberHistory.id', 'min'=>0, 'max'=>1},
  'meta' => {'type'=>'Meta', 'path'=>'FamilyMemberHistory.meta', 'min'=>0, 'max'=>1},
  'implicitRules' => {'type'=>'uri', 'path'=>'FamilyMemberHistory.implicitRules', 'min'=>0, 'max'=>1},
  'language' => {'type'=>'code', 'path'=>'FamilyMemberHistory.language', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://tools.ietf.org/html/bcp47'}},
  'text' => {'type'=>'Narrative', 'path'=>'FamilyMemberHistory.text', 'min'=>0, 'max'=>1},
  'contained' => {'type'=>'Resource', 'path'=>'FamilyMemberHistory.contained', 'min'=>0, 'max'=>Float::INFINITY},
  'extension' => {'type'=>'Extension', 'path'=>'FamilyMemberHistory.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'FamilyMemberHistory.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'identifier' => {'type'=>'Identifier', 'path'=>'FamilyMemberHistory.identifier', 'min'=>0, 'max'=>Float::INFINITY},
  'patient' => {'type'=>'Reference', 'path'=>'FamilyMemberHistory.patient', 'min'=>1, 'max'=>1},
  'date' => {'type'=>'dateTime', 'path'=>'FamilyMemberHistory.date', 'min'=>0, 'max'=>1},
  'status' => {'valid_codes'=>{'http://hl7.org/fhir/history-status'=>['partial', 'completed', 'entered-in-error', 'health-unknown']}, 'type'=>'code', 'path'=>'FamilyMemberHistory.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/history-status'}},
  'name' => {'type'=>'string', 'path'=>'FamilyMemberHistory.name', 'min'=>0, 'max'=>1},
  'relationship' => {'valid_codes'=>{'http://hl7.org/fhir/v3/RoleCode'=>['_AffiliationRoleType', '_CoverageSponsorRoleType', 'FULLINS', 'SELFINS', '_PayorRoleType', 'ENROLBKR', 'TPA', 'UMO', 'RESPRSN', 'EXCEST', 'GUADLTM', 'GUARD', 'POWATT', 'DPOWATT', 'HPOWATT', 'SPOWATT', '_AssignedRoleType', '_AssignedNonPersonLivingSubjectRoleType', 'ASSIST', 'BIOTH', 'ANTIBIOT', 'DEBR', 'CCO', 'SEE', 'SNIFF', '_CertifiedEntityType', '_CitizenRoleType', 'CAS', 'CASM', 'CN', 'CNRP', 'CNRPM', 'CPCA', 'CRP', 'CRPM', '_ContactRoleType', '_AdministrativeContactRoleType', 'BILL', 'ORG', 'PAYOR', 'ECON', 'NOK', '_IdentifiedEntityType', '_LocationIdentifiedEntityRoleCode', 'ACHFID', 'JURID', 'LOCHFID', '_LivingSubjectProductionClass', 'BF', 'BL', 'BR', 'CO', 'DA', 'DR', 'DU', 'FI', 'LY', 'MT', 'MU', 'PL', 'RC', 'SH', 'VL', 'WL', 'WO', '_MedicationGeneralizationRoleType', 'DC', 'GD', 'GDF', 'GDS', 'GDSF', 'MGDSF', '_MemberRoleType', 'TRB', '_PersonalRelationshipRoleType', 'FAMMEMB', 'CHILD', 'CHLDADOPT', 'DAUADOPT', 'SONADOPT', 'CHLDFOST', 'DAUFOST', 'SONFOST', 'DAUC', 'DAU', 'STPDAU', 'NCHILD', 'SON', 'SONC', 'STPSON', 'STPCHLD', 'EXT', 'AUNT', 'MAUNT', 'PAUNT', 'COUSN', 'MCOUSN', 'PCOUSN', 'GGRPRN', 'GGRFTH', 'MGGRFTH', 'PGGRFTH', 'GGRMTH', 'MGGRMTH', 'PGGRMTH', 'MGGRPRN', 'PGGRPRN', 'GRNDCHILD', 'GRNDDAU', 'GRNDSON', 'GRPRN', 'GRFTH', 'MGRFTH', 'PGRFTH', 'GRMTH', 'MGRMTH', 'PGRMTH', 'MGRPRN', 'PGRPRN', 'INLAW', 'CHLDINLAW', 'DAUINLAW', 'SONINLAW', 'PRNINLAW', 'FTHINLAW', 'MTHINLAW', 'SIBINLAW', 'BROINLAW', 'SISINLAW', 'NIENEPH', 'NEPHEW', 'NIECE', 'UNCLE', 'MUNCLE', 'PUNCLE', 'PRN', 'ADOPTP', 'ADOPTF', 'ADOPTM', 'FTH', 'FTHFOST', 'NFTH', 'NFTHF', 'STPFTH', 'MTH', 'GESTM', 'MTHFOST', 'NMTH', 'NMTHF', 'STPMTH', 'NPRN', 'PRNFOST', 'STPPRN', 'SIB', 'BRO', 'HBRO', 'NBRO', 'TWINBRO', 'FTWINBRO', 'ITWINBRO', 'STPBRO', 'HSIB', 'HSIS', 'NSIB', 'NSIS', 'TWINSIS', 'FTWINSIS', 'ITWINSIS', 'TWIN', 'FTWIN', 'ITWIN', 'SIS', 'STPSIS', 'STPSIB', 'SIGOTHR', 'DOMPART', 'FMRSPS', 'SPS', 'HUSB', 'WIFE', 'FRND', 'NBOR', 'ONESELF', 'ROOM', '_PolicyOrProgramCoverageRoleType', '_CoverageRoleType', 'FAMDEP', 'HANDIC', 'INJ', 'SELF', 'SPON', 'STUD', 'FSTUD', 'PSTUD', 'ADOPT', 'GCHILD', 'GPARNT', 'NAT', 'NIENE', 'PARNT', 'SPSE', 'STEP', '_CoveredPartyRoleType', '_ClaimantCoveredPartyRoleType', 'CRIMEVIC', 'INJWKR', '_DependentCoveredPartyRoleType', 'COCBEN', 'DIFFABL', 'WARD', '_IndividualInsuredPartyRoleType', 'RETIREE', '_ProgramEligiblePartyRoleType', 'INDIG', 'MIL', 'ACTMIL', 'RETMIL', 'VET', '_SubscriberCoveredPartyRoleType', '_ResearchSubjectRoleBasis', 'ERL', 'SCN', '_ServiceDeliveryLocationRoleType', '_DedicatedServiceDeliveryLocationRoleType', '_DedicatedClinicalLocationRoleType', 'DX', 'CVDX', 'CATH', 'ECHO', 'GIDX', 'ENDOS', 'RADDX', 'RADO', 'RNEU', 'HOSP', 'CHR', 'GACH', 'MHSP', 'PSYCHF', 'RH', 'RHAT', 'RHII', 'RHMAD', 'RHPI', 'RHPIH', 'RHPIMS', 'RHPIVS', 'RHYAD', 'HU', 'BMTU', 'CCU', 'CHEST', 'EPIL', 'ER', 'ETU', 'HD', 'HLAB', 'INLAB', 'OUTLAB', 'HRAD', 'HUSCS', 'ICU', 'PEDICU', 'PEDNICU', 'INPHARM', 'MBL', 'NCCS', 'NS', 'OUTPHARM', 'PEDU', 'PHU', 'RHU', 'SLEEP', 'NCCF', 'SNF', 'OF', 'ALL', 'AMPUT', 'BMTC', 'BREAST', 'CANC', 'CAPC', 'CARD', 'PEDCARD', 'COAG', 'CRS', 'DERM', 'ENDO', 'PEDE', 'ENT', 'FMC', 'GI', 'PEDGI', 'GIM', 'GYN', 'HEM', 'PEDHEM', 'HTN', 'IEC', 'INFD', 'PEDID', 'INV', 'LYMPH', 'MGEN', 'NEPH', 'PEDNEPH', 'NEUR', 'OB', 'OMS', 'ONCL', 'PEDHO', 'OPH', 'OPTC', 'ORTHO', 'HAND', 'PAINCL', 'PC', 'PEDC', 'PEDRHEUM', 'POD', 'PREV', 'PROCTO', 'PROFF', 'PROS', 'PSI', 'PSY', 'RHEUM', 'SPMED', 'SU', 'PLS', 'URO', 'TR', 'TRAVEL', 'WND', 'RTF', 'PRC', 'SURF', '_DedicatedNonClinicalLocationRoleType', 'DADDR', 'MOBL', 'AMB', 'PHARM', '_IncidentalServiceDeliveryLocationRoleType', 'ACC', 'COMM', 'CSC', 'PTRES', 'SCHOOL', 'UPC', 'WORK', '_SpecimenRoleType', 'C', 'G', 'L', 'P', 'Q', 'B', 'E', 'F', 'O', 'V', 'R', 'CLAIM', 'communityLaboratory', 'GT', 'homeHealth', 'laboratory', 'pathologist', 'PH', 'phlebotomist', 'PROG', 'PT', 'subject', 'thirdParty', 'DEP', 'DEPEN', 'FM', 'INDIV', 'NAMED', 'PSYCHCF', 'SUBSCR']}, 'type'=>'CodeableConcept', 'path'=>'FamilyMemberHistory.relationship', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/v3-FamilyMember'}},
  'gender' => {'valid_codes'=>{'http://hl7.org/fhir/administrative-gender'=>['male', 'female', 'other', 'unknown']}, 'type'=>'code', 'path'=>'FamilyMemberHistory.gender', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/administrative-gender'}},
  'bornPeriod' => {'type'=>'Period', 'path'=>'FamilyMemberHistory.born[x]', 'min'=>0, 'max'=>1},
  'bornDate' => {'type'=>'date', 'path'=>'FamilyMemberHistory.born[x]', 'min'=>0, 'max'=>1},
  'bornString' => {'type'=>'string', 'path'=>'FamilyMemberHistory.born[x]', 'min'=>0, 'max'=>1},
  'ageQuantity' => {'type'=>'Quantity', 'path'=>'FamilyMemberHistory.age[x]', 'min'=>0, 'max'=>1},
  'ageRange' => {'type'=>'Range', 'path'=>'FamilyMemberHistory.age[x]', 'min'=>0, 'max'=>1},
  'ageString' => {'type'=>'string', 'path'=>'FamilyMemberHistory.age[x]', 'min'=>0, 'max'=>1},
  'deceasedBoolean' => {'type'=>'boolean', 'path'=>'FamilyMemberHistory.deceased[x]', 'min'=>0, 'max'=>1},
  'deceasedQuantity' => {'type'=>'Quantity', 'path'=>'FamilyMemberHistory.deceased[x]', 'min'=>0, 'max'=>1},
  'deceasedRange' => {'type'=>'Range', 'path'=>'FamilyMemberHistory.deceased[x]', 'min'=>0, 'max'=>1},
  'deceasedDate' => {'type'=>'date', 'path'=>'FamilyMemberHistory.deceased[x]', 'min'=>0, 'max'=>1},
  'deceasedString' => {'type'=>'string', 'path'=>'FamilyMemberHistory.deceased[x]', 'min'=>0, 'max'=>1},
  'note' => {'type'=>'Annotation', 'path'=>'FamilyMemberHistory.note', 'min'=>0, 'max'=>1},
  'condition' => {'type'=>'FamilyMemberHistory::Condition', 'path'=>'FamilyMemberHistory.condition', '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

#ageQuantityObject

0-1 Quantity



96
97
98
# File 'lib/fhir_dstu2_models/fhir/resources/FamilyMemberHistory.rb', line 96

def ageQuantity
  @ageQuantity
end

#ageRangeObject

0-1 Range



97
98
99
# File 'lib/fhir_dstu2_models/fhir/resources/FamilyMemberHistory.rb', line 97

def ageRange
  @ageRange
end

#ageStringObject

0-1 string



98
99
100
# File 'lib/fhir_dstu2_models/fhir/resources/FamilyMemberHistory.rb', line 98

def ageString
  @ageString
end

#bornDateObject

0-1 date



94
95
96
# File 'lib/fhir_dstu2_models/fhir/resources/FamilyMemberHistory.rb', line 94

def bornDate
  @bornDate
end

#bornPeriodObject

0-1 Period



93
94
95
# File 'lib/fhir_dstu2_models/fhir/resources/FamilyMemberHistory.rb', line 93

def bornPeriod
  @bornPeriod
end

#bornStringObject

0-1 string



95
96
97
# File 'lib/fhir_dstu2_models/fhir/resources/FamilyMemberHistory.rb', line 95

def bornString
  @bornString
end

#conditionObject

0-* [ FamilyMemberHistory::Condition ]



105
106
107
# File 'lib/fhir_dstu2_models/fhir/resources/FamilyMemberHistory.rb', line 105

def condition
  @condition
end

#containedObject

0-* [ Resource ]



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

def contained
  @contained
end

#dateObject

0-1 dateTime



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

def date
  @date
end

#deceasedBooleanObject

0-1 boolean



99
100
101
# File 'lib/fhir_dstu2_models/fhir/resources/FamilyMemberHistory.rb', line 99

def deceasedBoolean
  @deceasedBoolean
end

#deceasedDateObject

0-1 date



102
103
104
# File 'lib/fhir_dstu2_models/fhir/resources/FamilyMemberHistory.rb', line 102

def deceasedDate
  @deceasedDate
end

#deceasedQuantityObject

0-1 Quantity



100
101
102
# File 'lib/fhir_dstu2_models/fhir/resources/FamilyMemberHistory.rb', line 100

def deceasedQuantity
  @deceasedQuantity
end

#deceasedRangeObject

0-1 Range



101
102
103
# File 'lib/fhir_dstu2_models/fhir/resources/FamilyMemberHistory.rb', line 101

def deceasedRange
  @deceasedRange
end

#deceasedStringObject

0-1 string



103
104
105
# File 'lib/fhir_dstu2_models/fhir/resources/FamilyMemberHistory.rb', line 103

def deceasedString
  @deceasedString
end

#extensionObject

0-* [ Extension ]



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

def extension
  @extension
end

#genderObject

0-1 code



92
93
94
# File 'lib/fhir_dstu2_models/fhir/resources/FamilyMemberHistory.rb', line 92

def gender
  @gender
end

#idObject

0-1 id



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

def id
  @id
end

#identifierObject

0-* [ Identifier ]



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

def identifier
  @identifier
end

#implicitRulesObject

0-1 uri



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

def implicitRules
  @implicitRules
end

#languageObject

0-1 code



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

def language
  @language
end

#metaObject

0-1 Meta



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

def meta
  @meta
end

#modifierExtensionObject

0-* [ Extension ]



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

def modifierExtension
  @modifierExtension
end

#nameObject

0-1 string



90
91
92
# File 'lib/fhir_dstu2_models/fhir/resources/FamilyMemberHistory.rb', line 90

def name
  @name
end

#noteObject

0-1 Annotation



104
105
106
# File 'lib/fhir_dstu2_models/fhir/resources/FamilyMemberHistory.rb', line 104

def note
  @note
end

#patientObject

1-1 Reference()



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

def patient
  @patient
end

#relationshipObject

1-1 CodeableConcept



91
92
93
# File 'lib/fhir_dstu2_models/fhir/resources/FamilyMemberHistory.rb', line 91

def relationship
  @relationship
end

#statusObject

1-1 code



89
90
91
# File 'lib/fhir_dstu2_models/fhir/resources/FamilyMemberHistory.rb', line 89

def status
  @status
end

#textObject

0-1 Narrative



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

def text
  @text
end

Instance Method Details

#resourceTypeObject



107
108
109
# File 'lib/fhir_dstu2_models/fhir/resources/FamilyMemberHistory.rb', line 107

def resourceType
  'FamilyMemberHistory'
end