Class: FHIR::R5::ExampleScenario::Instance

Inherits:
Model
  • Object
show all
Includes:
Hashable, Json, Xml
Defined in:
lib/fhir_models/r5/generated/resources/ExampleScenario.rb

Defined Under Namespace

Classes: ContainedInstance, Version

Constant Summary collapse

MULTIPLE_TYPES =
{
  'structureProfile' => ['canonical', 'uri']
}
METADATA =
{
  'id' => {'type'=>'string', 'path'=>'Instance.id', 'min'=>0, 'max'=>1},
  'extension' => {'type'=>'Extension', 'path'=>'Instance.extension', 'min'=>0, 'max'=>Float::INFINITY},
  'modifierExtension' => {'type'=>'Extension', 'path'=>'Instance.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
  'key' => {'type'=>'string', 'path'=>'Instance.key', 'min'=>1, 'max'=>1},
  'structureType' => {'valid_codes'=>{'http://hl7.org/fhir/fhir-types'=>['Account', 'ActivityDefinition', 'ActorDefinition', 'AdministrableProductDefinition', 'AdverseEvent', 'AllergyIntolerance', 'Appointment', 'AppointmentResponse', 'ArtifactAssessment', 'AuditEvent', 'Basic', 'Binary', 'BiologicallyDerivedProduct', 'BiologicallyDerivedProductDispense', 'BodyStructure', 'Bundle', 'CapabilityStatement', 'CarePlan', 'CareTeam', 'ChargeItem', 'ChargeItemDefinition', 'Citation', 'Claim', 'ClaimResponse', 'ClinicalImpression', 'ClinicalUseDefinition', 'CodeSystem', 'Communication', 'CommunicationRequest', 'CompartmentDefinition', 'Composition', 'ConceptMap', 'Condition', 'ConditionDefinition', 'Consent', 'Contract', 'Coverage', 'CoverageEligibilityRequest', 'CoverageEligibilityResponse', 'DetectedIssue', 'Device', 'DeviceAssociation', 'DeviceDefinition', 'DeviceDispense', 'DeviceMetric', 'DeviceRequest', 'DeviceUsage', 'DiagnosticReport', 'DocumentReference', 'Encounter', 'EncounterHistory', 'Endpoint', 'EnrollmentRequest', 'EnrollmentResponse', 'EpisodeOfCare', 'EventDefinition', 'Evidence', 'EvidenceReport', 'EvidenceVariable', 'ExampleScenario', 'ExplanationOfBenefit', 'FamilyMemberHistory', 'Flag', 'FormularyItem', 'GenomicStudy', 'Goal', 'GraphDefinition', 'Group', 'GuidanceResponse', 'HealthcareService', 'ImagingSelection', 'ImagingStudy', 'Immunization', 'ImmunizationEvaluation', 'ImmunizationRecommendation', 'ImplementationGuide', 'Ingredient', 'InsurancePlan', 'InventoryItem', 'InventoryReport', 'Invoice', 'Library', 'Linkage', 'List', 'Location', 'ManufacturedItemDefinition', 'Measure', 'MeasureReport', 'Medication', 'MedicationAdministration', 'MedicationDispense', 'MedicationKnowledge', 'MedicationRequest', 'MedicationStatement', 'MedicinalProductDefinition', 'MessageDefinition', 'MessageHeader', 'MolecularSequence', 'NamingSystem', 'NutritionIntake', 'NutritionOrder', 'NutritionProduct', 'Observation', 'ObservationDefinition', 'OperationDefinition', 'OperationOutcome', 'Organization', 'OrganizationAffiliation', 'PackagedProductDefinition', 'Parameters', 'Patient', 'PaymentNotice', 'PaymentReconciliation', 'Permission', 'Person', 'PlanDefinition', 'Practitioner', 'PractitionerRole', 'Procedure', 'Provenance', 'Questionnaire', 'QuestionnaireResponse', 'RegulatedAuthorization', 'RelatedPerson', 'RequestOrchestration', 'Requirements', 'ResearchStudy', 'ResearchSubject', 'RiskAssessment', 'Schedule', 'SearchParameter', 'ServiceRequest', 'Slot', 'Specimen', 'SpecimenDefinition', 'StructureDefinition', 'StructureMap', 'Subscription', 'SubscriptionStatus', 'SubscriptionTopic', 'Substance', 'SubstanceDefinition', 'SubstanceNucleicAcid', 'SubstancePolymer', 'SubstanceProtein', 'SubstanceReferenceInformation', 'SubstanceSourceMaterial', 'SupplyDelivery', 'SupplyRequest', 'Task', 'TerminologyCapabilities', 'TestPlan', 'TestReport', 'TestScript', 'Transport', 'ValueSet', 'VerificationResult', 'VisionPrescription'], 'http://terminology.hl7.org/CodeSystem/v2-0354'=>['OMD_O01', 'OMN_O01', 'OMS_O01', 'ORD_O02', 'ORN_O02', 'ORS_O02', 'RDO_O01', 'RRO_O02', 'ACK', 'ADR_A19', 'ADT_A01', 'ADT_A02', 'ADT_A03', 'ADT_A05', 'ADT_A06', 'ADT_A09', 'ADT_A12', 'ADT_A15', 'ADT_A16', 'ADT_A17', 'ADT_A28', 'ADT_A18', 'ADT_A20', 'ADT_A21', 'ADT_A24', 'ADT_A30', 'ADT_A37', 'ADT_A38', 'ADT_A39', 'ARD_A19', 'ADT_A43', 'ADT_A44', 'ADT_A45', 'ADT_A50', 'ADT_A52', 'ADT_A54', 'ADT_A60', 'ADT_A61', 'BAR_P01', 'BAR_P02', 'BAR_P05', 'BAR_P06', 'BAR_P10', 'BAR_P12', 'BRP_030', 'MFD_P09', 'BPS_O29', 'BRP_O30', 'BRT_O32', 'BTS_O31', 'CCF_I22', 'CCI_I22', 'CCM_I21', 'CCQ_I19', 'DSR_Q01', 'DSR_P04', 'CCR_I16', 'DSR_Q03', 'CCU_I20', 'CQU_I19', 'CRM_C01', 'CSU_C09', 'ORF_R02', 'DBC_O41', 'EDR_R07', 'DBC_O42', 'EQQ_Q04', 'ORM_Q06', 'DEL_O46', 'ERP_R09', 'DEO_O45', 'ORR_Q06', 'DER_O44', 'DFT_P03', 'DFT_P11', 'DOC_T12', 'DPR_O48', 'DRC_O47', 'DRG_O43', 'PIN_I07', 'EAC_U07', 'MFD_MFA', 'EAN_U09', 'EAR_U08', 'EHC_E01', 'EHC_E02', 'EHC_E04', 'EHC_E10', 'EHC_E12', 'EHC_E13', 'EHC_E15', 'EHC_E20', 'EHC_E21', 'EHC_E24', 'ESR_U02', 'ESU_U01', 'INR_U06', 'RAS_O01', 'INU_U05', 'RAS_O02', 'INV_U14', 'LSU_U12', 'MDM_T01', 'MDM_T02', 'MFK_M01', 'MFN_M01', 'RDS_O01', 'MFN_M02', 'MFN_M03', 'MFN_M04', 'MFN_M05', 'RGV_O01', 'MFN_M06', 'MFN_M07', 'MFN_M08', 'RPI_I0I', 'MFN_M09', 'MFN_M10', 'MFN_M11', 'MFN_M12', 'RQC_I06', 'MFN_M13', 'RQI_I0I', 'MFN_M15', 'MFN_M16', 'MFN_M17', 'MFN_M18', 'RRD_O02', 'MFQ_M01', 'RRE_O02', 'MFR_M01', 'RRG_O02', 'MFR_M04', 'MFR_M05', 'MFR_M06', 'MFR_M07', 'NMD_N02', 'NMQ_N01', 'NMR_N01', 'ORU_R31', 'SRM_T12', 'OMB_O27', 'ORU_R32', 'OMD_O03', 'SRR_T12', 'OMG_O19', 'OMI_O23', 'OML_O21', 'OML_O33', 'OML_O35', 'OML_O39', 'OML_O59', 'OMN_O07', 'OMP_O09', 'OMQ_O42', 'OMQ_O57', 'OMS_O05', 'OPL_O37', 'OPR_O38', 'OPU_R25', 'ORA_R33', 'ORA_R41', 'ORB_O28', 'ORD_O04', 'ORF_R04', 'ORG_O20', 'ORI_O24', 'ORL_O22', 'ORL_O34', 'ORL_O36', 'ORL_O40', 'ORL_O41', 'QRY_P04', 'ORL_O42', 'ORL_O43', 'ORL_O44', 'ORL_O53', 'ORL_O54', 'ORL_O55', 'ORL_O56', 'ORM_O01', 'ORN_O08', 'ORP_O10', 'ORR_O02', 'RDE_O01', 'ORS_O06', 'ORU_R01', 'ORU_R30', 'ORU_W01', 'ORX_O43', 'ORX_O58', 'OSM_R26', 'OSQ_Q06', 'OSR_Q06', 'OSU_O41', 'OSU_O51', 'OSU_O52', 'OUL_R21', 'OUL_R22', 'OUL_R23', 'OUL_R24', 'PEX_P07', 'PGL_PC6', 'PMU_B01', 'RQQ_Q09', 'RRA_O02', 'PMU_B03', 'PMU_B04', 'PMU_B07', 'PMU_B08', 'PPG_PCG', 'PPP_PCB', 'PPR_PC1', 'PPT_PCL', 'PPV_PCA', 'PRR_PC5', 'PTR_PCF', 'QBP_E03', 'QBP_E22', 'QBP_O33', 'QBP_O34', 'SPQ_Q08', 'QBP_Q11', 'RDY_K11', 'QBP_Q13', 'QBP_Q15', 'QBP_Q21', 'QCK_Q02', 'QCN_J01', 'RSP_K24', 'QRF_W02', 'QRY_A19', 'QRY_PC4', 'TBR_R08', 'QRY_Q01', 'TBR_R09', 'QRY_Q02', 'QRY_R02', 'QRY_T12', 'VQQ_Q07', 'QSB_Q16', 'QVR_Q17', 'RAR_RAR', 'RAS_O17', 'RCI_I05', 'RCL_I06', 'RDE_O11', 'RDE_O49', 'RDR_RDR', 'RDS_O13', 'RDY_K15', 'REF_I12', 'RER_RER', 'RGR_RGR', 'RGV_O15', 'ROR_ROR', 'RPA_I08', 'RPI_I01', 'RPI_I04', 'RPL_I02', 'RPR_I03', 'RQA_I08', 'RQC_I05', 'RQI_I01', 'RQP_I04', 'RRA_O18', 'RRD_O14', 'RRE_O12', 'RRE_O50', 'RRG_O16', 'RRI_I12', 'RSP_E03', 'RSP_E22', 'RSP_K11', 'RSP_K21', 'RSP_K22', 'RSP_K23', 'RSP_K25', 'RSP_K31', 'RSP_K32', 'RSP_O33', 'RSP_O34', 'RSP_Q11', 'RTB_K13', 'SDR_S31', 'SDR_S32', 'SET_S38', 'SET_S40', 'SET_S41', 'SET_S45', 'SET_S50', 'SET_S52', 'SIU_S12', 'SLR_S28', 'SQM_S25', 'SQR_S25', 'SRM_S01', 'SRR_S01', 'QBP_Z73', 'SSR_U04', 'RSP_Z82', 'SSU_U03', 'RSP_Z86', 'STC_S33', 'RSP_Z88', 'SUR_P09', 'RSP_Z90', 'TCU_U10', 'RTB_Knn', 'UDM_Q05', 'RTB_Z74', 'VXQ_V01', 'QBP_Qnn', 'VXR_V03', 'VXU_V04', 'VXX_V02']}, 'type'=>'Coding', 'path'=>'Instance.structureType', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'extensible', 'uri'=>'http://hl7.org/fhir/ValueSet/examplescenario-instance-type'}},
  'structureVersion' => {'type'=>'string', 'path'=>'Instance.structureVersion', 'min'=>0, 'max'=>1},
  'structureProfileCanonical' => {'type'=>'canonical', 'path'=>'Instance.structureProfile[x]', 'min'=>0, 'max'=>1},
  'structureProfileUri' => {'type'=>'uri', 'path'=>'Instance.structureProfile[x]', 'min'=>0, 'max'=>1},
  'title' => {'type'=>'string', 'path'=>'Instance.title', 'min'=>1, 'max'=>1},
  'description' => {'type'=>'markdown', 'path'=>'Instance.description', 'min'=>0, 'max'=>1},
  'content' => {'type'=>'Reference', 'path'=>'Instance.content', 'min'=>0, 'max'=>1},
  'version' => {'type'=>'ExampleScenario::Instance::Version', 'path'=>'Instance.version', 'min'=>0, 'max'=>Float::INFINITY},
  'containedInstance' => {'type'=>'ExampleScenario::Instance::ContainedInstance', 'path'=>'Instance.containedInstance', 'min'=>0, 'max'=>Float::INFINITY}
}

