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
@@ -4,7 +4,7 @@ module FHIR
|
|
4
4
|
include FHIR::Json
|
5
5
|
include FHIR::Xml
|
6
6
|
|
7
|
-
SEARCH_PARAMS = []
|
7
|
+
SEARCH_PARAMS = ['base', 'code', 'date', 'description', 'instance', 'jurisdiction', 'kind', 'name', 'paramprofile', 'publisher', 'status', 'system', 'type', 'url', 'version']
|
8
8
|
METADATA = {
|
9
9
|
'id' => {'type'=>'id', 'path'=>'OperationDefinition.id', 'min'=>0, 'max'=>1},
|
10
10
|
'meta' => {'type'=>'Meta', 'path'=>'OperationDefinition.meta', 'min'=>0, 'max'=>1},
|
@@ -30,7 +30,7 @@ module FHIR
|
|
30
30
|
'idempotent' => {'type'=>'boolean', 'path'=>'OperationDefinition.idempotent', 'min'=>0, 'max'=>1},
|
31
31
|
'code' => {'type'=>'code', 'path'=>'OperationDefinition.code', 'min'=>1, 'max'=>1},
|
32
32
|
'comment' => {'type'=>'string', 'path'=>'OperationDefinition.comment', 'min'=>0, 'max'=>1},
|
33
|
-
'base' => {'type'=>'Reference', 'path'=>'OperationDefinition.base', 'min'=>0, 'max'=>1},
|
33
|
+
'base' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/OperationDefinition'], 'type'=>'Reference', 'path'=>'OperationDefinition.base', 'min'=>0, 'max'=>1},
|
34
34
|
'resource' => {'valid_codes'=>{'http://hl7.org/fhir/resource-types'=>['Account', 'ActivityDefinition', 'AllergyIntolerance', 'Appointment', 'AppointmentResponse', 'AuditEvent', 'Basic', 'Binary', 'BodySite', 'Bundle', 'CapabilityStatement', 'CarePlan', 'CareTeam', 'Claim', 'ClaimResponse', 'ClinicalImpression', 'CodeSystem', 'Communication', 'CommunicationRequest', 'CompartmentDefinition', 'Composition', 'ConceptMap', 'Condition', 'Consent', 'Contract', 'Coverage', 'DataElement', 'DetectedIssue', 'Device', 'DeviceComponent', 'DeviceMetric', 'DeviceUseRequest', 'DeviceUseStatement', 'DiagnosticReport', 'DiagnosticRequest', 'DocumentManifest', 'DocumentReference', 'DomainResource', 'EligibilityRequest', 'EligibilityResponse', 'Encounter', 'Endpoint', 'EnrollmentRequest', 'EnrollmentResponse', 'EpisodeOfCare', 'ExpansionProfile', 'ExplanationOfBenefit', 'FamilyMemberHistory', 'Flag', 'Goal', 'Group', 'GuidanceResponse', 'HealthcareService', 'ImagingManifest', 'ImagingStudy', 'Immunization', 'ImmunizationRecommendation', 'ImplementationGuide', 'Library', 'Linkage', 'List', 'Location', 'Measure', 'MeasureReport', 'Media', 'Medication', 'MedicationAdministration', 'MedicationDispense', 'MedicationRequest', 'MedicationStatement', 'MessageDefinition', 'MessageHeader', 'NamingSystem', 'NutritionRequest', 'Observation', 'OperationDefinition', 'OperationOutcome', 'Organization', 'Parameters', 'Patient', 'PaymentNotice', 'PaymentReconciliation', 'Person', 'PlanDefinition', 'Practitioner', 'PractitionerRole', 'Procedure', 'ProcedureRequest', 'ProcessRequest', 'ProcessResponse', 'Provenance', 'Questionnaire', 'QuestionnaireResponse', 'ReferralRequest', 'RelatedPerson', 'RequestGroup', 'ResearchStudy', 'ResearchSubject', 'Resource', 'RiskAssessment', 'Schedule', 'SearchParameter', 'Sequence', 'ServiceDefinition', 'Slot', 'Specimen', 'StructureDefinition', 'StructureMap', 'Subscription', 'Substance', 'SupplyDelivery', 'SupplyRequest', 'Task', 'TestReport', 'TestScript', 'ValueSet', 'VisionPrescription', 'Account', 'ActivityDefinition', 'AllergyIntolerance', 'Appointment', 'AppointmentResponse', 'AuditEvent', 'Basic', 'Binary', 'BodySite', 'Bundle', 'CapabilityStatement', 'CarePlan', 'CareTeam', 'Claim', 'ClaimResponse', 'ClinicalImpression', 'CodeSystem', 'Communication', 'CommunicationRequest', 'CompartmentDefinition', 'Composition', 'ConceptMap', 'Condition', 'Consent', 'Contract', 'Coverage', 'DataElement', 'DetectedIssue', 'Device', 'DeviceComponent', 'DeviceMetric', 'DeviceUseRequest', 'DeviceUseStatement', 'DiagnosticReport', 'DiagnosticRequest', 'DocumentManifest', 'DocumentReference', 'DomainResource', 'EligibilityRequest', 'EligibilityResponse', 'Encounter', 'Endpoint', 'EnrollmentRequest', 'EnrollmentResponse', 'EpisodeOfCare', 'ExpansionProfile', 'ExplanationOfBenefit', 'FamilyMemberHistory', 'Flag', 'Goal', 'Group', 'GuidanceResponse', 'HealthcareService', 'ImagingManifest', 'ImagingStudy', 'Immunization', 'ImmunizationRecommendation', 'ImplementationGuide', 'Library', 'Linkage', 'List', 'Location', 'Measure', 'MeasureReport', 'Media', 'Medication', 'MedicationAdministration', 'MedicationDispense', 'MedicationRequest', 'MedicationStatement', 'MessageDefinition', 'MessageHeader', 'NamingSystem', 'NutritionRequest', 'Observation', 'OperationDefinition', 'OperationOutcome', 'Organization', 'Parameters', 'Patient', 'PaymentNotice', 'PaymentReconciliation', 'Person', 'PlanDefinition', 'Practitioner', 'PractitionerRole', 'Procedure', 'ProcedureRequest', 'ProcessRequest', 'ProcessResponse', 'Provenance', 'Questionnaire', 'QuestionnaireResponse', 'ReferralRequest', 'RelatedPerson', 'RequestGroup', 'ResearchStudy', 'ResearchSubject', 'Resource', 'RiskAssessment', 'Schedule', 'SearchParameter', 'Sequence', 'ServiceDefinition', 'Slot', 'Specimen', 'StructureDefinition', 'StructureMap', 'Subscription', 'Substance', 'SupplyDelivery', 'SupplyRequest', 'Task', 'TestReport', 'TestScript', 'ValueSet', 'VisionPrescription']}, 'type'=>'code', 'path'=>'OperationDefinition.resource', 'min'=>0, 'max'=>Float::INFINITY, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/resource-types'}},
|
35
35
|
'system' => {'type'=>'boolean', 'path'=>'OperationDefinition.system', 'min'=>1, 'max'=>1},
|
36
36
|
'type' => {'type'=>'boolean', 'path'=>'OperationDefinition.type', 'min'=>1, 'max'=>1},
|
@@ -55,7 +55,7 @@ module FHIR
|
|
55
55
|
'documentation' => {'type'=>'string', 'path'=>'Parameter.documentation', 'min'=>0, 'max'=>1},
|
56
56
|
'type' => {'valid_codes'=>{'http://hl7.org/fhir/data-types'=>['Address', 'Age', 'Annotation', 'Attachment', 'BackboneElement', 'CodeableConcept', 'Coding', 'ContactDetail', 'ContactPoint', 'Contributor', 'Count', 'DataRequirement', 'Distance', 'DosageInstruction', 'Duration', 'Element', 'ElementDefinition', 'Extension', 'HumanName', 'Identifier', 'Meta', 'Money', 'Narrative', 'ParameterDefinition', 'Period', 'Quantity', 'Range', 'Ratio', 'Reference', 'RelatedArtifact', 'SampledData', 'Signature', 'SimpleQuantity', 'Timing', 'TriggerDefinition', 'UsageContext', 'base64Binary', 'boolean', 'code', 'date', 'dateTime', 'decimal', 'id', 'instant', 'integer', 'markdown', 'oid', 'positiveInt', 'string', 'time', 'unsignedInt', 'uri', 'uuid', 'xhtml', 'Address', 'Age', 'Annotation', 'Attachment', 'BackboneElement', 'CodeableConcept', 'Coding', 'ContactDetail', 'ContactPoint', 'Contributor', 'Count', 'DataRequirement', 'Distance', 'DosageInstruction', 'Duration', 'Element', 'ElementDefinition', 'Extension', 'HumanName', 'Identifier', 'Meta', 'Money', 'Narrative', 'ParameterDefinition', 'Period', 'Quantity', 'Range', 'Ratio', 'Reference', 'RelatedArtifact', 'SampledData', 'Signature', 'SimpleQuantity', 'Timing', 'TriggerDefinition', 'UsageContext', 'base64Binary', 'boolean', 'code', 'date', 'dateTime', 'decimal', 'id', 'instant', 'integer', 'markdown', 'oid', 'positiveInt', 'string', 'time', 'unsignedInt', 'uri', 'uuid', 'xhtml'], 'http://hl7.org/fhir/resource-types'=>['Account', 'ActivityDefinition', 'AllergyIntolerance', 'Appointment', 'AppointmentResponse', 'AuditEvent', 'Basic', 'Binary', 'BodySite', 'Bundle', 'CapabilityStatement', 'CarePlan', 'CareTeam', 'Claim', 'ClaimResponse', 'ClinicalImpression', 'CodeSystem', 'Communication', 'CommunicationRequest', 'CompartmentDefinition', 'Composition', 'ConceptMap', 'Condition', 'Consent', 'Contract', 'Coverage', 'DataElement', 'DetectedIssue', 'Device', 'DeviceComponent', 'DeviceMetric', 'DeviceUseRequest', 'DeviceUseStatement', 'DiagnosticReport', 'DiagnosticRequest', 'DocumentManifest', 'DocumentReference', 'DomainResource', 'EligibilityRequest', 'EligibilityResponse', 'Encounter', 'Endpoint', 'EnrollmentRequest', 'EnrollmentResponse', 'EpisodeOfCare', 'ExpansionProfile', 'ExplanationOfBenefit', 'FamilyMemberHistory', 'Flag', 'Goal', 'Group', 'GuidanceResponse', 'HealthcareService', 'ImagingManifest', 'ImagingStudy', 'Immunization', 'ImmunizationRecommendation', 'ImplementationGuide', 'Library', 'Linkage', 'List', 'Location', 'Measure', 'MeasureReport', 'Media', 'Medication', 'MedicationAdministration', 'MedicationDispense', 'MedicationRequest', 'MedicationStatement', 'MessageDefinition', 'MessageHeader', 'NamingSystem', 'NutritionRequest', 'Observation', 'OperationDefinition', 'OperationOutcome', 'Organization', 'Parameters', 'Patient', 'PaymentNotice', 'PaymentReconciliation', 'Person', 'PlanDefinition', 'Practitioner', 'PractitionerRole', 'Procedure', 'ProcedureRequest', 'ProcessRequest', 'ProcessResponse', 'Provenance', 'Questionnaire', 'QuestionnaireResponse', 'ReferralRequest', 'RelatedPerson', 'RequestGroup', 'ResearchStudy', 'ResearchSubject', 'Resource', 'RiskAssessment', 'Schedule', 'SearchParameter', 'Sequence', 'ServiceDefinition', 'Slot', 'Specimen', 'StructureDefinition', 'StructureMap', 'Subscription', 'Substance', 'SupplyDelivery', 'SupplyRequest', 'Task', 'TestReport', 'TestScript', 'ValueSet', 'VisionPrescription', 'Account', 'ActivityDefinition', 'AllergyIntolerance', 'Appointment', 'AppointmentResponse', 'AuditEvent', 'Basic', 'Binary', 'BodySite', 'Bundle', 'CapabilityStatement', 'CarePlan', 'CareTeam', 'Claim', 'ClaimResponse', 'ClinicalImpression', 'CodeSystem', 'Communication', 'CommunicationRequest', 'CompartmentDefinition', 'Composition', 'ConceptMap', 'Condition', 'Consent', 'Contract', 'Coverage', 'DataElement', 'DetectedIssue', 'Device', 'DeviceComponent', 'DeviceMetric', 'DeviceUseRequest', 'DeviceUseStatement', 'DiagnosticReport', 'DiagnosticRequest', 'DocumentManifest', 'DocumentReference', 'DomainResource', 'EligibilityRequest', 'EligibilityResponse', 'Encounter', 'Endpoint', 'EnrollmentRequest', 'EnrollmentResponse', 'EpisodeOfCare', 'ExpansionProfile', 'ExplanationOfBenefit', 'FamilyMemberHistory', 'Flag', 'Goal', 'Group', 'GuidanceResponse', 'HealthcareService', 'ImagingManifest', 'ImagingStudy', 'Immunization', 'ImmunizationRecommendation', 'ImplementationGuide', 'Library', 'Linkage', 'List', 'Location', 'Measure', 'MeasureReport', 'Media', 'Medication', 'MedicationAdministration', 'MedicationDispense', 'MedicationRequest', 'MedicationStatement', 'MessageDefinition', 'MessageHeader', 'NamingSystem', 'NutritionRequest', 'Observation', 'OperationDefinition', 'OperationOutcome', 'Organization', 'Parameters', 'Patient', 'PaymentNotice', 'PaymentReconciliation', 'Person', 'PlanDefinition', 'Practitioner', 'PractitionerRole', 'Procedure', 'ProcedureRequest', 'ProcessRequest', 'ProcessResponse', 'Provenance', 'Questionnaire', 'QuestionnaireResponse', 'ReferralRequest', 'RelatedPerson', 'RequestGroup', 'ResearchStudy', 'ResearchSubject', 'Resource', 'RiskAssessment', 'Schedule', 'SearchParameter', 'Sequence', 'ServiceDefinition', 'Slot', 'Specimen', 'StructureDefinition', 'StructureMap', 'Subscription', 'Substance', 'SupplyDelivery', 'SupplyRequest', 'Task', 'TestReport', 'TestScript', 'ValueSet', 'VisionPrescription'], 'http://hl7.org/fhir/abstract-types'=>['Type', 'Any', 'Type', 'Any']}, 'type'=>'code', 'path'=>'Parameter.type', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/all-types'}},
|
57
57
|
'searchType' => {'valid_codes'=>{'http://hl7.org/fhir/search-param-type'=>['number', 'date', 'string', 'token', 'reference', 'composite', 'quantity', 'uri', 'number', 'date', 'string', 'token', 'reference', 'composite', 'quantity', 'uri']}, 'type'=>'code', 'path'=>'Parameter.searchType', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/search-param-type'}},
|
58
|
-
'profile' => {'type'=>'Reference', 'path'=>'Parameter.profile', 'min'=>0, 'max'=>1},
|
58
|
+
'profile' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/StructureDefinition'], 'type'=>'Reference', 'path'=>'Parameter.profile', 'min'=>0, 'max'=>1},
|
59
59
|
'binding' => {'type'=>'OperationDefinition::Parameter::Binding', 'path'=>'Parameter.binding', 'min'=>0, 'max'=>1},
|
60
60
|
'part' => {'type'=>'OperationDefinition::Parameter', 'path'=>'Parameter.part', 'min'=>0, 'max'=>Float::INFINITY}
|
61
61
|
}
|
@@ -74,7 +74,7 @@ module FHIR
|
|
74
74
|
'modifierExtension' => {'type'=>'Extension', 'path'=>'Binding.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
75
75
|
'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'}},
|
76
76
|
'valueSetUri' => {'type'=>'uri', 'path'=>'Binding.valueSet[x]', 'min'=>1, 'max'=>1},
|
77
|
-
'valueSetReference' => {'type'=>'Reference', 'path'=>'Binding.valueSet[x]', 'min'=>1, 'max'=>1}
|
77
|
+
'valueSetReference' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/ValueSet'], 'type'=>'Reference', 'path'=>'Binding.valueSet[x]', 'min'=>1, 'max'=>1}
|
78
78
|
}
|
79
79
|
|
80
80
|
attr_accessor :id # 0-1 string
|
@@ -82,7 +82,7 @@ module FHIR
|
|
82
82
|
attr_accessor :modifierExtension # 0-* [ Extension ]
|
83
83
|
attr_accessor :strength # 1-1 code
|
84
84
|
attr_accessor :valueSetUri # 1-1 uri
|
85
|
-
attr_accessor :valueSetReference # 1-1 Reference()
|
85
|
+
attr_accessor :valueSetReference # 1-1 Reference(ValueSet)
|
86
86
|
end
|
87
87
|
|
88
88
|
attr_accessor :id # 0-1 string
|
@@ -95,7 +95,7 @@ module FHIR
|
|
95
95
|
attr_accessor :documentation # 0-1 string
|
96
96
|
attr_accessor :type # 0-1 code
|
97
97
|
attr_accessor :searchType # 0-1 code
|
98
|
-
attr_accessor :profile # 0-1 Reference()
|
98
|
+
attr_accessor :profile # 0-1 Reference(StructureDefinition)
|
99
99
|
attr_accessor :binding # 0-1 OperationDefinition::Parameter::Binding
|
100
100
|
attr_accessor :part # 0-* [ OperationDefinition::Parameter ]
|
101
101
|
end
|
@@ -144,7 +144,7 @@ module FHIR
|
|
144
144
|
attr_accessor :idempotent # 0-1 boolean
|
145
145
|
attr_accessor :code # 1-1 code
|
146
146
|
attr_accessor :comment # 0-1 string
|
147
|
-
attr_accessor :base # 0-1 Reference()
|
147
|
+
attr_accessor :base # 0-1 Reference(OperationDefinition)
|
148
148
|
attr_accessor :resource # 0-* [ code ]
|
149
149
|
attr_accessor :system # 1-1 boolean
|
150
150
|
attr_accessor :type # 1-1 boolean
|
@@ -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'=>'id', 'path'=>'OperationOutcome.id', 'min'=>0, 'max'=>1},
|
10
10
|
'meta' => {'type'=>'Meta', 'path'=>'OperationOutcome.meta', 'min'=>0, 'max'=>1},
|
@@ -4,7 +4,7 @@ module FHIR
|
|
4
4
|
include FHIR::Json
|
5
5
|
include FHIR::Xml
|
6
6
|
|
7
|
-
SEARCH_PARAMS = []
|
7
|
+
SEARCH_PARAMS = ['active', 'address', 'address-city', 'address-country', 'address-postalcode', 'address-state', 'address-use', 'endpoint', 'identifier', 'name', 'partof', 'phonetic', 'type']
|
8
8
|
METADATA = {
|
9
9
|
'id' => {'type'=>'id', 'path'=>'Organization.id', 'min'=>0, 'max'=>1},
|
10
10
|
'meta' => {'type'=>'Meta', 'path'=>'Organization.meta', 'min'=>0, 'max'=>1},
|
@@ -21,9 +21,9 @@ module FHIR
|
|
21
21
|
'alias' => {'type'=>'string', 'path'=>'Organization.alias', 'min'=>0, 'max'=>Float::INFINITY},
|
22
22
|
'telecom' => {'type'=>'ContactPoint', 'path'=>'Organization.telecom', 'min'=>0, 'max'=>Float::INFINITY},
|
23
23
|
'address' => {'type'=>'Address', 'path'=>'Organization.address', 'min'=>0, 'max'=>Float::INFINITY},
|
24
|
-
'partOf' => {'type'=>'Reference', 'path'=>'Organization.partOf', 'min'=>0, 'max'=>1},
|
24
|
+
'partOf' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Organization.partOf', 'min'=>0, 'max'=>1},
|
25
25
|
'contact' => {'type'=>'Organization::Contact', 'path'=>'Organization.contact', 'min'=>0, 'max'=>Float::INFINITY},
|
26
|
-
'endpoint' => {'type'=>'Reference', 'path'=>'Organization.endpoint', 'min'=>0, 'max'=>Float::INFINITY}
|
26
|
+
'endpoint' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Endpoint'], 'type'=>'Reference', 'path'=>'Organization.endpoint', 'min'=>0, 'max'=>Float::INFINITY}
|
27
27
|
}
|
28
28
|
|
29
29
|
class Contact < FHIR::Model
|
@@ -65,9 +65,9 @@ module FHIR
|
|
65
65
|
attr_accessor :alias # 0-* [ string ]
|
66
66
|
attr_accessor :telecom # 0-* [ ContactPoint ]
|
67
67
|
attr_accessor :address # 0-* [ Address ]
|
68
|
-
attr_accessor :partOf # 0-1 Reference()
|
68
|
+
attr_accessor :partOf # 0-1 Reference(Organization)
|
69
69
|
attr_accessor :contact # 0-* [ Organization::Contact ]
|
70
|
-
attr_accessor :endpoint # 0-* [ Reference() ]
|
70
|
+
attr_accessor :endpoint # 0-* [ Reference(Endpoint) ]
|
71
71
|
|
72
72
|
def resourceType
|
73
73
|
'Organization'
|
@@ -8,7 +8,7 @@ module FHIR
|
|
8
8
|
'deceased' => ['boolean', 'dateTime'],
|
9
9
|
'multipleBirth' => ['boolean', 'integer']
|
10
10
|
}
|
11
|
-
SEARCH_PARAMS = []
|
11
|
+
SEARCH_PARAMS = ['active', 'address', 'address-city', 'address-country', 'address-postalcode', 'address-state', 'address-use', 'animal-breed', 'animal-species', 'birthdate', 'death-date', 'deceased', 'email', 'family', 'gender', 'general-practitioner', 'given', 'identifier', 'language', 'link', 'name', 'organization', 'phone', 'phonetic', 'telecom']
|
12
12
|
METADATA = {
|
13
13
|
'id' => {'type'=>'id', 'path'=>'Patient.id', 'min'=>0, 'max'=>1},
|
14
14
|
'meta' => {'type'=>'Meta', 'path'=>'Patient.meta', 'min'=>0, 'max'=>1},
|
@@ -34,8 +34,8 @@ module FHIR
|
|
34
34
|
'contact' => {'type'=>'Patient::Contact', 'path'=>'Patient.contact', 'min'=>0, 'max'=>Float::INFINITY},
|
35
35
|
'animal' => {'type'=>'Patient::Animal', 'path'=>'Patient.animal', 'min'=>0, 'max'=>1},
|
36
36
|
'communication' => {'type'=>'Patient::Communication', 'path'=>'Patient.communication', 'min'=>0, 'max'=>Float::INFINITY},
|
37
|
-
'generalPractitioner' => {'type'=>'Reference', 'path'=>'Patient.generalPractitioner', 'min'=>0, 'max'=>Float::INFINITY},
|
38
|
-
'managingOrganization' => {'type'=>'Reference', 'path'=>'Patient.managingOrganization', 'min'=>0, 'max'=>1},
|
37
|
+
'generalPractitioner' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization', 'http://hl7.org/fhir/StructureDefinition/Practitioner'], 'type'=>'Reference', 'path'=>'Patient.generalPractitioner', 'min'=>0, 'max'=>Float::INFINITY},
|
38
|
+
'managingOrganization' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Patient.managingOrganization', 'min'=>0, 'max'=>1},
|
39
39
|
'link' => {'type'=>'Patient::Link', 'path'=>'Patient.link', 'min'=>0, 'max'=>Float::INFINITY}
|
40
40
|
}
|
41
41
|
|
@@ -53,7 +53,7 @@ module FHIR
|
|
53
53
|
'telecom' => {'type'=>'ContactPoint', 'path'=>'Contact.telecom', 'min'=>0, 'max'=>Float::INFINITY},
|
54
54
|
'address' => {'type'=>'Address', 'path'=>'Contact.address', 'min'=>0, 'max'=>1},
|
55
55
|
'gender' => {'valid_codes'=>{'http://hl7.org/fhir/administrative-gender'=>['male', 'female', 'other', 'unknown', 'male', 'female', 'other', 'unknown']}, 'type'=>'code', 'path'=>'Contact.gender', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/administrative-gender'}},
|
56
|
-
'organization' => {'type'=>'Reference', 'path'=>'Contact.organization', 'min'=>0, 'max'=>1},
|
56
|
+
'organization' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Contact.organization', 'min'=>0, 'max'=>1},
|
57
57
|
'period' => {'type'=>'Period', 'path'=>'Contact.period', 'min'=>0, 'max'=>1}
|
58
58
|
}
|
59
59
|
|
@@ -65,7 +65,7 @@ module FHIR
|
|
65
65
|
attr_accessor :telecom # 0-* [ ContactPoint ]
|
66
66
|
attr_accessor :address # 0-1 Address
|
67
67
|
attr_accessor :gender # 0-1 code
|
68
|
-
attr_accessor :organization # 0-1 Reference()
|
68
|
+
attr_accessor :organization # 0-1 Reference(Organization)
|
69
69
|
attr_accessor :period # 0-1 Period
|
70
70
|
end
|
71
71
|
|
@@ -120,14 +120,14 @@ module FHIR
|
|
120
120
|
'id' => {'type'=>'string', 'path'=>'Link.id', 'min'=>0, 'max'=>1},
|
121
121
|
'extension' => {'type'=>'Extension', 'path'=>'Link.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
122
122
|
'modifierExtension' => {'type'=>'Extension', 'path'=>'Link.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
123
|
-
'other' => {'type'=>'Reference', 'path'=>'Link.other', 'min'=>1, 'max'=>1},
|
123
|
+
'other' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Patient', 'http://hl7.org/fhir/StructureDefinition/RelatedPerson'], 'type'=>'Reference', 'path'=>'Link.other', 'min'=>1, 'max'=>1},
|
124
124
|
'type' => {'valid_codes'=>{'http://hl7.org/fhir/link-type'=>['replace', 'refer', 'seealso', 'replace', 'refer', 'seealso']}, 'type'=>'code', 'path'=>'Link.type', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/link-type'}}
|
125
125
|
}
|
126
126
|
|
127
127
|
attr_accessor :id # 0-1 string
|
128
128
|
attr_accessor :extension # 0-* [ Extension ]
|
129
129
|
attr_accessor :modifierExtension # 0-* [ Extension ]
|
130
|
-
attr_accessor :other # 1-1 Reference()
|
130
|
+
attr_accessor :other # 1-1 Reference(Patient|RelatedPerson)
|
131
131
|
attr_accessor :type # 1-1 code
|
132
132
|
end
|
133
133
|
|
@@ -155,8 +155,8 @@ module FHIR
|
|
155
155
|
attr_accessor :contact # 0-* [ Patient::Contact ]
|
156
156
|
attr_accessor :animal # 0-1 Patient::Animal
|
157
157
|
attr_accessor :communication # 0-* [ Patient::Communication ]
|
158
|
-
attr_accessor :generalPractitioner # 0-* [ Reference() ]
|
159
|
-
attr_accessor :managingOrganization # 0-1 Reference()
|
158
|
+
attr_accessor :generalPractitioner # 0-* [ Reference(Organization|Practitioner) ]
|
159
|
+
attr_accessor :managingOrganization # 0-1 Reference(Organization)
|
160
160
|
attr_accessor :link # 0-* [ Patient::Link ]
|
161
161
|
|
162
162
|
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 = ['created', 'identifier', 'organization', 'payment-status', 'provider', 'request', 'response', 'statusdate']
|
8
8
|
METADATA = {
|
9
9
|
'id' => {'type'=>'id', 'path'=>'PaymentNotice.id', 'min'=>0, 'max'=>1},
|
10
10
|
'meta' => {'type'=>'Meta', 'path'=>'PaymentNotice.meta', 'min'=>0, 'max'=>1},
|
@@ -16,13 +16,13 @@ module FHIR
|
|
16
16
|
'modifierExtension' => {'type'=>'Extension', 'path'=>'PaymentNotice.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
17
17
|
'identifier' => {'type'=>'Identifier', 'path'=>'PaymentNotice.identifier', 'min'=>0, 'max'=>Float::INFINITY},
|
18
18
|
'status' => {'valid_codes'=>{'http://hl7.org/fhir/fm-status'=>['active', 'cancelled', 'draft', 'entered-in-error', 'active', 'cancelled', 'draft', 'entered-in-error']}, 'type'=>'code', 'path'=>'PaymentNotice.status', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/fm-status'}},
|
19
|
-
'request' => {'type'=>'Reference', 'path'=>'PaymentNotice.request', 'min'=>0, 'max'=>1},
|
20
|
-
'response' => {'type'=>'Reference', 'path'=>'PaymentNotice.response', 'min'=>0, 'max'=>1},
|
19
|
+
'request' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'PaymentNotice.request', 'min'=>0, 'max'=>1},
|
20
|
+
'response' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'PaymentNotice.response', 'min'=>0, 'max'=>1},
|
21
21
|
'statusDate' => {'type'=>'date', 'path'=>'PaymentNotice.statusDate', 'min'=>0, 'max'=>1},
|
22
22
|
'created' => {'type'=>'dateTime', 'path'=>'PaymentNotice.created', 'min'=>0, 'max'=>1},
|
23
|
-
'target' => {'type'=>'Reference', 'path'=>'PaymentNotice.target', 'min'=>0, 'max'=>1},
|
24
|
-
'provider' => {'type'=>'Reference', 'path'=>'PaymentNotice.provider', 'min'=>0, 'max'=>1},
|
25
|
-
'organization' => {'type'=>'Reference', 'path'=>'PaymentNotice.organization', 'min'=>0, 'max'=>1},
|
23
|
+
'target' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'PaymentNotice.target', 'min'=>0, 'max'=>1},
|
24
|
+
'provider' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner'], 'type'=>'Reference', 'path'=>'PaymentNotice.provider', 'min'=>0, 'max'=>1},
|
25
|
+
'organization' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'PaymentNotice.organization', 'min'=>0, 'max'=>1},
|
26
26
|
'paymentStatus' => {'valid_codes'=>{'http://hl7.org/fhir/paymentstatus'=>['paid', 'cleared', 'paid', 'cleared']}, 'type'=>'CodeableConcept', 'path'=>'PaymentNotice.paymentStatus', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/payment-status'}}
|
27
27
|
}
|
28
28
|
|
@@ -36,13 +36,13 @@ module FHIR
|
|
36
36
|
attr_accessor :modifierExtension # 0-* [ Extension ]
|
37
37
|
attr_accessor :identifier # 0-* [ Identifier ]
|
38
38
|
attr_accessor :status # 0-1 code
|
39
|
-
attr_accessor :request # 0-1 Reference()
|
40
|
-
attr_accessor :response # 0-1 Reference()
|
39
|
+
attr_accessor :request # 0-1 Reference(Resource)
|
40
|
+
attr_accessor :response # 0-1 Reference(Resource)
|
41
41
|
attr_accessor :statusDate # 0-1 date
|
42
42
|
attr_accessor :created # 0-1 dateTime
|
43
|
-
attr_accessor :target # 0-1 Reference()
|
44
|
-
attr_accessor :provider # 0-1 Reference()
|
45
|
-
attr_accessor :organization # 0-1 Reference()
|
43
|
+
attr_accessor :target # 0-1 Reference(Organization)
|
44
|
+
attr_accessor :provider # 0-1 Reference(Practitioner)
|
45
|
+
attr_accessor :organization # 0-1 Reference(Organization)
|
46
46
|
attr_accessor :paymentStatus # 0-1 CodeableConcept
|
47
47
|
|
48
48
|
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 = ['created', 'disposition', 'identifier', 'organization', 'outcome', 'request', 'request-organization', 'request-provider']
|
8
8
|
METADATA = {
|
9
9
|
'id' => {'type'=>'id', 'path'=>'PaymentReconciliation.id', 'min'=>0, 'max'=>1},
|
10
10
|
'meta' => {'type'=>'Meta', 'path'=>'PaymentReconciliation.meta', 'min'=>0, 'max'=>1},
|
@@ -18,12 +18,12 @@ module FHIR
|
|
18
18
|
'status' => {'valid_codes'=>{'http://hl7.org/fhir/fm-status'=>['active', 'cancelled', 'draft', 'entered-in-error', 'active', 'cancelled', 'draft', 'entered-in-error']}, 'type'=>'code', 'path'=>'PaymentReconciliation.status', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/fm-status'}},
|
19
19
|
'period' => {'type'=>'Period', 'path'=>'PaymentReconciliation.period', 'min'=>0, 'max'=>1},
|
20
20
|
'created' => {'type'=>'dateTime', 'path'=>'PaymentReconciliation.created', 'min'=>0, 'max'=>1},
|
21
|
-
'organization' => {'type'=>'Reference', 'path'=>'PaymentReconciliation.organization', 'min'=>0, 'max'=>1},
|
22
|
-
'request' => {'type'=>'Reference', 'path'=>'PaymentReconciliation.request', 'min'=>0, 'max'=>1},
|
21
|
+
'organization' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'PaymentReconciliation.organization', 'min'=>0, 'max'=>1},
|
22
|
+
'request' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/ProcessRequest'], 'type'=>'Reference', 'path'=>'PaymentReconciliation.request', 'min'=>0, 'max'=>1},
|
23
23
|
'outcome' => {'valid_codes'=>{'http://hl7.org/fhir/remittance-outcome'=>['complete', 'error', 'partial', 'complete', 'error', 'partial']}, 'type'=>'CodeableConcept', 'path'=>'PaymentReconciliation.outcome', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/remittance-outcome'}},
|
24
24
|
'disposition' => {'type'=>'string', 'path'=>'PaymentReconciliation.disposition', 'min'=>0, 'max'=>1},
|
25
|
-
'requestProvider' => {'type'=>'Reference', 'path'=>'PaymentReconciliation.requestProvider', 'min'=>0, 'max'=>1},
|
26
|
-
'requestOrganization' => {'type'=>'Reference', 'path'=>'PaymentReconciliation.requestOrganization', 'min'=>0, 'max'=>1},
|
25
|
+
'requestProvider' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Practitioner'], 'type'=>'Reference', 'path'=>'PaymentReconciliation.requestProvider', 'min'=>0, 'max'=>1},
|
26
|
+
'requestOrganization' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'PaymentReconciliation.requestOrganization', 'min'=>0, 'max'=>1},
|
27
27
|
'detail' => {'type'=>'PaymentReconciliation::Detail', 'path'=>'PaymentReconciliation.detail', 'min'=>0, 'max'=>Float::INFINITY},
|
28
28
|
'form' => {'valid_codes'=>{'http://hl7.org/fhir/forms-codes'=>['1', '2', '1', '2']}, 'type'=>'CodeableConcept', 'path'=>'PaymentReconciliation.form', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/forms'}},
|
29
29
|
'total' => {'type'=>'Money', 'path'=>'PaymentReconciliation.total', 'min'=>0, 'max'=>1},
|
@@ -40,10 +40,10 @@ module FHIR
|
|
40
40
|
'extension' => {'type'=>'Extension', 'path'=>'Detail.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
41
41
|
'modifierExtension' => {'type'=>'Extension', 'path'=>'Detail.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
42
42
|
'type' => {'valid_codes'=>{'http://hl7.org/fhir/payment-type'=>['payment', 'adjustment', 'advance', 'payment', 'adjustment', 'advance']}, 'type'=>'CodeableConcept', 'path'=>'Detail.type', 'min'=>1, 'max'=>1, 'binding'=>{'strength'=>'example', 'uri'=>'http://hl7.org/fhir/ValueSet/payment-type'}},
|
43
|
-
'request' => {'type'=>'Reference', 'path'=>'Detail.request', 'min'=>0, 'max'=>1},
|
44
|
-
'response' => {'type'=>'Reference', 'path'=>'Detail.response', 'min'=>0, 'max'=>1},
|
45
|
-
'submitter' => {'type'=>'Reference', 'path'=>'Detail.submitter', 'min'=>0, 'max'=>1},
|
46
|
-
'payee' => {'type'=>'Reference', 'path'=>'Detail.payee', 'min'=>0, 'max'=>1},
|
43
|
+
'request' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Detail.request', 'min'=>0, 'max'=>1},
|
44
|
+
'response' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Resource'], 'type'=>'Reference', 'path'=>'Detail.response', 'min'=>0, 'max'=>1},
|
45
|
+
'submitter' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Detail.submitter', 'min'=>0, 'max'=>1},
|
46
|
+
'payee' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Detail.payee', 'min'=>0, 'max'=>1},
|
47
47
|
'date' => {'type'=>'date', 'path'=>'Detail.date', 'min'=>0, 'max'=>1},
|
48
48
|
'amount' => {'type'=>'Money', 'path'=>'Detail.amount', 'min'=>0, 'max'=>1}
|
49
49
|
}
|
@@ -52,10 +52,10 @@ module FHIR
|
|
52
52
|
attr_accessor :extension # 0-* [ Extension ]
|
53
53
|
attr_accessor :modifierExtension # 0-* [ Extension ]
|
54
54
|
attr_accessor :type # 1-1 CodeableConcept
|
55
|
-
attr_accessor :request # 0-1 Reference()
|
56
|
-
attr_accessor :response # 0-1 Reference()
|
57
|
-
attr_accessor :submitter # 0-1 Reference()
|
58
|
-
attr_accessor :payee # 0-1 Reference()
|
55
|
+
attr_accessor :request # 0-1 Reference(Resource)
|
56
|
+
attr_accessor :response # 0-1 Reference(Resource)
|
57
|
+
attr_accessor :submitter # 0-1 Reference(Organization)
|
58
|
+
attr_accessor :payee # 0-1 Reference(Organization)
|
59
59
|
attr_accessor :date # 0-1 date
|
60
60
|
attr_accessor :amount # 0-1 Money
|
61
61
|
end
|
@@ -92,12 +92,12 @@ module FHIR
|
|
92
92
|
attr_accessor :status # 0-1 code
|
93
93
|
attr_accessor :period # 0-1 Period
|
94
94
|
attr_accessor :created # 0-1 dateTime
|
95
|
-
attr_accessor :organization # 0-1 Reference()
|
96
|
-
attr_accessor :request # 0-1 Reference()
|
95
|
+
attr_accessor :organization # 0-1 Reference(Organization)
|
96
|
+
attr_accessor :request # 0-1 Reference(ProcessRequest)
|
97
97
|
attr_accessor :outcome # 0-1 CodeableConcept
|
98
98
|
attr_accessor :disposition # 0-1 string
|
99
|
-
attr_accessor :requestProvider # 0-1 Reference()
|
100
|
-
attr_accessor :requestOrganization # 0-1 Reference()
|
99
|
+
attr_accessor :requestProvider # 0-1 Reference(Practitioner)
|
100
|
+
attr_accessor :requestOrganization # 0-1 Reference(Organization)
|
101
101
|
attr_accessor :detail # 0-* [ PaymentReconciliation::Detail ]
|
102
102
|
attr_accessor :form # 0-1 CodeableConcept
|
103
103
|
attr_accessor :total # 0-1 Money
|
@@ -4,7 +4,7 @@ module FHIR
|
|
4
4
|
include FHIR::Json
|
5
5
|
include FHIR::Xml
|
6
6
|
|
7
|
-
SEARCH_PARAMS = []
|
7
|
+
SEARCH_PARAMS = ['address', 'address-city', 'address-country', 'address-postalcode', 'address-state', 'address-use', 'birthdate', 'email', 'gender', 'phone', 'phonetic', 'telecom', 'identifier', 'link', 'name', 'organization', 'patient', 'practitioner', 'relatedperson']
|
8
8
|
METADATA = {
|
9
9
|
'id' => {'type'=>'id', 'path'=>'Person.id', 'min'=>0, 'max'=>1},
|
10
10
|
'meta' => {'type'=>'Meta', 'path'=>'Person.meta', 'min'=>0, 'max'=>1},
|
@@ -21,7 +21,7 @@ module FHIR
|
|
21
21
|
'birthDate' => {'type'=>'date', 'path'=>'Person.birthDate', 'min'=>0, 'max'=>1},
|
22
22
|
'address' => {'type'=>'Address', 'path'=>'Person.address', 'min'=>0, 'max'=>Float::INFINITY},
|
23
23
|
'photo' => {'type'=>'Attachment', 'path'=>'Person.photo', 'min'=>0, 'max'=>1},
|
24
|
-
'managingOrganization' => {'type'=>'Reference', 'path'=>'Person.managingOrganization', 'min'=>0, 'max'=>1},
|
24
|
+
'managingOrganization' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Organization'], 'type'=>'Reference', 'path'=>'Person.managingOrganization', 'min'=>0, 'max'=>1},
|
25
25
|
'active' => {'type'=>'boolean', 'path'=>'Person.active', 'min'=>0, 'max'=>1},
|
26
26
|
'link' => {'type'=>'Person::Link', 'path'=>'Person.link', 'min'=>0, 'max'=>Float::INFINITY}
|
27
27
|
}
|
@@ -35,14 +35,14 @@ module FHIR
|
|
35
35
|
'id' => {'type'=>'string', 'path'=>'Link.id', 'min'=>0, 'max'=>1},
|
36
36
|
'extension' => {'type'=>'Extension', 'path'=>'Link.extension', 'min'=>0, 'max'=>Float::INFINITY},
|
37
37
|
'modifierExtension' => {'type'=>'Extension', 'path'=>'Link.modifierExtension', 'min'=>0, 'max'=>Float::INFINITY},
|
38
|
-
'target' => {'type'=>'Reference', 'path'=>'Link.target', 'min'=>1, 'max'=>1},
|
38
|
+
'target' => {'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/Person'], 'type'=>'Reference', 'path'=>'Link.target', 'min'=>1, 'max'=>1},
|
39
39
|
'assurance' => {'valid_codes'=>{'http://hl7.org/fhir/identity-assuranceLevel'=>['level1', 'level2', 'level3', 'level4', 'level1', 'level2', 'level3', 'level4']}, 'type'=>'code', 'path'=>'Link.assurance', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/identity-assuranceLevel'}}
|
40
40
|
}
|
41
41
|
|
42
42
|
attr_accessor :id # 0-1 string
|
43
43
|
attr_accessor :extension # 0-* [ Extension ]
|
44
44
|
attr_accessor :modifierExtension # 0-* [ Extension ]
|
45
|
-
attr_accessor :target # 1-1 Reference()
|
45
|
+
attr_accessor :target # 1-1 Reference(Patient|Practitioner|RelatedPerson|Person)
|
46
46
|
attr_accessor :assurance # 0-1 code
|
47
47
|
end
|
48
48
|
|
@@ -61,7 +61,7 @@ module FHIR
|
|
61
61
|
attr_accessor :birthDate # 0-1 date
|
62
62
|
attr_accessor :address # 0-* [ Address ]
|
63
63
|
attr_accessor :photo # 0-1 Attachment
|
64
|
-
attr_accessor :managingOrganization # 0-1 Reference()
|
64
|
+
attr_accessor :managingOrganization # 0-1 Reference(Organization)
|
65
65
|
attr_accessor :active # 0-1 boolean
|
66
66
|
attr_accessor :link # 0-* [ Person::Link ]
|
67
67
|
|
@@ -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', 'effective', 'identifier', 'jurisdiction', 'name', 'publisher', 'status', 'title', 'topic', 'url', 'version']
|
8
8
|
METADATA = {
|
9
9
|
'id' => {'type'=>'id', 'path'=>'PlanDefinition.id', 'min'=>0, 'max'=>1},
|
10
10
|
'meta' => {'type'=>'Meta', 'path'=>'PlanDefinition.meta', 'min'=>0, 'max'=>1},
|
@@ -37,7 +37,7 @@ module FHIR
|
|
37
37
|
'contact' => {'type'=>'ContactDetail', 'path'=>'PlanDefinition.contact', 'min'=>0, 'max'=>Float::INFINITY},
|
38
38
|
'copyright' => {'type'=>'markdown', 'path'=>'PlanDefinition.copyright', 'min'=>0, 'max'=>1},
|
39
39
|
'relatedArtifact' => {'type'=>'RelatedArtifact', 'path'=>'PlanDefinition.relatedArtifact', 'min'=>0, 'max'=>Float::INFINITY},
|
40
|
-
'library' => {'type'=>'Reference', 'path'=>'PlanDefinition.library', 'min'=>0, 'max'=>Float::INFINITY},
|
40
|
+
'library' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/Library'], 'type'=>'Reference', 'path'=>'PlanDefinition.library', 'min'=>0, 'max'=>Float::INFINITY},
|
41
41
|
'actionDefinition' => {'type'=>'PlanDefinition::ActionDefinition', 'path'=>'PlanDefinition.actionDefinition', 'min'=>0, 'max'=>Float::INFINITY}
|
42
42
|
}
|
43
43
|
|
@@ -77,8 +77,8 @@ module FHIR
|
|
77
77
|
'requiredBehavior' => {'valid_codes'=>{'http://hl7.org/fhir/action-required-behavior'=>['must', 'could', 'must-unless-documented', 'must', 'could', 'must-unless-documented']}, 'type'=>'code', 'path'=>'ActionDefinition.requiredBehavior', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/action-required-behavior'}},
|
78
78
|
'precheckBehavior' => {'valid_codes'=>{'http://hl7.org/fhir/action-precheck-behavior'=>['yes', 'no', 'yes', 'no']}, 'type'=>'code', 'path'=>'ActionDefinition.precheckBehavior', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/action-precheck-behavior'}},
|
79
79
|
'cardinalityBehavior' => {'valid_codes'=>{'http://hl7.org/fhir/action-cardinality-behavior'=>['single', 'multiple', 'single', 'multiple']}, 'type'=>'code', 'path'=>'ActionDefinition.cardinalityBehavior', 'min'=>0, 'max'=>1, 'binding'=>{'strength'=>'required', 'uri'=>'http://hl7.org/fhir/ValueSet/action-cardinality-behavior'}},
|
80
|
-
'activityDefinition' => {'type'=>'Reference', 'path'=>'ActionDefinition.activityDefinition', 'min'=>0, 'max'=>1},
|
81
|
-
'transform' => {'type'=>'Reference', 'path'=>'ActionDefinition.transform', 'min'=>0, 'max'=>1},
|
80
|
+
'activityDefinition' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/ActivityDefinition'], 'type'=>'Reference', 'path'=>'ActionDefinition.activityDefinition', 'min'=>0, 'max'=>1},
|
81
|
+
'transform' => {'type_profiles'=>['http://hl7.org/fhir/StructureDefinition/StructureMap'], 'type'=>'Reference', 'path'=>'ActionDefinition.transform', 'min'=>0, 'max'=>1},
|
82
82
|
'dynamicValue' => {'type'=>'PlanDefinition::ActionDefinition::DynamicValue', 'path'=>'ActionDefinition.dynamicValue', 'min'=>0, 'max'=>Float::INFINITY},
|
83
83
|
'actionDefinition' => {'type'=>'PlanDefinition::ActionDefinition', 'path'=>'ActionDefinition.actionDefinition', 'min'=>0, 'max'=>Float::INFINITY}
|
84
84
|
}
|
@@ -185,8 +185,8 @@ module FHIR
|
|
185
185
|
attr_accessor :requiredBehavior # 0-1 code
|
186
186
|
attr_accessor :precheckBehavior # 0-1 code
|
187
187
|
attr_accessor :cardinalityBehavior # 0-1 code
|
188
|
-
attr_accessor :activityDefinition # 0-1 Reference()
|
189
|
-
attr_accessor :transform # 0-1 Reference()
|
188
|
+
attr_accessor :activityDefinition # 0-1 Reference(ActivityDefinition)
|
189
|
+
attr_accessor :transform # 0-1 Reference(StructureMap)
|
190
190
|
attr_accessor :dynamicValue # 0-* [ PlanDefinition::ActionDefinition::DynamicValue ]
|
191
191
|
attr_accessor :actionDefinition # 0-* [ PlanDefinition::ActionDefinition ]
|
192
192
|
end
|
@@ -222,7 +222,7 @@ module FHIR
|
|
222
222
|
attr_accessor :contact # 0-* [ ContactDetail ]
|
223
223
|
attr_accessor :copyright # 0-1 markdown
|
224
224
|
attr_accessor :relatedArtifact # 0-* [ RelatedArtifact ]
|
225
|
-
attr_accessor :library # 0-* [ Reference() ]
|
225
|
+
attr_accessor :library # 0-* [ Reference(Library) ]
|
226
226
|
attr_accessor :actionDefinition # 0-* [ PlanDefinition::ActionDefinition ]
|
227
227
|
|
228
228
|
def resourceType
|