fhir_models 1.8.0 → 1.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fhir_models/bootstrap/definitions.rb +1 -1
- data/lib/fhir_models/bootstrap/generator.rb +1 -1
- data/lib/fhir_models/bootstrap/template.rb +1 -1
- data/lib/fhir_models/examples/json/claim-example-vision-glasses.json +1 -1
- data/lib/fhir_models/examples/json/claimresponse-example.json +1 -1
- data/lib/fhir_models/examples/json/conceptmap-example-specimen-type.json +1 -3
- data/lib/fhir_models/examples/json/eligibilityresponse-example-benefits.json +1 -1
- data/lib/fhir_models/examples/json/eligibilityresponse-example.json +1 -1
- data/lib/fhir_models/examples/json/enrollmentresponse-example.json +1 -1
- data/lib/fhir_models/examples/json/paymentreconciliation-example.json +1 -1
- data/lib/fhir_models/examples/xml/claim-example-vision-glasses.xml +1 -1
- data/lib/fhir_models/examples/xml/claimresponse-example.xml +1 -1
- data/lib/fhir_models/examples/xml/conceptmap-example-specimen-type.xml +1 -3
- data/lib/fhir_models/examples/xml/eligibilityresponse-example-benefits.xml +1 -1
- data/lib/fhir_models/examples/xml/eligibilityresponse-example.xml +1 -1
- data/lib/fhir_models/examples/xml/enrollmentresponse-example.xml +1 -1
- data/lib/fhir_models/examples/xml/paymentreconciliation-example.xml +1 -1
- data/lib/fhir_models/fhir/metadata.rb +2 -2
- data/lib/fhir_models/fhir/resources/Account.rb +9 -9
- data/lib/fhir_models/fhir/resources/ActivityDefinition.rb +9 -9
- data/lib/fhir_models/fhir/resources/AllergyIntolerance.rb +7 -7
- data/lib/fhir_models/fhir/resources/Appointment.rb +5 -5
- data/lib/fhir_models/fhir/resources/AppointmentResponse.rb +5 -5
- data/lib/fhir_models/fhir/resources/AuditEvent.rb +7 -7
- data/lib/fhir_models/fhir/resources/Basic.rb +5 -5
- data/lib/fhir_models/fhir/resources/Binary.rb +3 -3
- data/lib/fhir_models/fhir/resources/BodySite.rb +3 -3
- data/lib/fhir_models/fhir/resources/Bundle.rb +1 -1
- data/lib/fhir_models/fhir/resources/CapabilityStatement.rb +13 -13
- data/lib/fhir_models/fhir/resources/CarePlan.rb +35 -35
- data/lib/fhir_models/fhir/resources/CareTeam.rb +7 -7
- data/lib/fhir_models/fhir/resources/Claim.rb +45 -45
- data/lib/fhir_models/fhir/resources/ClaimResponse.rb +15 -15
- data/lib/fhir_models/fhir/resources/ClinicalImpression.rb +19 -19
- data/lib/fhir_models/fhir/resources/CodeSystem.rb +1 -1
- data/lib/fhir_models/fhir/resources/Communication.rb +17 -17
- data/lib/fhir_models/fhir/resources/CommunicationRequest.rb +15 -15
- data/lib/fhir_models/fhir/resources/CompartmentDefinition.rb +1 -1
- data/lib/fhir_models/fhir/resources/Composition.rb +15 -15
- data/lib/fhir_models/fhir/resources/ConceptMap.rb +5 -5
- data/lib/fhir_models/fhir/resources/Condition.rb +11 -11
- data/lib/fhir_models/fhir/resources/Consent.rb +15 -15
- data/lib/fhir_models/fhir/resources/Contract.rb +29 -29
- data/lib/fhir_models/fhir/resources/Coverage.rb +11 -11
- data/lib/fhir_models/fhir/resources/DataElement.rb +1 -1
- data/lib/fhir_models/fhir/resources/DetectedIssue.rb +9 -9
- data/lib/fhir_models/fhir/resources/Device.rb +7 -7
- data/lib/fhir_models/fhir/resources/DeviceComponent.rb +5 -5
- data/lib/fhir_models/fhir/resources/DeviceMetric.rb +5 -5
- data/lib/fhir_models/fhir/resources/DeviceUseRequest.rb +23 -23
- data/lib/fhir_models/fhir/resources/DeviceUseStatement.rb +5 -5
- data/lib/fhir_models/fhir/resources/DiagnosticReport.rb +17 -17
- data/lib/fhir_models/fhir/resources/DiagnosticRequest.rb +21 -21
- data/lib/fhir_models/fhir/resources/DocumentManifest.rb +11 -11
- data/lib/fhir_models/fhir/resources/DocumentReference.rb +17 -17
- data/lib/fhir_models/fhir/resources/DomainResource.rb +1 -1
- data/lib/fhir_models/fhir/resources/EligibilityRequest.rb +15 -15
- data/lib/fhir_models/fhir/resources/EligibilityResponse.rb +13 -13
- data/lib/fhir_models/fhir/resources/Encounter.rb +29 -29
- data/lib/fhir_models/fhir/resources/Endpoint.rb +3 -3
- data/lib/fhir_models/fhir/resources/EnrollmentRequest.rb +11 -11
- data/lib/fhir_models/fhir/resources/EnrollmentResponse.rb +9 -9
- data/lib/fhir_models/fhir/resources/EpisodeOfCare.rb +15 -15
- data/lib/fhir_models/fhir/resources/ExpansionProfile.rb +1 -1
- data/lib/fhir_models/fhir/resources/ExplanationOfBenefit.rb +47 -47
- data/lib/fhir_models/fhir/resources/FamilyMemberHistory.rb +3 -3
- data/lib/fhir_models/fhir/resources/Flag.rb +7 -7
- data/lib/fhir_models/fhir/resources/Goal.rb +9 -9
- data/lib/fhir_models/fhir/resources/Group.rb +3 -3
- data/lib/fhir_models/fhir/resources/GuidanceResponse.rb +17 -17
- data/lib/fhir_models/fhir/resources/HealthcareService.rb +9 -9
- data/lib/fhir_models/fhir/resources/ImagingManifest.rb +7 -7
- data/lib/fhir_models/fhir/resources/ImagingStudy.rb +13 -13
- data/lib/fhir_models/fhir/resources/Immunization.rb +17 -17
- data/lib/fhir_models/fhir/resources/ImmunizationRecommendation.rb +9 -9
- data/lib/fhir_models/fhir/resources/ImplementationGuide.rb +7 -7
- data/lib/fhir_models/fhir/resources/Library.rb +1 -1
- data/lib/fhir_models/fhir/resources/Linkage.rb +3 -3
- data/lib/fhir_models/fhir/resources/List.rb +9 -9
- data/lib/fhir_models/fhir/resources/Location.rb +7 -7
- data/lib/fhir_models/fhir/resources/Measure.rb +3 -3
- data/lib/fhir_models/fhir/resources/MeasureReport.rb +15 -15
- data/lib/fhir_models/fhir/resources/Media.rb +5 -5
- data/lib/fhir_models/fhir/resources/Medication.rb +7 -7
- data/lib/fhir_models/fhir/resources/MedicationAdministration.rb +19 -19
- data/lib/fhir_models/fhir/resources/MedicationDispense.rb +21 -21
- data/lib/fhir_models/fhir/resources/MedicationRequest.rb +23 -23
- data/lib/fhir_models/fhir/resources/MedicationStatement.rb +11 -11
- data/lib/fhir_models/fhir/resources/MessageDefinition.rb +11 -11
- data/lib/fhir_models/fhir/resources/MessageHeader.rb +15 -15
- data/lib/fhir_models/fhir/resources/MetadataResource.rb +1 -1
- data/lib/fhir_models/fhir/resources/NamingSystem.rb +3 -3
- data/lib/fhir_models/fhir/resources/NutritionRequest.rb +9 -9
- data/lib/fhir_models/fhir/resources/Observation.rb +13 -13
- data/lib/fhir_models/fhir/resources/OperationDefinition.rb +7 -7
- data/lib/fhir_models/fhir/resources/OperationOutcome.rb +1 -1
- data/lib/fhir_models/fhir/resources/Organization.rb +5 -5
- data/lib/fhir_models/fhir/resources/Parameters.rb +1 -1
- data/lib/fhir_models/fhir/resources/Patient.rb +9 -9
- data/lib/fhir_models/fhir/resources/PaymentNotice.rb +11 -11
- data/lib/fhir_models/fhir/resources/PaymentReconciliation.rb +17 -17
- data/lib/fhir_models/fhir/resources/Person.rb +5 -5
- data/lib/fhir_models/fhir/resources/PlanDefinition.rb +7 -7
- data/lib/fhir_models/fhir/resources/Practitioner.rb +11 -11
- data/lib/fhir_models/fhir/resources/PractitionerRole.rb +11 -11
- data/lib/fhir_models/fhir/resources/Procedure.rb +21 -21
- data/lib/fhir_models/fhir/resources/ProcedureRequest.rb +13 -13
- data/lib/fhir_models/fhir/resources/ProcessRequest.rb +11 -11
- data/lib/fhir_models/fhir/resources/ProcessResponse.rb +11 -11
- data/lib/fhir_models/fhir/resources/Provenance.rb +11 -11
- data/lib/fhir_models/fhir/resources/Questionnaire.rb +7 -7
- data/lib/fhir_models/fhir/resources/QuestionnaireResponse.rb +19 -19
- data/lib/fhir_models/fhir/resources/ReferralRequest.rb +13 -13
- data/lib/fhir_models/fhir/resources/RelatedPerson.rb +3 -3
- data/lib/fhir_models/fhir/resources/RequestGroup.rb +13 -13
- data/lib/fhir_models/fhir/resources/ResearchStudy.rb +13 -13
- data/lib/fhir_models/fhir/resources/ResearchSubject.rb +7 -7
- data/lib/fhir_models/fhir/resources/Resource.rb +1 -1
- data/lib/fhir_models/fhir/resources/RiskAssessment.rb +17 -17
- data/lib/fhir_models/fhir/resources/Schedule.rb +3 -3
- data/lib/fhir_models/fhir/resources/SearchParameter.rb +3 -3
- data/lib/fhir_models/fhir/resources/Sequence.rb +15 -15
- data/lib/fhir_models/fhir/resources/ServiceDefinition.rb +3 -3
- data/lib/fhir_models/fhir/resources/Slot.rb +3 -3
- data/lib/fhir_models/fhir/resources/Specimen.rb +13 -13
- data/lib/fhir_models/fhir/resources/StructureDefinition.rb +1 -1
- data/lib/fhir_models/fhir/resources/StructureMap.rb +1 -1
- data/lib/fhir_models/fhir/resources/Subscription.rb +1 -1
- data/lib/fhir_models/fhir/resources/Substance.rb +3 -3
- data/lib/fhir_models/fhir/resources/SupplyDelivery.rb +11 -11
- data/lib/fhir_models/fhir/resources/SupplyRequest.rb +11 -11
- data/lib/fhir_models/fhir/resources/Task.rb +23 -23
- data/lib/fhir_models/fhir/resources/TestReport.rb +3 -3
- data/lib/fhir_models/fhir/resources/TestScript.rb +11 -11
- data/lib/fhir_models/fhir/resources/ValueSet.rb +1 -1
- data/lib/fhir_models/fhir/resources/VisionPrescription.rb +9 -9
- data/lib/fhir_models/fhir/types/Address.rb +1 -1
- data/lib/fhir_models/fhir/types/Age.rb +1 -1
- data/lib/fhir_models/fhir/types/Annotation.rb +3 -3
- data/lib/fhir_models/fhir/types/Attachment.rb +1 -1
- data/lib/fhir_models/fhir/types/BackboneElement.rb +1 -1
- data/lib/fhir_models/fhir/types/CodeableConcept.rb +1 -1
- data/lib/fhir_models/fhir/types/Coding.rb +1 -1
- data/lib/fhir_models/fhir/types/ContactDetail.rb +1 -1
- data/lib/fhir_models/fhir/types/ContactPoint.rb +1 -1
- data/lib/fhir_models/fhir/types/Contributor.rb +1 -1
- data/lib/fhir_models/fhir/types/Count.rb +1 -1
- data/lib/fhir_models/fhir/types/DataRequirement.rb +3 -3
- data/lib/fhir_models/fhir/types/Distance.rb +1 -1
- data/lib/fhir_models/fhir/types/DosageInstruction.rb +1 -1
- data/lib/fhir_models/fhir/types/Duration.rb +1 -1
- data/lib/fhir_models/fhir/types/Element.rb +1 -1
- data/lib/fhir_models/fhir/types/ElementDefinition.rb +3 -3
- data/lib/fhir_models/fhir/types/Extension.rb +1 -1
- data/lib/fhir_models/fhir/types/HumanName.rb +1 -1
- data/lib/fhir_models/fhir/types/Identifier.rb +3 -3
- data/lib/fhir_models/fhir/types/Meta.rb +1 -1
- data/lib/fhir_models/fhir/types/Money.rb +1 -1
- data/lib/fhir_models/fhir/types/Narrative.rb +1 -1
- data/lib/fhir_models/fhir/types/ParameterDefinition.rb +3 -3
- data/lib/fhir_models/fhir/types/Period.rb +1 -1
- data/lib/fhir_models/fhir/types/Quantity.rb +1 -1
- data/lib/fhir_models/fhir/types/Range.rb +1 -1
- data/lib/fhir_models/fhir/types/Ratio.rb +1 -1
- data/lib/fhir_models/fhir/types/Reference.rb +1 -1
- data/lib/fhir_models/fhir/types/RelatedArtifact.rb +3 -3
- data/lib/fhir_models/fhir/types/SampledData.rb +1 -1
- data/lib/fhir_models/fhir/types/Signature.rb +5 -5
- data/lib/fhir_models/fhir/types/Timing.rb +1 -1
- data/lib/fhir_models/fhir/types/TriggerDefinition.rb +3 -3
- data/lib/fhir_models/fhir/types/UsageContext.rb +1 -1
- data/lib/fhir_models/version.rb +1 -1
- metadata +2 -2
@@ -7,7 +7,7 @@ module FHIR
|
|
7
7
|
MULTIPLE_TYPES = {
|
8
8
|
'definition' => ['uri', 'Reference']
|
9
9
|
}
|
10
|
-
SEARCH_PARAMS = []
|
10
|
+
SEARCH_PARAMS = ['authored-on', 'based-on', 'business-status', 'code', 'context', 'definition-ref', 'focus', 'group-identifier', 'identifier', 'intent', 'modified', 'organization', 'owner', 'part-of', 'patient', 'performer', 'period', 'priority', 'requester', 'status', 'statusreason', 'subject']
|
11
11
|
METADATA = {
|
12
12
|
'id' => {'type'=>'id', 'path'=>'Task.id', 'min'=>0, 'max'=>1},
|
13
13
|
'meta' => {'type'=>'Meta', 'path'=>'Task.meta', 'min'=>0, 'max'=>1},
|
@@ -19,10 +19,10 @@ module FHIR
|
|
19
19
|
'modifierExtension' => {'type'=>'Extension', 'path'=>'Task.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
20
20
|
'identifier' => {'type'=>'Identifier', 'path'=>'Task.identifier', 'min'=>0, 'max'=>Float::INFINITY},
|
21
21
|
'definitionUri' => {'type'=>'uri', 'path'=>'Task.definition[x]', 'min'=>0, 'max'=>1},
|
22
|
-
'definitionReference' => {'type'=>'Reference', 'path'=>'Task.definition[x]', 'min'=>0, 'max'=>1},
|
23
|
-
'basedOn' => {'type'=>'Reference', 'path'=>'Task.basedOn', 'min'=>0, 'max'=>Float::INFINITY},
|
22
|
+
'definitionReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/ActivityDefinition'], 'type'=>'Reference', 'path'=>'Task.definition[x]', 'min'=>0, 'max'=>1},
|
23
|
+
'basedOn' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Task.basedOn', 'min'=>0, 'max'=>Float::INFINITY},
|
24
24
|
'groupIdentifier' => {'type'=>'Identifier', 'path'=>'Task.groupIdentifier', 'min'=>0, 'max'=>1},
|
25
|
-
'partOf' => {'type'=>'Reference', 'path'=>'Task.partOf', 'min'=>0, 'max'=>Float::INFINITY},
|
25
|
+
'partOf' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Task'], 'type'=>'Reference', 'path'=>'Task.partOf', 'min'=>0, 'max'=>Float::INFINITY},
|
26
26
|
'status' => {'valid_codes'=>{'http://hl7.org/fhir/task-status'=>['draft', 'requested', 'received', 'accepted', 'rejected', 'ready', 'cancelled', 'in-progress', 'on-hold', 'failed', 'completed', 'entered-in-error', 'draft', 'requested', 'received', 'accepted', 'rejected', 'ready', 'cancelled', 'in-progress', 'on-hold', 'failed', 'completed', 'entered-in-error']}, 'type'=>'code', 'path'=>'Task.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/task-status'}},
|
27
27
|
'statusReason' => {'type'=>'CodeableConcept', 'path'=>'Task.statusReason', 'min'=>0, 'max'=>1},
|
28
28
|
'businessStatus' => {'type'=>'CodeableConcept', 'path'=>'Task.businessStatus', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>nil}},
|
@@ -30,18 +30,18 @@ module FHIR
|
|
30
30
|
'priority' => {'valid_codes'=>{'http://hl7.org/fhir/request-priority'=>['routine', 'urgent', 'stat', 'asap', 'routine', 'urgent', 'stat', 'asap']}, 'type'=>'code', 'path'=>'Task.priority', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/request-priority'}},
|
31
31
|
'code' => {'type'=>'CodeableConcept', 'path'=>'Task.code', 'min'=>0, 'max'=>1},
|
32
32
|
'description' => {'type'=>'string', 'path'=>'Task.description', 'min'=>0, 'max'=>1},
|
33
|
-
'focus' => {'type'=>'Reference', 'path'=>'Task.focus', 'min'=>0, 'max'=>1},
|
34
|
-
'for' => {'type'=>'Reference', 'path'=>'Task.for', 'min'=>0, 'max'=>1},
|
35
|
-
'context' => {'type'=>'Reference', 'path'=>'Task.context', 'min'=>0, 'max'=>1},
|
33
|
+
'focus' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Task.focus', 'min'=>0, 'max'=>1},
|
34
|
+
'for' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Task.for', 'min'=>0, 'max'=>1},
|
35
|
+
'context' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Encounter', 'http://hl7.org/fhir/StructureDefinition/EpisodeOfCare'], 'type'=>'Reference', 'path'=>'Task.context', 'min'=>0, 'max'=>1},
|
36
36
|
'executionPeriod' => {'type'=>'Period', 'path'=>'Task.executionPeriod', 'min'=>0, 'max'=>1},
|
37
37
|
'authoredOn' => {'type'=>'dateTime', 'path'=>'Task.authoredOn', 'min'=>0, 'max'=>1},
|
38
38
|
'lastModified' => {'type'=>'dateTime', 'path'=>'Task.lastModified', 'min'=>0, 'max'=>1},
|
39
39
|
'requester' => {'type'=>'Task::Requester', 'path'=>'Task.requester', 'min'=>0, 'max'=>1},
|
40
40
|
'performerType' => {'valid_codes'=>{'http://hl7.org/fhir/task-performer-type'=>['requester', 'dispatcher', 'scheduler', 'performer', 'monitor', 'manager', 'acquirer', 'reviewer', 'requester', 'dispatcher', 'performer', 'monitor', 'manager', 'acquirer', 'reviewer']}, 'type'=>'CodeableConcept', 'path'=>'Task.performerType', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'preferred', 'uri'=>'http://hl7.org/fhir/ValueSet/task-performer-type'}},
|
41
|
-
'owner' => {'type'=>'Reference', 'path'=>'Task.owner', 'min'=>0, 'max'=>1},
|
41
|
+
'owner' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'], 'type'=>'Reference', 'path'=>'Task.owner', 'min'=>0, 'max'=>1},
|
42
42
|
'reason' => {'type'=>'CodeableConcept', 'path'=>'Task.reason', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>nil}},
|
43
43
|
'note' => {'type'=>'Annotation', 'path'=>'Task.note', 'min'=>0, 'max'=>Float::INFINITY},
|
44
|
-
'relevantHistory' => {'type'=>'Reference', 'path'=>'Task.relevantHistory', 'min'=>0, 'max'=>Float::INFINITY},
|
44
|
+
'relevantHistory' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Provenance'], 'type'=>'Reference', 'path'=>'Task.relevantHistory', 'min'=>0, 'max'=>Float::INFINITY},
|
45
45
|
'restriction' => {'type'=>'Task::Restriction', 'path'=>'Task.restriction', 'min'=>0, 'max'=>1},
|
46
46
|
'input' => {'type'=>'Task::Input', 'path'=>'Task.input', 'min'=>0, 'max'=>Float::INFINITY},
|
47
47
|
'output' => {'type'=>'Task::Output', 'path'=>'Task.output', 'min'=>0, 'max'=>Float::INFINITY}
|
@@ -56,15 +56,15 @@ module FHIR
|
|
56
56
|
'id' => {'type'=>'string', 'path'=>'Requester.id', 'min'=>0, 'max'=>1},
|
57
57
|
'extension' => {'type'=>'Extension', 'path'=>'Requester.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
58
58
|
'modifierExtension' => {'type'=>'Extension', 'path'=>'Requester.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
59
|
-
'agent' => {'type'=>'Reference', 'path'=>'Requester.agent', 'min'=>1, 'max'=>1},
|
60
|
-
'onBehalfOf' => {'type'=>'Reference', 'path'=>'Requester.onBehalfOf', 'min'=>0, 'max'=>1}
|
59
|
+
'agent' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Device', 'http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'], 'type'=>'Reference', 'path'=>'Requester.agent', 'min'=>1, 'max'=>1},
|
60
|
+
'onBehalfOf' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Requester.onBehalfOf', 'min'=>0, 'max'=>1}
|
61
61
|
}
|
62
62
|
|
63
63
|
attr_accessor :id # 0-1 string
|
64
64
|
attr_accessor :extension # 0-* [ Extension ]
|
65
65
|
attr_accessor :modifierExtension # 0-* [ Extension ]
|
66
|
-
attr_accessor :agent # 1-1 Reference()
|
67
|
-
attr_accessor :onBehalfOf # 0-1 Reference()
|
66
|
+
attr_accessor :agent # 1-1 Reference(Device|Organization|Patient|Practitioner|RelatedPerson)
|
67
|
+
attr_accessor :onBehalfOf # 0-1 Reference(Organization)
|
68
68
|
end
|
69
69
|
|
70
70
|
class Restriction < FHIR::Model
|
@@ -78,7 +78,7 @@ module FHIR
|
|
78
78
|
'modifierExtension' => {'type'=>'Extension', 'path'=>'Restriction.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
79
79
|
'repetitions' => {'type'=>'positiveInt', 'path'=>'Restriction.repetitions', 'min'=>0, 'max'=>1},
|
80
80
|
'period' => {'type'=>'Period', 'path'=>'Restriction.period', 'min'=>0, 'max'=>1},
|
81
|
-
'recipient' => {'type'=>'Reference', 'path'=>'Restriction.recipient', 'min'=>0, 'max'=>Float::INFINITY}
|
81
|
+
'recipient' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson', 'http://hl7.org/fhir/StructureDefinition/Group', 'http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Restriction.recipient', 'min'=>0, 'max'=>Float::INFINITY}
|
82
82
|
}
|
83
83
|
|
84
84
|
attr_accessor :id # 0-1 string
|
@@ -86,7 +86,7 @@ module FHIR
|
|
86
86
|
attr_accessor :modifierExtension # 0-* [ Extension ]
|
87
87
|
attr_accessor :repetitions # 0-1 positiveInt
|
88
88
|
attr_accessor :period # 0-1 Period
|
89
|
-
attr_accessor :recipient # 0-* [ Reference() ]
|
89
|
+
attr_accessor :recipient # 0-* [ Reference(Patient|Practitioner|RelatedPerson|Group|Organization) ]
|
90
90
|
end
|
91
91
|
|
92
92
|
class Input < FHIR::Model
|
@@ -293,10 +293,10 @@ module FHIR
|
|
293
293
|
attr_accessor :modifierExtension # 0-* [ Extension ]
|
294
294
|
attr_accessor :identifier # 0-* [ Identifier ]
|
295
295
|
attr_accessor :definitionUri # 0-1 uri
|
296
|
-
attr_accessor :definitionReference # 0-1 Reference()
|
297
|
-
attr_accessor :basedOn # 0-* [ Reference() ]
|
296
|
+
attr_accessor :definitionReference # 0-1 Reference(ActivityDefinition)
|
297
|
+
attr_accessor :basedOn # 0-* [ Reference(Resource) ]
|
298
298
|
attr_accessor :groupIdentifier # 0-1 Identifier
|
299
|
-
attr_accessor :partOf # 0-* [ Reference() ]
|
299
|
+
attr_accessor :partOf # 0-* [ Reference(Task) ]
|
300
300
|
attr_accessor :status # 1-1 code
|
301
301
|
attr_accessor :statusReason # 0-1 CodeableConcept
|
302
302
|
attr_accessor :businessStatus # 0-1 CodeableConcept
|
@@ -304,18 +304,18 @@ module FHIR
|
|
304
304
|
attr_accessor :priority # 0-1 code
|
305
305
|
attr_accessor :code # 0-1 CodeableConcept
|
306
306
|
attr_accessor :description # 0-1 string
|
307
|
-
attr_accessor :focus # 0-1 Reference()
|
308
|
-
attr_accessor :for # 0-1 Reference()
|
309
|
-
attr_accessor :context # 0-1 Reference()
|
307
|
+
attr_accessor :focus # 0-1 Reference(Resource)
|
308
|
+
attr_accessor :for # 0-1 Reference(Resource)
|
309
|
+
attr_accessor :context # 0-1 Reference(Encounter|EpisodeOfCare)
|
310
310
|
attr_accessor :executionPeriod # 0-1 Period
|
311
311
|
attr_accessor :authoredOn # 0-1 dateTime
|
312
312
|
attr_accessor :lastModified # 0-1 dateTime
|
313
313
|
attr_accessor :requester # 0-1 Task::Requester
|
314
314
|
attr_accessor :performerType # 0-* [ CodeableConcept ]
|
315
|
-
attr_accessor :owner # 0-1 Reference()
|
315
|
+
attr_accessor :owner # 0-1 Reference(Device|Organization|Patient|Practitioner|RelatedPerson)
|
316
316
|
attr_accessor :reason # 0-1 CodeableConcept
|
317
317
|
attr_accessor :note # 0-* [ Annotation ]
|
318
|
-
attr_accessor :relevantHistory # 0-* [ Reference() ]
|
318
|
+
attr_accessor :relevantHistory # 0-* [ Reference(Provenance) ]
|
319
319
|
attr_accessor :restriction # 0-1 Task::Restriction
|
320
320
|
attr_accessor :input # 0-* [ Task::Input ]
|
321
321
|
attr_accessor :output # 0-* [ Task::Output ]
|
@@ -4,7 +4,7 @@ module FHIR
|
|
4
4
|
include FHIR::Json
|
5
5
|
include FHIR::Xml
|
6
6
|
|
7
|
-
SEARCH_PARAMS = []
|
7
|
+
SEARCH_PARAMS = ['identifier', 'issued', 'name', 'participant', 'tester', 'testscript']
|
8
8
|
METADATA = {
|
9
9
|
'id' => {'type'=>'id', 'path'=>'TestReport.id', 'min'=>0, 'max'=>1},
|
10
10
|
'meta' => {'type'=>'Meta', 'path'=>'TestReport.meta', 'min'=>0, 'max'=>1},
|
@@ -19,7 +19,7 @@ module FHIR
|
|
19
19
|
'status' => {'valid_codes'=>{'http://hl7.org/fhir/report-status-codes'=>['complete', 'pending', 'error', 'complete', 'pending', 'error']}, 'type'=>'code', 'path'=>'TestReport.status', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/report-status-codes'}},
|
20
20
|
'score' => {'type'=>'decimal', 'path'=>'TestReport.score', 'min'=>0, 'max'=>1},
|
21
21
|
'tester' => {'type'=>'string', 'path'=>'TestReport.tester', 'min'=>0, 'max'=>1},
|
22
|
-
'testScript' => {'type'=>'Reference', 'path'=>'TestReport.testScript', 'min'=>1, 'max'=>1},
|
22
|
+
'testScript' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/TestScript'], 'type'=>'Reference', 'path'=>'TestReport.testScript', 'min'=>1, 'max'=>1},
|
23
23
|
'issued' => {'type'=>'dateTime', 'path'=>'TestReport.issued', 'min'=>0, 'max'=>1},
|
24
24
|
'participant' => {'type'=>'TestReport::Participant', 'path'=>'TestReport.participant', 'min'=>0, 'max'=>Float::INFINITY},
|
25
25
|
'setup' => {'type'=>'TestReport::Setup', 'path'=>'TestReport.setup', 'min'=>0, 'max'=>1},
|
@@ -222,7 +222,7 @@ module FHIR
|
|
222
222
|
attr_accessor :status # 1-1 code
|
223
223
|
attr_accessor :score # 0-1 decimal
|
224
224
|
attr_accessor :tester # 0-1 string
|
225
|
-
attr_accessor :testScript # 1-1 Reference()
|
225
|
+
attr_accessor :testScript # 1-1 Reference(TestScript)
|
226
226
|
attr_accessor :issued # 0-1 dateTime
|
227
227
|
attr_accessor :participant # 0-* [ TestReport::Participant ]
|
228
228
|
attr_accessor :setup # 0-1 TestReport::Setup
|
@@ -4,7 +4,7 @@ module FHIR
|
|
4
4
|
include FHIR::Json
|
5
5
|
include FHIR::Xml
|
6
6
|
|
7
|
-
SEARCH_PARAMS = []
|
7
|
+
SEARCH_PARAMS = ['date', 'description', 'identifier', 'jurisdiction', 'name', 'publisher', 'status', 'testscript-capability', 'title', 'url', 'version']
|
8
8
|
METADATA = {
|
9
9
|
'id' => {'type'=>'id', 'path'=>'TestScript.id', 'min'=>0, 'max'=>1},
|
10
10
|
'meta' => {'type'=>'Meta', 'path'=>'TestScript.meta', 'min'=>0, 'max'=>1},
|
@@ -33,7 +33,7 @@ module FHIR
|
|
33
33
|
'destination' => {'type'=>'TestScript::Destination', 'path'=>'TestScript.destination', 'min'=>0, 'max'=>Float::INFINITY},
|
34
34
|
'metadata' => {'type'=>'TestScript::Metadata', 'path'=>'TestScript.metadata', 'min'=>0, 'max'=>1},
|
35
35
|
'fixture' => {'type'=>'TestScript::Fixture', 'path'=>'TestScript.fixture', 'min'=>0, 'max'=>Float::INFINITY},
|
36
|
-
'profile' => {'type'=>'Reference', 'path'=>'TestScript.profile', 'min'=>0, 'max'=>Float::INFINITY},
|
36
|
+
'profile' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'TestScript.profile', 'min'=>0, 'max'=>Float::INFINITY},
|
37
37
|
'variable' => {'type'=>'TestScript::Variable', 'path'=>'TestScript.variable', 'min'=>0, 'max'=>Float::INFINITY},
|
38
38
|
'rule' => {'type'=>'TestScript::Rule', 'path'=>'TestScript.rule', 'min'=>0, 'max'=>Float::INFINITY},
|
39
39
|
'ruleset' => {'type'=>'TestScript::Ruleset', 'path'=>'TestScript.ruleset', 'min'=>0, 'max'=>Float::INFINITY},
|
@@ -130,7 +130,7 @@ module FHIR
|
|
130
130
|
'origin' => {'type'=>'integer', 'path'=>'Capability.origin', 'min'=>0, 'max'=>Float::INFINITY},
|
131
131
|
'destination' => {'type'=>'integer', 'path'=>'Capability.destination', 'min'=>0, 'max'=>1},
|
132
132
|
'link' => {'type'=>'uri', 'path'=>'Capability.link', 'min'=>0, 'max'=>Float::INFINITY},
|
133
|
-
'capabilities' => {'type'=>'Reference', 'path'=>'Capability.capabilities', 'min'=>1, 'max'=>1}
|
133
|
+
'capabilities' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/CapabilityStatement'], 'type'=>'Reference', 'path'=>'Capability.capabilities', 'min'=>1, 'max'=>1}
|
134
134
|
}
|
135
135
|
|
136
136
|
attr_accessor :id # 0-1 string
|
@@ -142,7 +142,7 @@ module FHIR
|
|
142
142
|
attr_accessor :origin # 0-* [ integer ]
|
143
143
|
attr_accessor :destination # 0-1 integer
|
144
144
|
attr_accessor :link # 0-* [ uri ]
|
145
|
-
attr_accessor :capabilities # 1-1 Reference()
|
145
|
+
attr_accessor :capabilities # 1-1 Reference(CapabilityStatement)
|
146
146
|
end
|
147
147
|
|
148
148
|
attr_accessor :id # 0-1 string
|
@@ -163,7 +163,7 @@ module FHIR
|
|
163
163
|
'modifierExtension' => {'type'=>'Extension', 'path'=>'Fixture.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
164
164
|
'autocreate' => {'type'=>'boolean', 'path'=>'Fixture.autocreate', 'min'=>0, 'max'=>1},
|
165
165
|
'autodelete' => {'type'=>'boolean', 'path'=>'Fixture.autodelete', 'min'=>0, 'max'=>1},
|
166
|
-
'resource' => {'type'=>'Reference', 'path'=>'Fixture.resource', 'min'=>0, 'max'=>1}
|
166
|
+
'resource' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Fixture.resource', 'min'=>0, 'max'=>1}
|
167
167
|
}
|
168
168
|
|
169
169
|
attr_accessor :id # 0-1 string
|
@@ -171,7 +171,7 @@ module FHIR
|
|
171
171
|
attr_accessor :modifierExtension # 0-* [ Extension ]
|
172
172
|
attr_accessor :autocreate # 0-1 boolean
|
173
173
|
attr_accessor :autodelete # 0-1 boolean
|
174
|
-
attr_accessor :resource # 0-1 Reference()
|
174
|
+
attr_accessor :resource # 0-1 Reference(Resource)
|
175
175
|
end
|
176
176
|
|
177
177
|
class Variable < FHIR::Model
|
@@ -215,7 +215,7 @@ module FHIR
|
|
215
215
|
'id' => {'type'=>'string', 'path'=>'Rule.id', 'min'=>0, 'max'=>1},
|
216
216
|
'extension' => {'type'=>'Extension', 'path'=>'Rule.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
217
217
|
'modifierExtension' => {'type'=>'Extension', 'path'=>'Rule.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
218
|
-
'resource' => {'type'=>'Reference', 'path'=>'Rule.resource', 'min'=>1, 'max'=>1},
|
218
|
+
'resource' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Rule.resource', 'min'=>1, 'max'=>1},
|
219
219
|
'param' => {'type'=>'TestScript::Rule::Param', 'path'=>'Rule.param', 'min'=>0, 'max'=>Float::INFINITY}
|
220
220
|
}
|
221
221
|
|
@@ -242,7 +242,7 @@ module FHIR
|
|
242
242
|
attr_accessor :id # 0-1 string
|
243
243
|
attr_accessor :extension # 0-* [ Extension ]
|
244
244
|
attr_accessor :modifierExtension # 0-* [ Extension ]
|
245
|
-
attr_accessor :resource # 1-1 Reference()
|
245
|
+
attr_accessor :resource # 1-1 Reference(Resource)
|
246
246
|
attr_accessor :param # 0-* [ TestScript::Rule::Param ]
|
247
247
|
end
|
248
248
|
|
@@ -255,7 +255,7 @@ module FHIR
|
|
255
255
|
'id' => {'type'=>'string', 'path'=>'Ruleset.id', 'min'=>0, 'max'=>1},
|
256
256
|
'extension' => {'type'=>'Extension', 'path'=>'Ruleset.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
257
257
|
'modifierExtension' => {'type'=>'Extension', 'path'=>'Ruleset.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
258
|
-
'resource' => {'type'=>'Reference', 'path'=>'Ruleset.resource', 'min'=>1, 'max'=>1},
|
258
|
+
'resource' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Ruleset.resource', 'min'=>1, 'max'=>1},
|
259
259
|
'rule' => {'type'=>'TestScript::Ruleset::Rule', 'path'=>'Ruleset.rule', 'min'=>1, 'max'=>Float::INFINITY}
|
260
260
|
}
|
261
261
|
|
@@ -302,7 +302,7 @@ module FHIR
|
|
302
302
|
attr_accessor :id # 0-1 string
|
303
303
|
attr_accessor :extension # 0-* [ Extension ]
|
304
304
|
attr_accessor :modifierExtension # 0-* [ Extension ]
|
305
|
-
attr_accessor :resource # 1-1 Reference()
|
305
|
+
attr_accessor :resource # 1-1 Reference(Resource)
|
306
306
|
attr_accessor :rule # 1-* [ TestScript::Ruleset::Rule ]
|
307
307
|
end
|
308
308
|
|
@@ -679,7 +679,7 @@ module FHIR
|
|
679
679
|
attr_accessor :destination # 0-* [ TestScript::Destination ]
|
680
680
|
attr_accessor :metadata # 0-1 TestScript::Metadata
|
681
681
|
attr_accessor :fixture # 0-* [ TestScript::Fixture ]
|
682
|
-
attr_accessor :profile # 0-* [ Reference() ]
|
682
|
+
attr_accessor :profile # 0-* [ Reference(Resource) ]
|
683
683
|
attr_accessor :variable # 0-* [ TestScript::Variable ]
|
684
684
|
attr_accessor :rule # 0-* [ TestScript::Rule ]
|
685
685
|
attr_accessor :ruleset # 0-* [ TestScript::Ruleset ]
|
@@ -4,7 +4,7 @@ module FHIR
|
|
4
4
|
include FHIR::Json
|
5
5
|
include FHIR::Xml
|
6
6
|
|
7
|
-
SEARCH_PARAMS = []
|
7
|
+
SEARCH_PARAMS = ['date', 'description', 'expansion', 'identifier', 'jurisdiction', 'name', 'publisher', 'reference', 'status', 'title', 'url', 'version']
|
8
8
|
METADATA = {
|
9
9
|
'id' => {'type'=>'id', 'path'=>'ValueSet.id', 'min'=>0, 'max'=>1},
|
10
10
|
'meta' => {'type'=>'Meta', 'path'=>'ValueSet.meta', 'min'=>0, 'max'=>1},
|
@@ -7,7 +7,7 @@ module FHIR
|
|
7
7
|
MULTIPLE_TYPES = {
|
8
8
|
'reason' => ['CodeableConcept', 'Reference']
|
9
9
|
}
|
10
|
-
SEARCH_PARAMS = []
|
10
|
+
SEARCH_PARAMS = ['identifier', 'patient', 'encounter', 'datewritten', 'prescriber']
|
11
11
|
METADATA = {
|
12
12
|
'id' => {'type'=>'id', 'path'=>'VisionPrescription.id', 'min'=>0, 'max'=>1},
|
13
13
|
'meta' => {'type'=>'Meta', 'path'=>'VisionPrescription.meta', 'min'=>0, 'max'=>1},
|
@@ -19,12 +19,12 @@ module FHIR
|
|
19
19
|
'modifierExtension' => {'type'=>'Extension', 'path'=>'VisionPrescription.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
20
20
|
'identifier' => {'type'=>'Identifier', 'path'=>'VisionPrescription.identifier', 'min'=>0, 'max'=>Float::INFINITY},
|
21
21
|
'status' => {'valid_codes'=>{'http://hl7.org/fhir/fm-status'=>['active', 'cancelled', 'draft', 'entered-in-error', 'active', 'cancelled', 'draft', 'entered-in-error']}, 'type'=>'code', 'path'=>'VisionPrescription.status', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/fm-status'}},
|
22
|
-
'patient' => {'type'=>'Reference', 'path'=>'VisionPrescription.patient', 'min'=>0, 'max'=>1},
|
23
|
-
'encounter' => {'type'=>'Reference', 'path'=>'VisionPrescription.encounter', 'min'=>0, 'max'=>1},
|
22
|
+
'patient' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient'], 'type'=>'Reference', 'path'=>'VisionPrescription.patient', 'min'=>0, 'max'=>1},
|
23
|
+
'encounter' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Encounter'], 'type'=>'Reference', 'path'=>'VisionPrescription.encounter', 'min'=>0, 'max'=>1},
|
24
24
|
'dateWritten' => {'type'=>'dateTime', 'path'=>'VisionPrescription.dateWritten', 'min'=>0, 'max'=>1},
|
25
|
-
'prescriber' => {'type'=>'Reference', 'path'=>'VisionPrescription.prescriber', 'min'=>0, 'max'=>1},
|
25
|
+
'prescriber' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner'], 'type'=>'Reference', 'path'=>'VisionPrescription.prescriber', 'min'=>0, 'max'=>1},
|
26
26
|
'reasonCodeableConcept' => {'type'=>'CodeableConcept', 'path'=>'VisionPrescription.reason[x]', 'min'=>0, 'max'=>1},
|
27
|
-
'reasonReference' => {'type'=>'Reference', 'path'=>'VisionPrescription.reason[x]', 'min'=>0, 'max'=>1},
|
27
|
+
'reasonReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Condition'], 'type'=>'Reference', 'path'=>'VisionPrescription.reason[x]', 'min'=>0, 'max'=>1},
|
28
28
|
'dispense' => {'type'=>'VisionPrescription::Dispense', 'path'=>'VisionPrescription.dispense', 'min'=>0, 'max'=>Float::INFINITY}
|
29
29
|
}
|
30
30
|
|
@@ -84,12 +84,12 @@ module FHIR
|
|
84
84
|
attr_accessor :modifierExtension # 0-* [ Extension ]
|
85
85
|
attr_accessor :identifier # 0-* [ Identifier ]
|
86
86
|
attr_accessor :status # 0-1 code
|
87
|
-
attr_accessor :patient # 0-1 Reference()
|
88
|
-
attr_accessor :encounter # 0-1 Reference()
|
87
|
+
attr_accessor :patient # 0-1 Reference(Patient)
|
88
|
+
attr_accessor :encounter # 0-1 Reference(Encounter)
|
89
89
|
attr_accessor :dateWritten # 0-1 dateTime
|
90
|
-
attr_accessor :prescriber # 0-1 Reference()
|
90
|
+
attr_accessor :prescriber # 0-1 Reference(Practitioner)
|
91
91
|
attr_accessor :reasonCodeableConcept # 0-1 CodeableConcept
|
92
|
-
attr_accessor :reasonReference # 0-1 Reference()
|
92
|
+
attr_accessor :reasonReference # 0-1 Reference(Condition)
|
93
93
|
attr_accessor :dispense # 0-* [ VisionPrescription::Dispense ]
|
94
94
|
|
95
95
|
def resourceType
|
@@ -4,7 +4,7 @@ module FHIR
|
|
4
4
|
include FHIR::Json
|
5
5
|
include FHIR::Xml
|
6
6
|
|
7
|
-
SEARCH_PARAMS =
|
7
|
+
SEARCH_PARAMS =
|
8
8
|
METADATA = {
|
9
9
|
'id' => {'type'=>'string', 'path'=>'Address.id', 'min'=>0, 'max'=>1},
|
10
10
|
'extension' => {'type'=>'Extension', 'path'=>'Address.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
@@ -4,7 +4,7 @@ module FHIR
|
|
4
4
|
include FHIR::Json
|
5
5
|
include FHIR::Xml
|
6
6
|
|
7
|
-
SEARCH_PARAMS =
|
7
|
+
SEARCH_PARAMS =
|
8
8
|
METADATA = {
|
9
9
|
'id' => {'type'=>'string', 'path'=>'Age.id', 'min'=>0, 'max'=>1},
|
10
10
|
'extension' => {'type'=>'Extension', 'path'=>'Age.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
@@ -7,11 +7,11 @@ module FHIR
|
|
7
7
|
MULTIPLE_TYPES = {
|
8
8
|
'author' => ['Reference', 'string']
|
9
9
|
}
|
10
|
-
SEARCH_PARAMS =
|
10
|
+
SEARCH_PARAMS =
|
11
11
|
METADATA = {
|
12
12
|
'id' => {'type'=>'string', 'path'=>'Annotation.id', 'min'=>0, 'max'=>1},
|
13
13
|
'extension' => {'type'=>'Extension', 'path'=>'Annotation.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
14
|
-
'authorReference' => {'type'=>'Reference', 'path'=>'Annotation.author[x]', 'min'=>0, 'max'=>1},
|
14
|
+
'authorReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner', 'http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'], 'type'=>'Reference', 'path'=>'Annotation.author[x]', 'min'=>0, 'max'=>1},
|
15
15
|
'authorString' => {'type'=>'string', 'path'=>'Annotation.author[x]', 'min'=>0, 'max'=>1},
|
16
16
|
'time' => {'type'=>'dateTime', 'path'=>'Annotation.time', 'min'=>0, 'max'=>1},
|
17
17
|
'text' => {'type'=>'string', 'path'=>'Annotation.text', 'min'=>1, 'max'=>1}
|
@@ -19,7 +19,7 @@ module FHIR
|
|
19
19
|
|
20
20
|
attr_accessor :id # 0-1 string
|
21
21
|
attr_accessor :extension # 0-* [ Extension ]
|
22
|
-
attr_accessor :authorReference # 0-1 Reference()
|
22
|
+
attr_accessor :authorReference # 0-1 Reference(Practitioner|Patient|RelatedPerson)
|
23
23
|
attr_accessor :authorString # 0-1 string
|
24
24
|
attr_accessor :time # 0-1 dateTime
|
25
25
|
attr_accessor :text # 1-1 string
|
@@ -4,7 +4,7 @@ module FHIR
|
|
4
4
|
include FHIR::Json
|
5
5
|
include FHIR::Xml
|
6
6
|
|
7
|
-
SEARCH_PARAMS =
|
7
|
+
SEARCH_PARAMS =
|
8
8
|
METADATA = {
|
9
9
|
'id' => {'type'=>'string', 'path'=>'Attachment.id', 'min'=>0, 'max'=>1},
|
10
10
|
'extension' => {'type'=>'Extension', 'path'=>'Attachment.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
@@ -4,7 +4,7 @@ module FHIR
|
|
4
4
|
include FHIR::Json
|
5
5
|
include FHIR::Xml
|
6
6
|
|
7
|
-
SEARCH_PARAMS =
|
7
|
+
SEARCH_PARAMS =
|
8
8
|
METADATA = {
|
9
9
|
'id' => {'type'=>'string', 'path'=>'BackboneElement.id', 'min'=>0, 'max'=>1},
|
10
10
|
'extension' => {'type'=>'Extension', 'path'=>'BackboneElement.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
@@ -4,7 +4,7 @@ module FHIR
|
|
4
4
|
include FHIR::Json
|
5
5
|
include FHIR::Xml
|
6
6
|
|
7
|
-
SEARCH_PARAMS =
|
7
|
+
SEARCH_PARAMS =
|
8
8
|
METADATA = {
|
9
9
|
'id' => {'type'=>'string', 'path'=>'CodeableConcept.id', 'min'=>0, 'max'=>1},
|
10
10
|
'extension' => {'type'=>'Extension', 'path'=>'CodeableConcept.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
@@ -4,7 +4,7 @@ module FHIR
|
|
4
4
|
include FHIR::Json
|
5
5
|
include FHIR::Xml
|
6
6
|
|
7
|
-
SEARCH_PARAMS =
|
7
|
+
SEARCH_PARAMS =
|
8
8
|
METADATA = {
|
9
9
|
'id' => {'type'=>'string', 'path'=>'Coding.id', 'min'=>0, 'max'=>1},
|
10
10
|
'extension' => {'type'=>'Extension', 'path'=>'Coding.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
@@ -4,7 +4,7 @@ module FHIR
|
|
4
4
|
include FHIR::Json
|
5
5
|
include FHIR::Xml
|
6
6
|
|
7
|
-
SEARCH_PARAMS =
|
7
|
+
SEARCH_PARAMS =
|
8
8
|
METADATA = {
|
9
9
|
'id' => {'type'=>'string', 'path'=>'ContactDetail.id', 'min'=>0, 'max'=>1},
|
10
10
|
'extension' => {'type'=>'Extension', 'path'=>'ContactDetail.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
@@ -4,7 +4,7 @@ module FHIR
|
|
4
4
|
include FHIR::Json
|
5
5
|
include FHIR::Xml
|
6
6
|
|
7
|
-
SEARCH_PARAMS =
|
7
|
+
SEARCH_PARAMS =
|
8
8
|
METADATA = {
|
9
9
|
'id' => {'type'=>'string', 'path'=>'ContactPoint.id', 'min'=>0, 'max'=>1},
|
10
10
|
'extension' => {'type'=>'Extension', 'path'=>'ContactPoint.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
@@ -4,7 +4,7 @@ module FHIR
|
|
4
4
|
include FHIR::Json
|
5
5
|
include FHIR::Xml
|
6
6
|
|
7
|
-
SEARCH_PARAMS =
|
7
|
+
SEARCH_PARAMS =
|
8
8
|
METADATA = {
|
9
9
|
'id' => {'type'=>'string', 'path'=>'Contributor.id', 'min'=>0, 'max'=>1},
|
10
10
|
'extension' => {'type'=>'Extension', 'path'=>'Contributor.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
@@ -4,7 +4,7 @@ module FHIR
|
|
4
4
|
include FHIR::Json
|
5
5
|
include FHIR::Xml
|
6
6
|
|
7
|
-
SEARCH_PARAMS =
|
7
|
+
SEARCH_PARAMS =
|
8
8
|
METADATA = {
|
9
9
|
'id' => {'type'=>'string', 'path'=>'Count.id', 'min'=>0, 'max'=>1},
|
10
10
|
'extension' => {'type'=>'Extension', 'path'=>'Count.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
@@ -4,7 +4,7 @@ module FHIR
|
|
4
4
|
include FHIR::Json
|
5
5
|
include FHIR::Xml
|
6
6
|
|
7
|
-
SEARCH_PARAMS =
|
7
|
+
SEARCH_PARAMS =
|
8
8
|
METADATA = {
|
9
9
|
'id' => {'type'=>'string', 'path'=>'DataRequirement.id', 'min'=>0, 'max'=>1},
|
10
10
|
'extension' => {'type'=>'Extension', 'path'=>'DataRequirement.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
@@ -28,7 +28,7 @@ module FHIR
|
|
28
28
|
'extension' => {'type'=>'Extension', 'path'=>'CodeFilter.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
29
29
|
'path' => {'type'=>'string', 'path'=>'CodeFilter.path', 'min'=>1, 'max'=>1},
|
30
30
|
'valueSetString' => {'type'=>'string', 'path'=>'CodeFilter.valueSet[x]', 'min'=>0, 'max'=>1},
|
31
|
-
'valueSetReference' => {'type'=>'Reference', 'path'=>'CodeFilter.valueSet[x]', 'min'=>0, 'max'=>1},
|
31
|
+
'valueSetReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/ValueSet'], 'type'=>'Reference', 'path'=>'CodeFilter.valueSet[x]', 'min'=>0, 'max'=>1},
|
32
32
|
'valueCode' => {'type'=>'code', 'path'=>'CodeFilter.valueCode', 'min'=>0, 'max'=>Float::INFINITY},
|
33
33
|
'valueCoding' => {'type'=>'Coding', 'path'=>'CodeFilter.valueCoding', 'min'=>0, 'max'=>Float::INFINITY},
|
34
34
|
'valueCodeableConcept' => {'type'=>'CodeableConcept', 'path'=>'CodeFilter.valueCodeableConcept', 'min'=>0, 'max'=>Float::INFINITY}
|
@@ -38,7 +38,7 @@ module FHIR
|
|
38
38
|
attr_accessor :extension # 0-* [ Extension ]
|
39
39
|
attr_accessor :path # 1-1 string
|
40
40
|
attr_accessor :valueSetString # 0-1 string
|
41
|
-
attr_accessor :valueSetReference # 0-1 Reference()
|
41
|
+
attr_accessor :valueSetReference # 0-1 Reference(ValueSet)
|
42
42
|
attr_accessor :valueCode # 0-* [ code ]
|
43
43
|
attr_accessor :valueCoding # 0-* [ Coding ]
|
44
44
|
attr_accessor :valueCodeableConcept # 0-* [ CodeableConcept ]
|
@@ -4,7 +4,7 @@ module FHIR
|
|
4
4
|
include FHIR::Json
|
5
5
|
include FHIR::Xml
|
6
6
|
|
7
|
-
SEARCH_PARAMS =
|
7
|
+
SEARCH_PARAMS =
|
8
8
|
METADATA = {
|
9
9
|
'id' => {'type'=>'string', 'path'=>'Distance.id', 'min'=>0, 'max'=>1},
|
10
10
|
'extension' => {'type'=>'Extension', 'path'=>'Distance.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
@@ -9,7 +9,7 @@ module FHIR
|
|
9
9
|
'dose' => ['Range', 'Quantity'],
|
10
10
|
'rate' => ['Ratio', 'Range', 'Quantity']
|
11
11
|
}
|
12
|
-
SEARCH_PARAMS =
|
12
|
+
SEARCH_PARAMS =
|
13
13
|
METADATA = {
|
14
14
|
'id' => {'type'=>'string', 'path'=>'DosageInstruction.id', 'min'=>0, 'max'=>1},
|
15
15
|
'extension' => {'type'=>'Extension', 'path'=>'DosageInstruction.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
@@ -4,7 +4,7 @@ module FHIR
|
|
4
4
|
include FHIR::Json
|
5
5
|
include FHIR::Xml
|
6
6
|
|
7
|
-
SEARCH_PARAMS =
|
7
|
+
SEARCH_PARAMS =
|
8
8
|
METADATA = {
|
9
9
|
'id' => {'type'=>'string', 'path'=>'Duration.id', 'min'=>0, 'max'=>1},
|
10
10
|
'extension' => {'type'=>'Extension', 'path'=>'Duration.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
@@ -4,7 +4,7 @@ module FHIR
|
|
4
4
|
include FHIR::Json
|
5
5
|
include FHIR::Xml
|
6
6
|
|
7
|
-
SEARCH_PARAMS =
|
7
|
+
SEARCH_PARAMS =
|
8
8
|
METADATA = {
|
9
9
|
'id' => {'type'=>'string', 'path'=>'Element.id', 'min'=>0, 'max'=>1},
|
10
10
|
'extension' => {'type'=>'Extension', 'path'=>'Element.extension', 'min'=>0, 'max'=>Float::INFINITY}
|
@@ -11,7 +11,7 @@ module FHIR
|
|
11
11
|
'minValue' => ['date', 'dateTime', 'instant', 'time', 'decimal', 'integer', 'positiveInt', 'unsignedInt', 'Quantity'],
|
12
12
|
'maxValue' => ['date', 'dateTime', 'instant', 'time', 'decimal', 'integer', 'positiveInt', 'unsignedInt', 'Quantity']
|
13
13
|
}
|
14
|
-
SEARCH_PARAMS =
|
14
|
+
SEARCH_PARAMS =
|
15
15
|
METADATA = {
|
16
16
|
'id' => {'type'=>'string', 'path'=>'ElementDefinition.id', 'min'=>0, 'max'=>1},
|
17
17
|
'extension' => {'type'=>'Extension', 'path'=>'ElementDefinition.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
@@ -378,7 +378,7 @@ module FHIR
|
|
378
378
|
'strength' => {'valid_codes'=>{'http://hl7.org/fhir/binding-strength'=>['required', 'extensible', 'preferred', 'example', 'required', 'extensible', 'preferred', 'example']}, 'type'=>'code', 'path'=>'Binding.strength', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/binding-strength'}},
|
379
379
|
'description' => {'type'=>'string', 'path'=>'Binding.description', 'min'=>0, 'max'=>1},
|
380
380
|
'valueSetUri' => {'type'=>'uri', 'path'=>'Binding.valueSet[x]', 'min'=>0, 'max'=>1},
|
381
|
-
'valueSetReference' => {'type'=>'Reference', 'path'=>'Binding.valueSet[x]', 'min'=>0, 'max'=>1}
|
381
|
+
'valueSetReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/ValueSet'], 'type'=>'Reference', 'path'=>'Binding.valueSet[x]', 'min'=>0, 'max'=>1}
|
382
382
|
}
|
383
383
|
|
384
384
|
attr_accessor :id # 0-1 string
|
@@ -386,7 +386,7 @@ module FHIR
|
|
386
386
|
attr_accessor :strength # 1-1 code
|
387
387
|
attr_accessor :description # 0-1 string
|
388
388
|
attr_accessor :valueSetUri # 0-1 uri
|
389
|
-
attr_accessor :valueSetReference # 0-1 Reference()
|
389
|
+
attr_accessor :valueSetReference # 0-1 Reference(ValueSet)
|
390
390
|
end
|
391
391
|
|
392
392
|
class Mapping < FHIR::Model
|
@@ -7,7 +7,7 @@ module FHIR
|
|
7
7
|
MULTIPLE_TYPES = {
|
8
8
|
'value' => ['base64Binary', 'boolean', 'code', 'date', 'dateTime', 'decimal', 'id', 'instant', 'integer', 'markdown', 'oid', 'positiveInt', 'string', 'time', 'unsignedInt', 'uri', 'Address', 'Age', 'Annotation', 'Attachment', 'CodeableConcept', 'Coding', 'ContactPoint', 'Count', 'Distance', 'Duration', 'HumanName', 'Identifier', 'Money', 'Period', 'Quantity', 'Range', 'Ratio', 'Reference', 'SampledData', 'Signature', 'Timing', 'Meta']
|
9
9
|
}
|
10
|
-
SEARCH_PARAMS =
|
10
|
+
SEARCH_PARAMS =
|
11
11
|
METADATA = {
|
12
12
|
'id' => {'type'=>'string', 'path'=>'Extension.id', 'min'=>0, 'max'=>1},
|
13
13
|
'extension' => {'type'=>'Extension', 'path'=>'Extension.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
@@ -4,7 +4,7 @@ module FHIR
|
|
4
4
|
include FHIR::Json
|
5
5
|
include FHIR::Xml
|
6
6
|
|
7
|
-
SEARCH_PARAMS =
|
7
|
+
SEARCH_PARAMS =
|
8
8
|
METADATA = {
|
9
9
|
'id' => {'type'=>'string', 'path'=>'HumanName.id', 'min'=>0, 'max'=>1},
|
10
10
|
'extension' => {'type'=>'Extension', 'path'=>'HumanName.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
@@ -4,7 +4,7 @@ module FHIR
|
|
4
4
|
include FHIR::Json
|
5
5
|
include FHIR::Xml
|
6
6
|
|
7
|
-
SEARCH_PARAMS =
|
7
|
+
SEARCH_PARAMS =
|
8
8
|
METADATA = {
|
9
9
|
'id' => {'type'=>'string', 'path'=>'Identifier.id', 'min'=>0, 'max'=>1},
|
10
10
|
'extension' => {'type'=>'Extension', 'path'=>'Identifier.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
@@ -13,7 +13,7 @@ module FHIR
|
|
13
13
|
'system' => {'type'=>'uri', 'path'=>'Identifier.system', 'min'=>0, 'max'=>1},
|
14
14
|
'value' => {'type'=>'string', 'path'=>'Identifier.value', 'min'=>0, 'max'=>1},
|
15
15
|
'period' => {'type'=>'Period', 'path'=>'Identifier.period', 'min'=>0, 'max'=>1},
|
16
|
-
'assigner' => {'type'=>'Reference', 'path'=>'Identifier.assigner', 'min'=>0, 'max'=>1}
|
16
|
+
'assigner' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Identifier.assigner', 'min'=>0, 'max'=>1}
|
17
17
|
}
|
18
18
|
|
19
19
|
attr_accessor :id # 0-1 string
|
@@ -23,6 +23,6 @@ module FHIR
|
|
23
23
|
attr_accessor :system # 0-1 uri
|
24
24
|
attr_accessor :value # 0-1 string
|
25
25
|
attr_accessor :period # 0-1 Period
|
26
|
-
attr_accessor :assigner # 0-1 Reference()
|
26
|
+
attr_accessor :assigner # 0-1 Reference(Organization)
|
27
27
|
end
|
28
28
|
end
|
@@ -4,7 +4,7 @@ module FHIR
|
|
4
4
|
include FHIR::Json
|
5
5
|
include FHIR::Xml
|
6
6
|
|
7
|
-
SEARCH_PARAMS =
|
7
|
+
SEARCH_PARAMS =
|
8
8
|
METADATA = {
|
9
9
|
'id' => {'type'=>'string', 'path'=>'Meta.id', 'min'=>0, 'max'=>1},
|
10
10
|
'extension' => {'type'=>'Extension', 'path'=>'Meta.extension', 'min'=>0, 'max'=>Float::INFINITY},
|