Constants included from FHIR::R4

FHIR::R4::PRIMITIVES, FHIR::R4::RESOURCES, FHIR::R4::TYPES

Constants included from FHIR

Account, ActivityDefinition, Address, AdverseEvent, Age, AllergyIntolerance, Annotation, Appointment, AppointmentResponse, Attachment, AuditEvent, BackboneElement, Basic, Binary, BiologicallyDerivedProduct, BodyStructure, Bundle, CapabilityStatement, CarePlan, CareTeam, CatalogEntry, ChargeItem, ChargeItemDefinition, Claim, ClaimResponse, ClinicalImpression, CodeSystem, CodeableConcept, Coding, Communication, CommunicationRequest, CompartmentDefinition, Composition, ConceptMap, Condition, Consent, ContactDetail, ContactPoint, Contract, Contributor, Count, Coverage, CoverageEligibilityRequest, CoverageEligibilityResponse, DataRequirement, Definitions, DetectedIssue, Device, DeviceDefinition, DeviceMetric, DeviceRequest, DeviceUseStatement, DiagnosticReport, Distance, DocumentManifest, DocumentReference, DomainResource, Dosage, Duration, EffectEvidenceSynthesis, Element, ElementDefinition, Encounter, Endpoint, EnrollmentRequest, EnrollmentResponse, EpisodeOfCare, EventDefinition, Evidence, EvidenceVariable, ExampleScenario, ExplanationOfBenefit, Expression, Extension, FamilyMemberHistory, Flag, Goal, GraphDefinition, Group, GuidanceResponse, HealthcareService, HumanName, Identifier, ImagingStudy, Immunization, ImmunizationEvaluation, ImmunizationRecommendation, ImplementationGuide, InsurancePlan, Invoice, Library, Linkage, List, Location, MarketingStatus, Measure, MeasureReport, Media, Medication, MedicationAdministration, MedicationDispense, MedicationKnowledge, MedicationRequest, MedicationStatement, MedicinalProduct, MedicinalProductAuthorization, MedicinalProductContraindication, MedicinalProductIndication, MedicinalProductIngredient, MedicinalProductInteraction, MedicinalProductManufactured, MedicinalProductPackaged, MedicinalProductPharmaceutical, MedicinalProductUndesirableEffect, MessageDefinition, MessageHeader, Meta, MolecularSequence, Money, NamingSystem, Narrative, NutritionOrder, Observation, ObservationDefinition, OperationDefinition, OperationOutcome, Organization, OrganizationAffiliation, PRIMITIVES, ParameterDefinition, Parameters, Patient, PaymentNotice, PaymentReconciliation, Period, Person, PlanDefinition, Population, Practitioner, PractitionerRole, Procedure, ProdCharacteristic, ProductShelfLife, Provenance, Quantity, Questionnaire, QuestionnaireResponse, FHIR::RESOURCES, FHIR::Range, FHIR::Ratio, FHIR::Reference, FHIR::RelatedArtifact, FHIR::RelatedPerson, FHIR::RequestGroup, FHIR::ResearchDefinition, FHIR::ResearchElementDefinition, FHIR::ResearchStudy, FHIR::ResearchSubject, FHIR::Resource, FHIR::RiskAssessment, FHIR::RiskEvidenceSynthesis, SampledData, Schedule, SearchParameter, ServiceRequest, Signature, Slot, Specimen, SpecimenDefinition, StructureDefinition, StructureDefinitionCompare, StructureMap, Subscription, Substance, SubstanceAmount, SubstanceNucleicAcid, SubstancePolymer, SubstanceProtein, SubstanceReferenceInformation, SubstanceSourceMaterial, SubstanceSpecification, SupplyDelivery, SupplyRequest, TYPES, Task, TerminologyCapabilities, TestReport, TestScript, Timing, TriggerDefinition, UsageContext, ValueSet, VerificationResult, VisionPrescription

Constants included from FHIR::R5

PRIMITIVES, RESOURCES, TYPES

Instance Attribute Summary collapse

Method Summary

Methods included from FHIR::R4

#fhir_version_string, #versioned_fhir_module

Methods included from FHIR

default_logger, fhir_version_string, logger, logger=, primitive?, versioned_fhir_module

Methods included from ClassMethods

#from_contents

Methods included from ClassXml

#from_xml, #valid?, #validate, #xml_node_to_hash

Methods included from InstanceXml

#hash_to_xml_node, #to_xml

Methods included from ClassJson

#from_json

Methods included from InstanceJson

#to_json

Methods included from Hashable

#from_hash, #to_hash

Methods included from FHIR::R5

#fhir_version_string, #versioned_fhir_module

Methods inherited from Model

#==, #attribute_mismatch, #compare_attribute, #each_element, #equals?, #hash, #initialize, #method_missing, #mismatch, #primitive?, #respond_to_missing?, #to_reference, #valid?, #validate, #validate_profile

Methods included from Deprecate

#deprecate

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

#containedInstanceObject

0-* [ ExampleScenario::Instance::ContainedInstance ]



148
149
150
# File 'lib/fhir_models/r5/generated/resources/ExampleScenario.rb', line 148

def containedInstance
  @containedInstance
end

#contentObject

0-1 Reference()



146
147
148
# File 'lib/fhir_models/r5/generated/resources/ExampleScenario.rb', line 146

def content
  @content
end

#descriptionObject

0-1 markdown



145
146
147
# File 'lib/fhir_models/r5/generated/resources/ExampleScenario.rb', line 145

def description
  @description
end

#extensionObject

0-* [ Extension ]



137
138
139
# File 'lib/fhir_models/r5/generated/resources/ExampleScenario.rb', line 137

def extension
  @extension
end

#idObject

0-1 string



136
137
138
# File 'lib/fhir_models/r5/generated/resources/ExampleScenario.rb', line 136

def id
  @id
end

#keyObject

1-1 string



139
140
141
# File 'lib/fhir_models/r5/generated/resources/ExampleScenario.rb', line 139

def key
  @key
end

#modifierExtensionObject

0-* [ Extension ]



138
139
140
# File 'lib/fhir_models/r5/generated/resources/ExampleScenario.rb', line 138

def modifierExtension
  @modifierExtension
end

#structureProfileCanonicalObject

0-1 canonical



142
143
144
# File 'lib/fhir_models/r5/generated/resources/ExampleScenario.rb', line 142

def structureProfileCanonical
  @structureProfileCanonical
end

#structureProfileUriObject

0-1 uri



143
144
145
# File 'lib/fhir_models/r5/generated/resources/ExampleScenario.rb', line 143

def structureProfileUri
  @structureProfileUri
end

#structureTypeObject

1-1 Coding



140
141
142
# File 'lib/fhir_models/r5/generated/resources/ExampleScenario.rb', line 140

def structureType
  @structureType
end

#structureVersionObject

0-1 string



141
142
143
# File 'lib/fhir_models/r5/generated/resources/ExampleScenario.rb', line 141

def structureVersion
  @structureVersion
end

#titleObject

1-1 string



144
145
146
# File 'lib/fhir_models/r5/generated/resources/ExampleScenario.rb', line 144

def title
  @title
end

#versionObject

0-* [ ExampleScenario::Instance::Version ]



147
148
149
# File 'lib/fhir_models/r5/generated/resources/ExampleScenario.rb', line 147

def version
  @version
end