fhir_dstu2_models 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.codeclimate.yml +26 -0
- data/.gitignore +2 -0
- data/.rspec +2 -0
- data/.rubocop.yml +14 -0
- data/.rubocop_todo.yml +79 -0
- data/.simplecov +17 -0
- data/.travis.yml +21 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +131 -0
- data/Guardfile +50 -0
- data/README.md +57 -0
- data/Rakefile +26 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/fhir_dstu2_models.gemspec +39 -0
- data/lib/fhir_dstu2_models.rb +35 -0
- data/lib/fhir_dstu2_models/bootstrap/definitions.rb +350 -0
- data/lib/fhir_dstu2_models/bootstrap/field.rb +45 -0
- data/lib/fhir_dstu2_models/bootstrap/generator.rb +255 -0
- data/lib/fhir_dstu2_models/bootstrap/hashable.rb +137 -0
- data/lib/fhir_dstu2_models/bootstrap/json.rb +28 -0
- data/lib/fhir_dstu2_models/bootstrap/model.rb +308 -0
- data/lib/fhir_dstu2_models/bootstrap/preprocess.rb +124 -0
- data/lib/fhir_dstu2_models/bootstrap/template.rb +138 -0
- data/lib/fhir_dstu2_models/bootstrap/xml.rb +144 -0
- data/lib/fhir_dstu2_models/definitions/schema/account.xsd +72 -0
- data/lib/fhir_dstu2_models/definitions/schema/allergyintolerance.xsd +166 -0
- data/lib/fhir_dstu2_models/definitions/schema/appointment.xsd +119 -0
- data/lib/fhir_dstu2_models/definitions/schema/appointmentresponse.xsd +73 -0
- data/lib/fhir_dstu2_models/definitions/schema/auditevent.xsd +182 -0
- data/lib/fhir_dstu2_models/definitions/schema/basic.xsd +53 -0
- data/lib/fhir_dstu2_models/definitions/schema/binary.xsd +50 -0
- data/lib/fhir_dstu2_models/definitions/schema/bodysite.xsd +54 -0
- data/lib/fhir_dstu2_models/definitions/schema/bundle.xsd +162 -0
- data/lib/fhir_dstu2_models/definitions/schema/careplan.xsd +173 -0
- data/lib/fhir_dstu2_models/definitions/schema/claim.xsd +228 -0
- data/lib/fhir_dstu2_models/definitions/schema/claimresponse.xsd +226 -0
- data/lib/fhir_dstu2_models/definitions/schema/clinicalimpression.xsd +112 -0
- data/lib/fhir_dstu2_models/definitions/schema/communication.xsd +90 -0
- data/lib/fhir_dstu2_models/definitions/schema/communicationrequest.xsd +99 -0
- data/lib/fhir_dstu2_models/definitions/schema/composition.xsd +130 -0
- data/lib/fhir_dstu2_models/definitions/schema/conceptmap.xsd +116 -0
- data/lib/fhir_dstu2_models/definitions/schema/condition.xsd +114 -0
- data/lib/fhir_dstu2_models/definitions/schema/conformance.xsd +432 -0
- data/lib/fhir_dstu2_models/definitions/schema/contract.xsd +194 -0
- data/lib/fhir_dstu2_models/definitions/schema/coverage.xsd +62 -0
- data/lib/fhir_dstu2_models/definitions/schema/dataelement.xsd +101 -0
- data/lib/fhir_dstu2_models/definitions/schema/detectedissue.xsd +83 -0
- data/lib/fhir_dstu2_models/definitions/schema/device.xsd +78 -0
- data/lib/fhir_dstu2_models/definitions/schema/devicecomponent.xsd +91 -0
- data/lib/fhir_dstu2_models/definitions/schema/devicemetric.xsd +147 -0
- data/lib/fhir_dstu2_models/definitions/schema/deviceuserequest.xsd +104 -0
- data/lib/fhir_dstu2_models/definitions/schema/deviceusestatement.xsd +64 -0
- data/lib/fhir_dstu2_models/definitions/schema/diagnosticorder.xsd +124 -0
- data/lib/fhir_dstu2_models/definitions/schema/diagnosticreport.xsd +96 -0
- data/lib/fhir_dstu2_models/definitions/schema/documentmanifest.xsd +82 -0
- data/lib/fhir_dstu2_models/definitions/schema/documentreference.xsd +125 -0
- data/lib/fhir_dstu2_models/definitions/schema/eligibilityrequest.xsd +55 -0
- data/lib/fhir_dstu2_models/definitions/schema/eligibilityresponse.xsd +58 -0
- data/lib/fhir_dstu2_models/definitions/schema/encounter.xsd +170 -0
- data/lib/fhir_dstu2_models/definitions/schema/enrollmentrequest.xsd +58 -0
- data/lib/fhir_dstu2_models/definitions/schema/enrollmentresponse.xsd +58 -0
- data/lib/fhir_dstu2_models/definitions/schema/episodeofcare.xsd +97 -0
- data/lib/fhir_dstu2_models/definitions/schema/explanationofbenefit.xsd +58 -0
- data/lib/fhir_dstu2_models/definitions/schema/familymemberhistory.xsd +106 -0
- data/lib/fhir_dstu2_models/definitions/schema/fhir-all.xsd +126 -0
- data/lib/fhir_dstu2_models/definitions/schema/fhir-base.xsd +1446 -0
- data/lib/fhir_dstu2_models/definitions/schema/fhir-single.xsd +8239 -0
- data/lib/fhir_dstu2_models/definitions/schema/fhir-xhtml.xsd +1808 -0
- data/lib/fhir_dstu2_models/definitions/schema/flag.xsd +70 -0
- data/lib/fhir_dstu2_models/definitions/schema/goal.xsd +100 -0
- data/lib/fhir_dstu2_models/definitions/schema/group.xsd +101 -0
- data/lib/fhir_dstu2_models/definitions/schema/healthcareservice.xsd +120 -0
- data/lib/fhir_dstu2_models/definitions/schema/imagingobjectselection.xsd +100 -0
- data/lib/fhir_dstu2_models/definitions/schema/imagingstudy.xsd +112 -0
- data/lib/fhir_dstu2_models/definitions/schema/immunization.xsd +106 -0
- data/lib/fhir_dstu2_models/definitions/schema/immunizationrecommendation.xsd +89 -0
- data/lib/fhir_dstu2_models/definitions/schema/implementationguide.xsd +187 -0
- data/lib/fhir_dstu2_models/definitions/schema/list.xsd +101 -0
- data/lib/fhir_dstu2_models/definitions/schema/location.xsd +98 -0
- data/lib/fhir_dstu2_models/definitions/schema/media.xsd +74 -0
- data/lib/fhir_dstu2_models/definitions/schema/medication.xsd +104 -0
- data/lib/fhir_dstu2_models/definitions/schema/medicationadministration.xsd +104 -0
- data/lib/fhir_dstu2_models/definitions/schema/medicationdispense.xsd +124 -0
- data/lib/fhir_dstu2_models/definitions/schema/medicationorder.xsd +142 -0
- data/lib/fhir_dstu2_models/definitions/schema/medicationstatement.xsd +114 -0
- data/lib/fhir_dstu2_models/definitions/schema/messageheader.xsd +108 -0
- data/lib/fhir_dstu2_models/definitions/schema/namingsystem.xsd +112 -0
- data/lib/fhir_dstu2_models/definitions/schema/nutritionorder.xsd +157 -0
- data/lib/fhir_dstu2_models/definitions/schema/observation.xsd +163 -0
- data/lib/fhir_dstu2_models/definitions/schema/operationdefinition.xsd +133 -0
- data/lib/fhir_dstu2_models/definitions/schema/operationoutcome.xsd +117 -0
- data/lib/fhir_dstu2_models/definitions/schema/order.xsd +69 -0
- data/lib/fhir_dstu2_models/definitions/schema/orderresponse.xsd +75 -0
- data/lib/fhir_dstu2_models/definitions/schema/organization.xsd +68 -0
- data/lib/fhir_dstu2_models/definitions/schema/parameters.xsd +97 -0
- data/lib/fhir_dstu2_models/definitions/schema/patient.xsd +131 -0
- data/lib/fhir_dstu2_models/definitions/schema/paymentnotice.xsd +58 -0
- data/lib/fhir_dstu2_models/definitions/schema/paymentreconciliation.xsd +88 -0
- data/lib/fhir_dstu2_models/definitions/schema/person.xsd +83 -0
- data/lib/fhir_dstu2_models/definitions/schema/practitioner.xsd +85 -0
- data/lib/fhir_dstu2_models/definitions/schema/procedure.xsd +110 -0
- data/lib/fhir_dstu2_models/definitions/schema/procedurerequest.xsd +108 -0
- data/lib/fhir_dstu2_models/definitions/schema/processrequest.xsd +88 -0
- data/lib/fhir_dstu2_models/definitions/schema/processresponse.xsd +71 -0
- data/lib/fhir_dstu2_models/definitions/schema/provenance.xsd +108 -0
- data/lib/fhir_dstu2_models/definitions/schema/questionnaire.xsd +129 -0
- data/lib/fhir_dstu2_models/definitions/schema/questionnaireresponse.xsd +120 -0
- data/lib/fhir_dstu2_models/definitions/schema/referralrequest.xsd +82 -0
- data/lib/fhir_dstu2_models/definitions/schema/relatedperson.xsd +58 -0
- data/lib/fhir_dstu2_models/definitions/schema/riskassessment.xsd +78 -0
- data/lib/fhir_dstu2_models/definitions/schema/schedule.xsd +53 -0
- data/lib/fhir_dstu2_models/definitions/schema/searchparameter.xsd +89 -0
- data/lib/fhir_dstu2_models/definitions/schema/slot.xsd +71 -0
- data/lib/fhir_dstu2_models/definitions/schema/specimen.xsd +118 -0
- data/lib/fhir_dstu2_models/definitions/schema/structuredefinition.xsd +142 -0
- data/lib/fhir_dstu2_models/definitions/schema/subscription.xsd +99 -0
- data/lib/fhir_dstu2_models/definitions/schema/substance.xsd +75 -0
- data/lib/fhir_dstu2_models/definitions/schema/supplydelivery.xsd +73 -0
- data/lib/fhir_dstu2_models/definitions/schema/supplyrequest.xsd +86 -0
- data/lib/fhir_dstu2_models/definitions/schema/testscript.xsd +324 -0
- data/lib/fhir_dstu2_models/definitions/schema/valueset.xsd +221 -0
- data/lib/fhir_dstu2_models/definitions/schema/visionprescription.xsd +109 -0
- data/lib/fhir_dstu2_models/definitions/schema/xml.xsd +32 -0
- data/lib/fhir_dstu2_models/definitions/schema/xmldsig-core-schema.xsd +254 -0
- data/lib/fhir_dstu2_models/definitions/structures/extension-definitions.json +36931 -0
- data/lib/fhir_dstu2_models/definitions/structures/profiles-others.json +119617 -0
- data/lib/fhir_dstu2_models/definitions/structures/profiles-resources.json +50038 -0
- data/lib/fhir_dstu2_models/definitions/structures/profiles-types.json +6819 -0
- data/lib/fhir_dstu2_models/definitions/structures/search-parameters.json +12048 -0
- data/lib/fhir_dstu2_models/definitions/valuesets/v2-tables.json +75865 -0
- data/lib/fhir_dstu2_models/definitions/valuesets/v3-codesystems.json +42052 -0
- data/lib/fhir_dstu2_models/definitions/valuesets/valuesets.json +91793 -0
- data/lib/fhir_dstu2_models/deprecate.rb +24 -0
- data/lib/fhir_dstu2_models/examples/json/account-example.json +8 -0
- data/lib/fhir_dstu2_models/examples/json/account-questionnaire.json +686 -0
- data/lib/fhir_dstu2_models/examples/json/address-type-map-v3.json +58 -0
- data/lib/fhir_dstu2_models/examples/json/address-use-map-v2.json +81 -0
- data/lib/fhir_dstu2_models/examples/json/address-use-map-v3.json +93 -0
- data/lib/fhir_dstu2_models/examples/json/administrative-gender-map-v2.json +91 -0
- data/lib/fhir_dstu2_models/examples/json/administrative-gender-map-v3.json +80 -0
- data/lib/fhir_dstu2_models/examples/json/allergyintolerance-example.json +126 -0
- data/lib/fhir_dstu2_models/examples/json/allergyintolerance-fishallergy.json +54 -0
- data/lib/fhir_dstu2_models/examples/json/allergyintolerance-medication.json +54 -0
- data/lib/fhir_dstu2_models/examples/json/allergyintolerance-questionnaire.json +939 -0
- data/lib/fhir_dstu2_models/examples/json/appointment-example-request.json +68 -0
- data/lib/fhir_dstu2_models/examples/json/appointment-example.json +57 -0
- data/lib/fhir_dstu2_models/examples/json/appointment-example2doctors.json +55 -0
- data/lib/fhir_dstu2_models/examples/json/appointment-questionnaire.json +816 -0
- data/lib/fhir_dstu2_models/examples/json/appointmentresponse-example-req.json +35 -0
- data/lib/fhir_dstu2_models/examples/json/appointmentresponse-example.json +17 -0
- data/lib/fhir_dstu2_models/examples/json/appointmentresponse-questionnaire.json +570 -0
- data/lib/fhir_dstu2_models/examples/json/audit-event-example-login.json +52 -0
- data/lib/fhir_dstu2_models/examples/json/audit-event-example-logout.json +52 -0
- data/lib/fhir_dstu2_models/examples/json/audit-event-example-media.json +137 -0
- data/lib/fhir_dstu2_models/examples/json/audit-event-example-pixQuery.json +120 -0
- data/lib/fhir_dstu2_models/examples/json/audit-event-example-search.json +68 -0
- data/lib/fhir_dstu2_models/examples/json/audit-event-example-vread.json +65 -0
- data/lib/fhir_dstu2_models/examples/json/auditevent-example-disclosure.json +183 -0
- data/lib/fhir_dstu2_models/examples/json/auditevent-example.json +86 -0
- data/lib/fhir_dstu2_models/examples/json/auditevent-questionnaire.json +1537 -0
- data/lib/fhir_dstu2_models/examples/json/basic-example-narrative.json +11 -0
- data/lib/fhir_dstu2_models/examples/json/basic-example.json +68 -0
- data/lib/fhir_dstu2_models/examples/json/basic-example2.json +61 -0
- data/lib/fhir_dstu2_models/examples/json/basic-questionnaire.json +411 -0
- data/lib/fhir_dstu2_models/examples/json/binary-f006.json +6 -0
- data/lib/fhir_dstu2_models/examples/json/binary-questionnaire.json +127 -0
- data/lib/fhir_dstu2_models/examples/json/bodysite-example.json +71 -0
- data/lib/fhir_dstu2_models/examples/json/bodysite-questionnaire.json +331 -0
- data/lib/fhir_dstu2_models/examples/json/bundle-example.json +98 -0
- data/lib/fhir_dstu2_models/examples/json/bundle-questionnaire.json +840 -0
- data/lib/fhir_dstu2_models/examples/json/bundle-response.json +181 -0
- data/lib/fhir_dstu2_models/examples/json/bundle-transaction.json +348 -0
- data/lib/fhir_dstu2_models/examples/json/careplan-example-GPVisit.json +181 -0
- data/lib/fhir_dstu2_models/examples/json/careplan-example-f001-heart.json +112 -0
- data/lib/fhir_dstu2_models/examples/json/careplan-example-f002-lung.json +112 -0
- data/lib/fhir_dstu2_models/examples/json/careplan-example-f003-pharynx.json +112 -0
- data/lib/fhir_dstu2_models/examples/json/careplan-example-f201-renal.json +145 -0
- data/lib/fhir_dstu2_models/examples/json/careplan-example-f202-malignancy.json +155 -0
- data/lib/fhir_dstu2_models/examples/json/careplan-example-f203-sepsis.json +98 -0
- data/lib/fhir_dstu2_models/examples/json/careplan-example-integrated.json +575 -0
- data/lib/fhir_dstu2_models/examples/json/careplan-example-pregnancy.json +299 -0
- data/lib/fhir_dstu2_models/examples/json/careplan-example.json +150 -0
- data/lib/fhir_dstu2_models/examples/json/careplan-questionnaire.json +2537 -0
- data/lib/fhir_dstu2_models/examples/json/cholesterol-questionnaire.json +1993 -0
- data/lib/fhir_dstu2_models/examples/json/claim-example-institutional.json +80 -0
- data/lib/fhir_dstu2_models/examples/json/claim-example-oral-average.json +184 -0
- data/lib/fhir_dstu2_models/examples/json/claim-example-oral-contained.json +163 -0
- data/lib/fhir_dstu2_models/examples/json/claim-example-oral-orthoplan.json +318 -0
- data/lib/fhir_dstu2_models/examples/json/claim-example-pharmacy.json +83 -0
- data/lib/fhir_dstu2_models/examples/json/claim-example-professional.json +80 -0
- data/lib/fhir_dstu2_models/examples/json/claim-example-vision-glasses.json +149 -0
- data/lib/fhir_dstu2_models/examples/json/claim-example-vision.json +80 -0
- data/lib/fhir_dstu2_models/examples/json/claim-example.json +79 -0
- data/lib/fhir_dstu2_models/examples/json/claimresponse-example.json +101 -0
- data/lib/fhir_dstu2_models/examples/json/clinicaldocument-questionnaire.json +1414 -0
- data/lib/fhir_dstu2_models/examples/json/clinicalimpression-example.json +72 -0
- data/lib/fhir_dstu2_models/examples/json/clinicalimpression-questionnaire.json +1794 -0
- data/lib/fhir_dstu2_models/examples/json/communication-example.json +55 -0
- data/lib/fhir_dstu2_models/examples/json/communication-questionnaire.json +1022 -0
- data/lib/fhir_dstu2_models/examples/json/communicationrequest-example.json +14 -0
- data/lib/fhir_dstu2_models/examples/json/communicationrequest-questionnaire.json +1190 -0
- data/lib/fhir_dstu2_models/examples/json/composition-example.json +152 -0
- data/lib/fhir_dstu2_models/examples/json/composition-questionnaire.json +1260 -0
- data/lib/fhir_dstu2_models/examples/json/composition-status-map-v3.json +80 -0
- data/lib/fhir_dstu2_models/examples/json/conceptmap-example.json +112 -0
- data/lib/fhir_dstu2_models/examples/json/conceptmap-questionnaire.json +1253 -0
- data/lib/fhir_dstu2_models/examples/json/condition-example-f001-heart.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/condition-example-f002-lung.json +85 -0
- data/lib/fhir_dstu2_models/examples/json/condition-example-f003-abscess.json +80 -0
- data/lib/fhir_dstu2_models/examples/json/condition-example-f201-fever.json +105 -0
- data/lib/fhir_dstu2_models/examples/json/condition-example-f202-malignancy.json +88 -0
- data/lib/fhir_dstu2_models/examples/json/condition-example-f203-sepsis.json +84 -0
- data/lib/fhir_dstu2_models/examples/json/condition-example-f204-renal.json +89 -0
- data/lib/fhir_dstu2_models/examples/json/condition-example-f205-infection.json +33 -0
- data/lib/fhir_dstu2_models/examples/json/condition-example-stroke.json +33 -0
- data/lib/fhir_dstu2_models/examples/json/condition-example.json +61 -0
- data/lib/fhir_dstu2_models/examples/json/condition-example2.json +35 -0
- data/lib/fhir_dstu2_models/examples/json/condition-questionnaire.json +1360 -0
- data/lib/fhir_dstu2_models/examples/json/conformance-base2.json +69 -0
- data/lib/fhir_dstu2_models/examples/json/conformance-example.json +267 -0
- data/lib/fhir_dstu2_models/examples/json/conformance-phr-example.json +152 -0
- data/lib/fhir_dstu2_models/examples/json/conformance-terminology-server.json +241 -0
- data/lib/fhir_dstu2_models/examples/json/contact-point-system-map-v2.json +93 -0
- data/lib/fhir_dstu2_models/examples/json/contact-point-use-map-v2.json +91 -0
- data/lib/fhir_dstu2_models/examples/json/contact-point-use-map-v3.json +104 -0
- data/lib/fhir_dstu2_models/examples/json/contract-example.json +8 -0
- data/lib/fhir_dstu2_models/examples/json/coverage-example-2.json +32 -0
- data/lib/fhir_dstu2_models/examples/json/coverage-example.json +33 -0
- data/lib/fhir_dstu2_models/examples/json/coverage-questionnaire.json +580 -0
- data/lib/fhir_dstu2_models/examples/json/data-absent-reason-map-v3.json +124 -0
- data/lib/fhir_dstu2_models/examples/json/dataelement-example.json +251 -0
- data/lib/fhir_dstu2_models/examples/json/dataelement-labtestmaster-example.json +84 -0
- data/lib/fhir_dstu2_models/examples/json/dataelement-questionnaire.json +742 -0
- data/lib/fhir_dstu2_models/examples/json/detectedissue-example-allergy.json +8 -0
- data/lib/fhir_dstu2_models/examples/json/detectedissue-example-dup.json +38 -0
- data/lib/fhir_dstu2_models/examples/json/detectedissue-example-lab.json +8 -0
- data/lib/fhir_dstu2_models/examples/json/detectedissue-example.json +52 -0
- data/lib/fhir_dstu2_models/examples/json/detectedissue-questionnaire.json +632 -0
- data/lib/fhir_dstu2_models/examples/json/detectedissue-severity-map-v3.json +69 -0
- data/lib/fhir_dstu2_models/examples/json/device-example-f001-feedingtube.json +38 -0
- data/lib/fhir_dstu2_models/examples/json/device-example-ihe-pcd.json +28 -0
- data/lib/fhir_dstu2_models/examples/json/device-example-pacemaker.json +35 -0
- data/lib/fhir_dstu2_models/examples/json/device-example-software.json +26 -0
- data/lib/fhir_dstu2_models/examples/json/device-example.json +58 -0
- data/lib/fhir_dstu2_models/examples/json/device-questionnaire.json +590 -0
- data/lib/fhir_dstu2_models/examples/json/devicecomponent-example-prodspec.json +135 -0
- data/lib/fhir_dstu2_models/examples/json/devicecomponent-example.json +88 -0
- data/lib/fhir_dstu2_models/examples/json/devicecomponent-questionnaire.json +591 -0
- data/lib/fhir_dstu2_models/examples/json/devicemetric-example.json +31 -0
- data/lib/fhir_dstu2_models/examples/json/devicemetric-questionnaire.json +581 -0
- data/lib/fhir_dstu2_models/examples/json/devicemetricobservation-questionnaire.json +2007 -0
- data/lib/fhir_dstu2_models/examples/json/deviceuserequest-example.json +17 -0
- data/lib/fhir_dstu2_models/examples/json/deviceuserequest-questionnaire.json +717 -0
- data/lib/fhir_dstu2_models/examples/json/deviceusestatement-example.json +17 -0
- data/lib/fhir_dstu2_models/examples/json/deviceusestatement-questionnaire.json +606 -0
- data/lib/fhir_dstu2_models/examples/json/diagnosticorder-example-di.json +49 -0
- data/lib/fhir_dstu2_models/examples/json/diagnosticorder-example-ft4.json +81 -0
- data/lib/fhir_dstu2_models/examples/json/diagnosticorder-example.json +114 -0
- data/lib/fhir_dstu2_models/examples/json/diagnosticorder-questionnaire.json +1099 -0
- data/lib/fhir_dstu2_models/examples/json/diagnosticreport-example-dxa.json +105 -0
- data/lib/fhir_dstu2_models/examples/json/diagnosticreport-example-f001-bloodexam.json +138 -0
- data/lib/fhir_dstu2_models/examples/json/diagnosticreport-example-f201-brainct.json +68 -0
- data/lib/fhir_dstu2_models/examples/json/diagnosticreport-example-f202-bloodculture.json +88 -0
- data/lib/fhir_dstu2_models/examples/json/diagnosticreport-example-ghp.json +2582 -0
- data/lib/fhir_dstu2_models/examples/json/diagnosticreport-example-lipids.json +231 -0
- data/lib/fhir_dstu2_models/examples/json/diagnosticreport-example-ultrasound.json +56 -0
- data/lib/fhir_dstu2_models/examples/json/diagnosticreport-example.json +870 -0
- data/lib/fhir_dstu2_models/examples/json/diagnosticreport-micro1.json +1173 -0
- data/lib/fhir_dstu2_models/examples/json/diagnosticreport-questionnaire.json +1158 -0
- data/lib/fhir_dstu2_models/examples/json/document-example-dischargesummary.json +481 -0
- data/lib/fhir_dstu2_models/examples/json/document-reference-status-map-v3.json +69 -0
- data/lib/fhir_dstu2_models/examples/json/documentmanifest-example.json +91 -0
- data/lib/fhir_dstu2_models/examples/json/documentmanifest-questionnaire.json +1137 -0
- data/lib/fhir_dstu2_models/examples/json/documentreference-example.json +187 -0
- data/lib/fhir_dstu2_models/examples/json/documentreference-questionnaire.json +1530 -0
- data/lib/fhir_dstu2_models/examples/json/elementdefinition-11179-DataElement-objectClass.json +12 -0
- data/lib/fhir_dstu2_models/examples/json/elementdefinition-11179-DataElement-objectClassProperty.json +12 -0
- data/lib/fhir_dstu2_models/examples/json/eligibilityrequest-example.json +18 -0
- data/lib/fhir_dstu2_models/examples/json/eligibilityrequest-questionnaire.json +359 -0
- data/lib/fhir_dstu2_models/examples/json/eligibilityresponse-example.json +26 -0
- data/lib/fhir_dstu2_models/examples/json/eligibilityresponse-questionnaire.json +437 -0
- data/lib/fhir_dstu2_models/examples/json/encounter-example-f001-heart.json +98 -0
- data/lib/fhir_dstu2_models/examples/json/encounter-example-f002-lung.json +98 -0
- data/lib/fhir_dstu2_models/examples/json/encounter-example-f003-abscess.json +103 -0
- data/lib/fhir_dstu2_models/examples/json/encounter-example-f201-20130404.json +78 -0
- data/lib/fhir_dstu2_models/examples/json/encounter-example-f202-20130128.json +98 -0
- data/lib/fhir_dstu2_models/examples/json/encounter-example-f203-20130311.json +110 -0
- data/lib/fhir_dstu2_models/examples/json/encounter-example-home.json +50 -0
- data/lib/fhir_dstu2_models/examples/json/encounter-example-xcda.json +38 -0
- data/lib/fhir_dstu2_models/examples/json/encounter-example.json +13 -0
- data/lib/fhir_dstu2_models/examples/json/encounter-questionnaire.json +1610 -0
- data/lib/fhir_dstu2_models/examples/json/enrollmentrequest-example.json +27 -0
- data/lib/fhir_dstu2_models/examples/json/enrollmentrequest-questionnaire.json +443 -0
- data/lib/fhir_dstu2_models/examples/json/enrollmentresponse-example.json +26 -0
- data/lib/fhir_dstu2_models/examples/json/enrollmentresponse-questionnaire.json +437 -0
- data/lib/fhir_dstu2_models/examples/json/episodeofcare-example.json +102 -0
- data/lib/fhir_dstu2_models/examples/json/episodeofcare-questionnaire.json +778 -0
- data/lib/fhir_dstu2_models/examples/json/explanationofbenefit-example.json +26 -0
- data/lib/fhir_dstu2_models/examples/json/explanationofbenefit-questionnaire.json +437 -0
- data/lib/fhir_dstu2_models/examples/json/extension-11179-de-administrative-status.json +211 -0
- data/lib/fhir_dstu2_models/examples/json/extension-11179-de-change-description.json +184 -0
- data/lib/fhir_dstu2_models/examples/json/extension-11179-de-classification-or-context.json +243 -0
- data/lib/fhir_dstu2_models/examples/json/extension-11179-de-contact-address.json +203 -0
- data/lib/fhir_dstu2_models/examples/json/extension-11179-de-document-reference.json +209 -0
- data/lib/fhir_dstu2_models/examples/json/extension-11179-de-effective-period.json +217 -0
- data/lib/fhir_dstu2_models/examples/json/extension-11179-de-is-data-element-concept.json +230 -0
- data/lib/fhir_dstu2_models/examples/json/extension-11179-de-registry-org.json +209 -0
- data/lib/fhir_dstu2_models/examples/json/extension-11179-de-submitter-org.json +209 -0
- data/lib/fhir_dstu2_models/examples/json/extension-11179-objectclass.json +246 -0
- data/lib/fhir_dstu2_models/examples/json/extension-11179-objectclassproperty.json +246 -0
- data/lib/fhir_dstu2_models/examples/json/extension-11179-permitted-value-conceptmap.json +241 -0
- data/lib/fhir_dstu2_models/examples/json/extension-11179-permitted-value-valueset.json +241 -0
- data/lib/fhir_dstu2_models/examples/json/extension-allergyintolerance-duration.json +211 -0
- data/lib/fhir_dstu2_models/examples/json/extension-allergyintolerance-reasonrefuted.json +185 -0
- data/lib/fhir_dstu2_models/examples/json/extension-allergyintolerance-resolutionage.json +213 -0
- data/lib/fhir_dstu2_models/examples/json/extension-birthplace.json +184 -0
- data/lib/fhir_dstu2_models/examples/json/extension-body-site-instance.json +190 -0
- data/lib/fhir_dstu2_models/examples/json/extension-careplan-activity-title.json +185 -0
- data/lib/fhir_dstu2_models/examples/json/extension-communication-media.json +185 -0
- data/lib/fhir_dstu2_models/examples/json/extension-communication-reasonnotperformed.json +187 -0
- data/lib/fhir_dstu2_models/examples/json/extension-communicationrequest-orderedby.json +231 -0
- data/lib/fhir_dstu2_models/examples/json/extension-communicationrequest-reasonrejected.json +187 -0
- data/lib/fhir_dstu2_models/examples/json/extension-composition-clindoc-otherconfidentiality.json +186 -0
- data/lib/fhir_dstu2_models/examples/json/extension-condition-criticality.json +189 -0
- data/lib/fhir_dstu2_models/examples/json/extension-condition-dueto.json +700 -0
- data/lib/fhir_dstu2_models/examples/json/extension-condition-occurredfollowing.json +698 -0
- data/lib/fhir_dstu2_models/examples/json/extension-condition-outcome.json +199 -0
- data/lib/fhir_dstu2_models/examples/json/extension-condition-targetbodysite.json +188 -0
- data/lib/fhir_dstu2_models/examples/json/extension-conformance-expectation.json +238 -0
- data/lib/fhir_dstu2_models/examples/json/extension-conformance-prohibited.json +224 -0
- data/lib/fhir_dstu2_models/examples/json/extension-conformance-search-parameter-combination.json +669 -0
- data/lib/fhir_dstu2_models/examples/json/extension-conformance-supported-system.json +189 -0
- data/lib/fhir_dstu2_models/examples/json/extension-cqm-basedonmeasure.json +190 -0
- data/lib/fhir_dstu2_models/examples/json/extension-data-absent-reason.json +218 -0
- data/lib/fhir_dstu2_models/examples/json/extension-datadictionary.json +187 -0
- data/lib/fhir_dstu2_models/examples/json/extension-deviceuserequest-reasonrejected.json +185 -0
- data/lib/fhir_dstu2_models/examples/json/extension-diagnosticorder-precondition.json +185 -0
- data/lib/fhir_dstu2_models/examples/json/extension-diagnosticorder-reason.json +185 -0
- data/lib/fhir_dstu2_models/examples/json/extension-diagnosticorder-reasonrejected.json +185 -0
- data/lib/fhir_dstu2_models/examples/json/extension-diagnosticreport-locationperformed.json +193 -0
- data/lib/fhir_dstu2_models/examples/json/extension-elementdefinition-allowedunits.json +244 -0
- data/lib/fhir_dstu2_models/examples/json/extension-elementdefinition-equivalence.json +217 -0
- data/lib/fhir_dstu2_models/examples/json/extension-elementdefinition-identifier.json +216 -0
- data/lib/fhir_dstu2_models/examples/json/extension-elementdefinition-maxvalueset.json +211 -0
- data/lib/fhir_dstu2_models/examples/json/extension-elementdefinition-minvalueset.json +211 -0
- data/lib/fhir_dstu2_models/examples/json/extension-elementdefinition-question.json +205 -0
- data/lib/fhir_dstu2_models/examples/json/extension-encounter-associatedencounter.json +188 -0
- data/lib/fhir_dstu2_models/examples/json/extension-encounter-primarydiagnosis.json +187 -0
- data/lib/fhir_dstu2_models/examples/json/extension-encounter-reasoncancelled.json +185 -0
- data/lib/fhir_dstu2_models/examples/json/extension-encounter-relatedcondition.json +506 -0
- data/lib/fhir_dstu2_models/examples/json/extension-entryformat.json +217 -0
- data/lib/fhir_dstu2_models/examples/json/extension-family-member-history-genetics-observation.json +213 -0
- data/lib/fhir_dstu2_models/examples/json/extension-family-member-history-genetics-parent.json +657 -0
- data/lib/fhir_dstu2_models/examples/json/extension-familymemberhistory-abatement.json +203 -0
- data/lib/fhir_dstu2_models/examples/json/extension-familymemberhistory-patient-record.json +191 -0
- data/lib/fhir_dstu2_models/examples/json/extension-familymemberhistory-severity.json +199 -0
- data/lib/fhir_dstu2_models/examples/json/extension-flag-detail.json +191 -0
- data/lib/fhir_dstu2_models/examples/json/extension-flag-priority.json +199 -0
- data/lib/fhir_dstu2_models/examples/json/extension-geneticsallelename.json +216 -0
- data/lib/fhir_dstu2_models/examples/json/extension-geneticsallelicfrequency.json +216 -0
- data/lib/fhir_dstu2_models/examples/json/extension-geneticsallelicstate.json +216 -0
- data/lib/fhir_dstu2_models/examples/json/extension-geneticsaminoacidchange.json +216 -0
- data/lib/fhir_dstu2_models/examples/json/extension-geneticsaminoacidchangetype.json +216 -0
- data/lib/fhir_dstu2_models/examples/json/extension-geneticsassessedcondition.json +222 -0
- data/lib/fhir_dstu2_models/examples/json/extension-geneticschromosome.json +184 -0
- data/lib/fhir_dstu2_models/examples/json/extension-geneticscigar.json +216 -0
- data/lib/fhir_dstu2_models/examples/json/extension-geneticscopynumberevent.json +216 -0
- data/lib/fhir_dstu2_models/examples/json/extension-geneticsdnaregionname.json +216 -0
- data/lib/fhir_dstu2_models/examples/json/extension-geneticsdnasequencevariation.json +184 -0
- data/lib/fhir_dstu2_models/examples/json/extension-geneticsdnasequencevariationtype.json +216 -0
- data/lib/fhir_dstu2_models/examples/json/extension-geneticsgene.json +184 -0
- data/lib/fhir_dstu2_models/examples/json/extension-geneticsgenomebuild.json +184 -0
- data/lib/fhir_dstu2_models/examples/json/extension-geneticsgenomicsourceclass.json +216 -0
- data/lib/fhir_dstu2_models/examples/json/extension-geneticsgenomicstart.json +184 -0
- data/lib/fhir_dstu2_models/examples/json/extension-geneticsgenomicstop.json +184 -0
- data/lib/fhir_dstu2_models/examples/json/extension-geneticsobservedallele.json +184 -0
- data/lib/fhir_dstu2_models/examples/json/extension-geneticsproteinreferencesequenceid.json +216 -0
- data/lib/fhir_dstu2_models/examples/json/extension-geneticsreadcoverage.json +216 -0
- data/lib/fhir_dstu2_models/examples/json/extension-geneticsreferenceallele.json +184 -0
- data/lib/fhir_dstu2_models/examples/json/extension-geneticsresult.json +222 -0
- data/lib/fhir_dstu2_models/examples/json/extension-geneticsspecies.json +216 -0
- data/lib/fhir_dstu2_models/examples/json/extension-geneticstranscriptreferencesequenceid.json +184 -0
- data/lib/fhir_dstu2_models/examples/json/extension-geneticsvariationid.json +184 -0
- data/lib/fhir_dstu2_models/examples/json/extension-goal-acceptance.json +794 -0
- data/lib/fhir_dstu2_models/examples/json/extension-goal-pertainstogoal.json +193 -0
- data/lib/fhir_dstu2_models/examples/json/extension-goal-reasonrejected.json +204 -0
- data/lib/fhir_dstu2_models/examples/json/extension-goal-relationship.json +607 -0
- data/lib/fhir_dstu2_models/examples/json/extension-goal-target.json +618 -0
- data/lib/fhir_dstu2_models/examples/json/extension-http-response-header.json +219 -0
- data/lib/fhir_dstu2_models/examples/json/extension-imagingstudy-radiationdose.json +185 -0
- data/lib/fhir_dstu2_models/examples/json/extension-imagingstudy-radiationduration.json +211 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-ad-use.json +217 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-adxp-additionallocator.json +203 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-adxp-buildingnumbersuffix.json +203 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-adxp-careof.json +203 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-adxp-censustract.json +203 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-adxp-county.json +203 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-adxp-delimiter.json +205 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-adxp-deliveryaddressline.json +203 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-adxp-deliveryinstallationarea.json +203 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-adxp-deliveryinstallationqualifier.json +203 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-adxp-deliveryinstallationtype.json +203 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-adxp-deliverymode.json +203 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-adxp-deliverymodeidentifier.json +203 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-adxp-direction.json +203 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-adxp-housenumber.json +203 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-adxp-housenumbernumeric.json +203 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-adxp-postbox.json +203 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-adxp-precinct.json +203 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-adxp-streetaddressline.json +203 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-adxp-streetname.json +203 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-adxp-streetnamebase.json +203 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-adxp-streetnametype.json +203 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-adxp-unitid.json +203 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-adxp-unittype.json +203 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-co-value.json +205 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-en-qualifier.json +224 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-nullflavor.json +232 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-preferred.json +184 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-sc-coding.json +211 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-st-language.json +213 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-st-translation.json +205 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-tel-address.json +205 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-uncertainty.json +205 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-uncertaintytype.json +219 -0
- data/lib/fhir_dstu2_models/examples/json/extension-iso21090-verification.json +192 -0
- data/lib/fhir_dstu2_models/examples/json/extension-lipid-report-ldl-chol-calculated.json +186 -0
- data/lib/fhir_dstu2_models/examples/json/extension-location-alias.json +175 -0
- data/lib/fhir_dstu2_models/examples/json/extension-mapsourcepublisher.json +185 -0
- data/lib/fhir_dstu2_models/examples/json/extension-markup.json +203 -0
- data/lib/fhir_dstu2_models/examples/json/extension-maxdecimalplaces.json +217 -0
- data/lib/fhir_dstu2_models/examples/json/extension-maxsize.json +219 -0
- data/lib/fhir_dstu2_models/examples/json/extension-maxvalue.json +248 -0
- data/lib/fhir_dstu2_models/examples/json/extension-medication-isactiveingredient.json +187 -0
- data/lib/fhir_dstu2_models/examples/json/extension-medication-usualroute.json +187 -0
- data/lib/fhir_dstu2_models/examples/json/extension-medicationdispense-validityperiod.json +185 -0
- data/lib/fhir_dstu2_models/examples/json/extension-mimetype.json +229 -0
- data/lib/fhir_dstu2_models/examples/json/extension-minlength.json +219 -0
- data/lib/fhir_dstu2_models/examples/json/extension-minvalue.json +248 -0
- data/lib/fhir_dstu2_models/examples/json/extension-observation-bodyposition.json +185 -0
- data/lib/fhir_dstu2_models/examples/json/extension-observation-delta.json +185 -0
- data/lib/fhir_dstu2_models/examples/json/extension-observation-focal-subject.json +201 -0
- data/lib/fhir_dstu2_models/examples/json/extension-openehr-administration.json +190 -0
- data/lib/fhir_dstu2_models/examples/json/extension-openehr-careplan.json +190 -0
- data/lib/fhir_dstu2_models/examples/json/extension-openehr-exposuredate.json +186 -0
- data/lib/fhir_dstu2_models/examples/json/extension-openehr-exposuredescription.json +184 -0
- data/lib/fhir_dstu2_models/examples/json/extension-openehr-exposureduration.json +210 -0
- data/lib/fhir_dstu2_models/examples/json/extension-openehr-location.json +198 -0
- data/lib/fhir_dstu2_models/examples/json/extension-openehr-management.json +184 -0
- data/lib/fhir_dstu2_models/examples/json/extension-openehr-test.json +202 -0
- data/lib/fhir_dstu2_models/examples/json/extension-operationoutcome-authority.json +185 -0
- data/lib/fhir_dstu2_models/examples/json/extension-operationoutcome-detectedissue.json +193 -0
- data/lib/fhir_dstu2_models/examples/json/extension-operationoutcome-issue-source.json +185 -0
- data/lib/fhir_dstu2_models/examples/json/extension-organization-alias.json +187 -0
- data/lib/fhir_dstu2_models/examples/json/extension-organization-period.json +184 -0
- data/lib/fhir_dstu2_models/examples/json/extension-organization-preferredcontact.json +184 -0
- data/lib/fhir_dstu2_models/examples/json/extension-patient-adoptioninfo.json +175 -0
- data/lib/fhir_dstu2_models/examples/json/extension-patient-birthtime.json +175 -0
- data/lib/fhir_dstu2_models/examples/json/extension-patient-cadavericdonor.json +175 -0
- data/lib/fhir_dstu2_models/examples/json/extension-patient-citizenship.json +577 -0
- data/lib/fhir_dstu2_models/examples/json/extension-patient-clinicaltrial.json +726 -0
- data/lib/fhir_dstu2_models/examples/json/extension-patient-congregation.json +175 -0
- data/lib/fhir_dstu2_models/examples/json/extension-patient-disability.json +175 -0
- data/lib/fhir_dstu2_models/examples/json/extension-patient-importance.json +175 -0
- data/lib/fhir_dstu2_models/examples/json/extension-patient-interpreterrequired.json +177 -0
- data/lib/fhir_dstu2_models/examples/json/extension-patient-mothersmaidenname.json +207 -0
- data/lib/fhir_dstu2_models/examples/json/extension-patient-mpi-match.json +189 -0
- data/lib/fhir_dstu2_models/examples/json/extension-patient-nationality.json +577 -0
- data/lib/fhir_dstu2_models/examples/json/extension-pharmacy-core-dosetype.json +186 -0
- data/lib/fhir_dstu2_models/examples/json/extension-pharmacy-core-infuseover.json +212 -0
- data/lib/fhir_dstu2_models/examples/json/extension-pharmacy-core-maxdeliveryrate.json +186 -0
- data/lib/fhir_dstu2_models/examples/json/extension-pharmacy-core-maxdeliveryvolume.json +186 -0
- data/lib/fhir_dstu2_models/examples/json/extension-pharmacy-core-mindoseperperiod.json +186 -0
- data/lib/fhir_dstu2_models/examples/json/extension-pharmacy-core-rategoal.json +186 -0
- data/lib/fhir_dstu2_models/examples/json/extension-pharmacy-core-rateincrement.json +186 -0
- data/lib/fhir_dstu2_models/examples/json/extension-pharmacy-core-rateincrementinterval.json +212 -0
- data/lib/fhir_dstu2_models/examples/json/extension-pharmacy-core-refillsremaining.json +186 -0
- data/lib/fhir_dstu2_models/examples/json/extension-practitioner-animalspecies.json +190 -0
- data/lib/fhir_dstu2_models/examples/json/extension-practitioner-classification.json +175 -0
- data/lib/fhir_dstu2_models/examples/json/extension-practitioner-primaryind.json +177 -0
- data/lib/fhir_dstu2_models/examples/json/extension-procedure-approachbodysite.json +191 -0
- data/lib/fhir_dstu2_models/examples/json/extension-procedure-causedby.json +330 -0
- data/lib/fhir_dstu2_models/examples/json/extension-procedure-incisiondatetime.json +185 -0
- data/lib/fhir_dstu2_models/examples/json/extension-procedure-method.json +187 -0
- data/lib/fhir_dstu2_models/examples/json/extension-procedure-progressstatus.json +199 -0
- data/lib/fhir_dstu2_models/examples/json/extension-procedure-targetbodysite.json +191 -0
- data/lib/fhir_dstu2_models/examples/json/extension-procedurerequest-approachbodysite.json +191 -0
- data/lib/fhir_dstu2_models/examples/json/extension-procedurerequest-authorizedby.json +191 -0
- data/lib/fhir_dstu2_models/examples/json/extension-procedurerequest-reasonrefused.json +185 -0
- data/lib/fhir_dstu2_models/examples/json/extension-procedurerequest-targetbodysite.json +191 -0
- data/lib/fhir_dstu2_models/examples/json/extension-questionnaire-allowedresource.json +219 -0
- data/lib/fhir_dstu2_models/examples/json/extension-questionnaire-category.json +217 -0
- data/lib/fhir_dstu2_models/examples/json/extension-questionnaire-choiceorientation.json +200 -0
- data/lib/fhir_dstu2_models/examples/json/extension-questionnaire-defaultvalue.json +395 -0
- data/lib/fhir_dstu2_models/examples/json/extension-questionnaire-demap.json +190 -0
- data/lib/fhir_dstu2_models/examples/json/extension-questionnaire-dereference.json +211 -0
- data/lib/fhir_dstu2_models/examples/json/extension-questionnaire-enablewhen.json +935 -0
- data/lib/fhir_dstu2_models/examples/json/extension-questionnaire-help.json +204 -0
- data/lib/fhir_dstu2_models/examples/json/extension-questionnaire-hidden.json +188 -0
- data/lib/fhir_dstu2_models/examples/json/extension-questionnaire-highrangelabel.json +203 -0
- data/lib/fhir_dstu2_models/examples/json/extension-questionnaire-instruction.json +204 -0
- data/lib/fhir_dstu2_models/examples/json/extension-questionnaire-label.json +207 -0
- data/lib/fhir_dstu2_models/examples/json/extension-questionnaire-lowrangelabel.json +203 -0
- data/lib/fhir_dstu2_models/examples/json/extension-questionnaire-maxlength.json +218 -0
- data/lib/fhir_dstu2_models/examples/json/extension-questionnaire-maxoccurs.json +223 -0
- data/lib/fhir_dstu2_models/examples/json/extension-questionnaire-minoccurs.json +223 -0
- data/lib/fhir_dstu2_models/examples/json/extension-questionnaire-questioncontrol.json +200 -0
- data/lib/fhir_dstu2_models/examples/json/extension-questionnaire-readonly.json +205 -0
- data/lib/fhir_dstu2_models/examples/json/extension-questionnaire-security.json +204 -0
- data/lib/fhir_dstu2_models/examples/json/extension-questionnaire-tooltip.json +204 -0
- data/lib/fhir_dstu2_models/examples/json/extension-questionnaire-trailing.json +204 -0
- data/lib/fhir_dstu2_models/examples/json/extension-questionnaire-units.json +203 -0
- data/lib/fhir_dstu2_models/examples/json/extension-questionnaireresponse-author.json +250 -0
- data/lib/fhir_dstu2_models/examples/json/extension-questionnaireresponse-reviewer.json +210 -0
- data/lib/fhir_dstu2_models/examples/json/extension-referralrequest-reasonrefused.json +185 -0
- data/lib/fhir_dstu2_models/examples/json/extension-regex.json +217 -0
- data/lib/fhir_dstu2_models/examples/json/extension-specimen-collectionpriority.json +199 -0
- data/lib/fhir_dstu2_models/examples/json/extension-specimen-isdryweight.json +185 -0
- data/lib/fhir_dstu2_models/examples/json/extension-specimen-sequencenumber.json +185 -0
- data/lib/fhir_dstu2_models/examples/json/extension-specimen-specialhandling.json +185 -0
- data/lib/fhir_dstu2_models/examples/json/extension-specimen-treatmenttime.json +197 -0
- data/lib/fhir_dstu2_models/examples/json/extension-structuredefinition-display-hint.json +186 -0
- data/lib/fhir_dstu2_models/examples/json/extension-structuredefinition-explicit-type-name.json +184 -0
- data/lib/fhir_dstu2_models/examples/json/extension-structuredefinition-fmm-no-warnings.json +186 -0
- data/lib/fhir_dstu2_models/examples/json/extension-structuredefinition-fmm.json +186 -0
- data/lib/fhir_dstu2_models/examples/json/extension-structuredefinition-json-type.json +186 -0
- data/lib/fhir_dstu2_models/examples/json/extension-structuredefinition-regex.json +184 -0
- data/lib/fhir_dstu2_models/examples/json/extension-structuredefinition-template-status.json +200 -0
- data/lib/fhir_dstu2_models/examples/json/extension-structuredefinition-xml-type.json +186 -0
- data/lib/fhir_dstu2_models/examples/json/extension-style.json +205 -0
- data/lib/fhir_dstu2_models/examples/json/extension-stylesensitive.json +186 -0
- data/lib/fhir_dstu2_models/examples/json/extension-us-core-concernstatus.json +185 -0
- data/lib/fhir_dstu2_models/examples/json/extension-us-core-county.json +184 -0
- data/lib/fhir_dstu2_models/examples/json/extension-us-core-direct.json +219 -0
- data/lib/fhir_dstu2_models/examples/json/extension-us-core-ethnicity.json +198 -0
- data/lib/fhir_dstu2_models/examples/json/extension-us-core-race.json +198 -0
- data/lib/fhir_dstu2_models/examples/json/extension-us-core-religion.json +198 -0
- data/lib/fhir_dstu2_models/examples/json/extension-valueset-author.json +176 -0
- data/lib/fhir_dstu2_models/examples/json/extension-valueset-casesensitive.json +178 -0
- data/lib/fhir_dstu2_models/examples/json/extension-valueset-comment.json +582 -0
- data/lib/fhir_dstu2_models/examples/json/extension-valueset-comments.json +180 -0
- data/lib/fhir_dstu2_models/examples/json/extension-valueset-conceptorder.json +178 -0
- data/lib/fhir_dstu2_models/examples/json/extension-valueset-definition.json +180 -0
- data/lib/fhir_dstu2_models/examples/json/extension-valueset-deprecated.json +178 -0
- data/lib/fhir_dstu2_models/examples/json/extension-valueset-effectivedate.json +176 -0
- data/lib/fhir_dstu2_models/examples/json/extension-valueset-expansionsource.json +176 -0
- data/lib/fhir_dstu2_models/examples/json/extension-valueset-expirationdate.json +178 -0
- data/lib/fhir_dstu2_models/examples/json/extension-valueset-history.json +1292 -0
- data/lib/fhir_dstu2_models/examples/json/extension-valueset-keyword.json +176 -0
- data/lib/fhir_dstu2_models/examples/json/extension-valueset-label.json +178 -0
- data/lib/fhir_dstu2_models/examples/json/extension-valueset-map.json +184 -0
- data/lib/fhir_dstu2_models/examples/json/extension-valueset-oid.json +177 -0
- data/lib/fhir_dstu2_models/examples/json/extension-valueset-ordinalvalue.json +178 -0
- data/lib/fhir_dstu2_models/examples/json/extension-valueset-othername.json +586 -0
- data/lib/fhir_dstu2_models/examples/json/extension-valueset-reference.json +208 -0
- data/lib/fhir_dstu2_models/examples/json/extension-valueset-replacedby.json +178 -0
- data/lib/fhir_dstu2_models/examples/json/extension-valueset-sourcereference.json +178 -0
- data/lib/fhir_dstu2_models/examples/json/extension-valueset-subsumes.json +177 -0
- data/lib/fhir_dstu2_models/examples/json/extension-valueset-systemname.json +176 -0
- data/lib/fhir_dstu2_models/examples/json/extension-valueset-systemref.json +176 -0
- data/lib/fhir_dstu2_models/examples/json/extension-valueset-trusted-expansion.json +176 -0
- data/lib/fhir_dstu2_models/examples/json/extension-valueset-unclosed.json +178 -0
- data/lib/fhir_dstu2_models/examples/json/extension-valueset-usage.json +584 -0
- data/lib/fhir_dstu2_models/examples/json/extension-valueset-warning.json +176 -0
- data/lib/fhir_dstu2_models/examples/json/extension-valueset-workflowstatus.json +178 -0
- data/lib/fhir_dstu2_models/examples/json/familymemberhistory-example-mother.json +40 -0
- data/lib/fhir_dstu2_models/examples/json/familymemberhistory-example.json +44 -0
- data/lib/fhir_dstu2_models/examples/json/familymemberhistory-genetic-questionnaire.json +1165 -0
- data/lib/fhir_dstu2_models/examples/json/familymemberhistory-questionnaire.json +1165 -0
- data/lib/fhir_dstu2_models/examples/json/flag-example-encounter.json +34 -0
- data/lib/fhir_dstu2_models/examples/json/flag-example.json +37 -0
- data/lib/fhir_dstu2_models/examples/json/flag-questionnaire.json +688 -0
- data/lib/fhir_dstu2_models/examples/json/genetics-questionnaire.json +2268 -0
- data/lib/fhir_dstu2_models/examples/json/goal-example.json +56 -0
- data/lib/fhir_dstu2_models/examples/json/goal-questionnaire.json +1218 -0
- data/lib/fhir_dstu2_models/examples/json/group-example-member.json +45 -0
- data/lib/fhir_dstu2_models/examples/json/group-example.json +35 -0
- data/lib/fhir_dstu2_models/examples/json/group-questionnaire.json +963 -0
- data/lib/fhir_dstu2_models/examples/json/hdlcholesterol-questionnaire.json +1993 -0
- data/lib/fhir_dstu2_models/examples/json/healthcareservice-example.json +177 -0
- data/lib/fhir_dstu2_models/examples/json/healthcareservice-questionnaire.json +1097 -0
- data/lib/fhir_dstu2_models/examples/json/imagingobjectselection-example.json +56 -0
- data/lib/fhir_dstu2_models/examples/json/imagingobjectselection-questionnaire.json +976 -0
- data/lib/fhir_dstu2_models/examples/json/imagingstudy-example.json +49 -0
- data/lib/fhir_dstu2_models/examples/json/imagingstudy-questionnaire.json +1078 -0
- data/lib/fhir_dstu2_models/examples/json/immunization-example-refused.json +37 -0
- data/lib/fhir_dstu2_models/examples/json/immunization-example.json +135 -0
- data/lib/fhir_dstu2_models/examples/json/immunization-questionnaire.json +1237 -0
- data/lib/fhir_dstu2_models/examples/json/immunizationrecommendation-example.json +97 -0
- data/lib/fhir_dstu2_models/examples/json/immunizationrecommendation-questionnaire.json +812 -0
- data/lib/fhir_dstu2_models/examples/json/implementationguide-example.json +117 -0
- data/lib/fhir_dstu2_models/examples/json/implementationguide-questionnaire.json +1418 -0
- data/lib/fhir_dstu2_models/examples/json/ldlcholesterol-questionnaire.json +1993 -0
- data/lib/fhir_dstu2_models/examples/json/lipidprofile-questionnaire.json +1278 -0
- data/lib/fhir_dstu2_models/examples/json/list-example-allergies.json +45 -0
- data/lib/fhir_dstu2_models/examples/json/list-example-empty.json +34 -0
- data/lib/fhir_dstu2_models/examples/json/list-example-familyhistory-f201-roel.json +120 -0
- data/lib/fhir_dstu2_models/examples/json/list-example-familyhistory-genetics-profile.json +380 -0
- data/lib/fhir_dstu2_models/examples/json/list-example-medlist.json +64 -0
- data/lib/fhir_dstu2_models/examples/json/list-example.json +49 -0
- data/lib/fhir_dstu2_models/examples/json/list-questionnaire.json +899 -0
- data/lib/fhir_dstu2_models/examples/json/location-example-ambulance.json +40 -0
- data/lib/fhir_dstu2_models/examples/json/location-example-hl7hq.json +62 -0
- data/lib/fhir_dstu2_models/examples/json/location-example-patients-home.json +33 -0
- data/lib/fhir_dstu2_models/examples/json/location-example-room.json +47 -0
- data/lib/fhir_dstu2_models/examples/json/location-example-ukpharmacy.json +30 -0
- data/lib/fhir_dstu2_models/examples/json/location-example.json +74 -0
- data/lib/fhir_dstu2_models/examples/json/location-extensions-Location-alias.json +12 -0
- data/lib/fhir_dstu2_models/examples/json/location-questionnaire.json +657 -0
- data/lib/fhir_dstu2_models/examples/json/measurereport-questionnaire.json +1414 -0
- data/lib/fhir_dstu2_models/examples/json/media-example-dicom.json +92 -0
- data/lib/fhir_dstu2_models/examples/json/media-example-sound.json +26 -0
- data/lib/fhir_dstu2_models/examples/json/media-example.json +43 -0
- data/lib/fhir_dstu2_models/examples/json/media-questionnaire.json +637 -0
- data/lib/fhir_dstu2_models/examples/json/medication-admin-status-map-v3.json +91 -0
- data/lib/fhir_dstu2_models/examples/json/medication-dispense-status-map-v3.json +91 -0
- data/lib/fhir_dstu2_models/examples/json/medication-example-f001-combivent.json +66 -0
- data/lib/fhir_dstu2_models/examples/json/medication-example-f002-crestor.json +38 -0
- data/lib/fhir_dstu2_models/examples/json/medication-example-f003-tolbutamide.json +38 -0
- data/lib/fhir_dstu2_models/examples/json/medication-example-f004-metoprolol.json +38 -0
- data/lib/fhir_dstu2_models/examples/json/medication-example-f005-enalapril.json +38 -0
- data/lib/fhir_dstu2_models/examples/json/medication-example-f201-salmeterol.json +68 -0
- data/lib/fhir_dstu2_models/examples/json/medication-example-f202-flucloxacilline.json +29 -0
- data/lib/fhir_dstu2_models/examples/json/medication-example-f203-paracetamol.json +29 -0
- data/lib/fhir_dstu2_models/examples/json/medication-order-status-map-v3.json +102 -0
- data/lib/fhir_dstu2_models/examples/json/medication-questionnaire.json +885 -0
- data/lib/fhir_dstu2_models/examples/json/medication-statement-status-map-v3.json +69 -0
- data/lib/fhir_dstu2_models/examples/json/medicationadministration-questionnaire.json +1190 -0
- data/lib/fhir_dstu2_models/examples/json/medicationadministrationexample1.json +41 -0
- data/lib/fhir_dstu2_models/examples/json/medicationadministrationexample2.json +56 -0
- data/lib/fhir_dstu2_models/examples/json/medicationadministrationexample3.json +56 -0
- data/lib/fhir_dstu2_models/examples/json/medicationdispense-questionnaire.json +1616 -0
- data/lib/fhir_dstu2_models/examples/json/medicationdispenseexample1.json +91 -0
- data/lib/fhir_dstu2_models/examples/json/medicationdispenseexample2.json +91 -0
- data/lib/fhir_dstu2_models/examples/json/medicationdispenseexample3.json +130 -0
- data/lib/fhir_dstu2_models/examples/json/medicationdispenseexample4.json +192 -0
- data/lib/fhir_dstu2_models/examples/json/medicationdispenseexample6.json +78 -0
- data/lib/fhir_dstu2_models/examples/json/medicationdispenseexample8.json +49 -0
- data/lib/fhir_dstu2_models/examples/json/medicationexample1.json +14 -0
- data/lib/fhir_dstu2_models/examples/json/medicationexample11.json +60 -0
- data/lib/fhir_dstu2_models/examples/json/medicationexample12.json +24 -0
- data/lib/fhir_dstu2_models/examples/json/medicationexample13.json +60 -0
- data/lib/fhir_dstu2_models/examples/json/medicationexample14.json +32 -0
- data/lib/fhir_dstu2_models/examples/json/medicationexample15.json +29 -0
- data/lib/fhir_dstu2_models/examples/json/medicationexample16.json +29 -0
- data/lib/fhir_dstu2_models/examples/json/medicationexample17.json +29 -0
- data/lib/fhir_dstu2_models/examples/json/medicationexample2.json +37 -0
- data/lib/fhir_dstu2_models/examples/json/medicationexample3.json +32 -0
- data/lib/fhir_dstu2_models/examples/json/medicationexample4.json +83 -0
- data/lib/fhir_dstu2_models/examples/json/medicationexample5.json +35 -0
- data/lib/fhir_dstu2_models/examples/json/medicationexample6.json +32 -0
- data/lib/fhir_dstu2_models/examples/json/medicationexample7.json +32 -0
- data/lib/fhir_dstu2_models/examples/json/medicationexample8.json +79 -0
- data/lib/fhir_dstu2_models/examples/json/medicationorder-example-f001-combivent.json +114 -0
- data/lib/fhir_dstu2_models/examples/json/medicationorder-example-f002-crestor.json +90 -0
- data/lib/fhir_dstu2_models/examples/json/medicationorder-example-f003-tolbutamide.json +90 -0
- data/lib/fhir_dstu2_models/examples/json/medicationorder-example-f004-metoprolol.json +90 -0
- data/lib/fhir_dstu2_models/examples/json/medicationorder-example-f005-enalapril.json +90 -0
- data/lib/fhir_dstu2_models/examples/json/medicationorder-example-f201-salmeterol.json +111 -0
- data/lib/fhir_dstu2_models/examples/json/medicationorder-example-f202-flucloxacilline.json +86 -0
- data/lib/fhir_dstu2_models/examples/json/medicationorder-example-f203-paracetamol.json +66 -0
- data/lib/fhir_dstu2_models/examples/json/medicationorder-questionnaire.json +1805 -0
- data/lib/fhir_dstu2_models/examples/json/medicationorderexample1.json +129 -0
- data/lib/fhir_dstu2_models/examples/json/medicationorderexample2.json +47 -0
- data/lib/fhir_dstu2_models/examples/json/medicationorderexample3.json +190 -0
- data/lib/fhir_dstu2_models/examples/json/medicationorderexample4.json +71 -0
- data/lib/fhir_dstu2_models/examples/json/medicationorderexample5.json +138 -0
- data/lib/fhir_dstu2_models/examples/json/medicationorderexample6.json +60 -0
- data/lib/fhir_dstu2_models/examples/json/medicationorderexample7.json +43 -0
- data/lib/fhir_dstu2_models/examples/json/medicationorderexample8.json +53 -0
- data/lib/fhir_dstu2_models/examples/json/medicationorderexample9.json +51 -0
- data/lib/fhir_dstu2_models/examples/json/medicationstatement-questionnaire.json +1480 -0
- data/lib/fhir_dstu2_models/examples/json/medicationstatementexample1.json +69 -0
- data/lib/fhir_dstu2_models/examples/json/medicationstatementexample2.json +33 -0
- data/lib/fhir_dstu2_models/examples/json/medicationstatementexample4.json +69 -0
- data/lib/fhir_dstu2_models/examples/json/medicationstatementexample5.json +69 -0
- data/lib/fhir_dstu2_models/examples/json/medicationstatementexample6.json +50 -0
- data/lib/fhir_dstu2_models/examples/json/medicationstatementexample7.json +21 -0
- data/lib/fhir_dstu2_models/examples/json/message-request-link.json +166 -0
- data/lib/fhir_dstu2_models/examples/json/message-response-link.json +209 -0
- data/lib/fhir_dstu2_models/examples/json/messageheader-example.json +64 -0
- data/lib/fhir_dstu2_models/examples/json/messageheader-questionnaire.json +1002 -0
- data/lib/fhir_dstu2_models/examples/json/name-use-map-v2.json +124 -0
- data/lib/fhir_dstu2_models/examples/json/name-use-map-v3.json +113 -0
- data/lib/fhir_dstu2_models/examples/json/namingsystem-example-id.json +61 -0
- data/lib/fhir_dstu2_models/examples/json/namingsystem-example-replaced.json +23 -0
- data/lib/fhir_dstu2_models/examples/json/namingsystem-example.json +37 -0
- data/lib/fhir_dstu2_models/examples/json/namingsystem-questionnaire.json +737 -0
- data/lib/fhir_dstu2_models/examples/json/namingsystem-registry.json +2362 -0
- data/lib/fhir_dstu2_models/examples/json/nutritionorder-example-cardiacdiet.json +145 -0
- data/lib/fhir_dstu2_models/examples/json/nutritionorder-example-diabeticdiet.json +122 -0
- data/lib/fhir_dstu2_models/examples/json/nutritionorder-example-diabeticsupplement.json +109 -0
- data/lib/fhir_dstu2_models/examples/json/nutritionorder-example-energysupplement.json +104 -0
- data/lib/fhir_dstu2_models/examples/json/nutritionorder-example-enteralbolus.json +136 -0
- data/lib/fhir_dstu2_models/examples/json/nutritionorder-example-enteralcontinuous.json +118 -0
- data/lib/fhir_dstu2_models/examples/json/nutritionorder-example-fiberrestricteddiet.json +139 -0
- data/lib/fhir_dstu2_models/examples/json/nutritionorder-example-infantenteral.json +104 -0
- data/lib/fhir_dstu2_models/examples/json/nutritionorder-example-proteinsupplement.json +77 -0
- data/lib/fhir_dstu2_models/examples/json/nutritionorder-example-pureeddiet-simple.json +119 -0
- data/lib/fhir_dstu2_models/examples/json/nutritionorder-example-pureeddiet.json +131 -0
- data/lib/fhir_dstu2_models/examples/json/nutritionorder-example-renaldiet.json +152 -0
- data/lib/fhir_dstu2_models/examples/json/nutritionorder-example-texture-modified.json +88 -0
- data/lib/fhir_dstu2_models/examples/json/nutritionorder-questionnaire.json +1790 -0
- data/lib/fhir_dstu2_models/examples/json/obs-genetics-example1-somatic.json +185 -0
- data/lib/fhir_dstu2_models/examples/json/obs-genetics-example2-germline.json +142 -0
- data/lib/fhir_dstu2_models/examples/json/obs-genetics-example3-mutationlist-1.json +68 -0
- data/lib/fhir_dstu2_models/examples/json/obs-genetics-example3-mutationlist-2.json +76 -0
- data/lib/fhir_dstu2_models/examples/json/obs-genetics-example3-mutationlist-3.json +72 -0
- data/lib/fhir_dstu2_models/examples/json/obs-genetics-example3-mutationlist-4.json +72 -0
- data/lib/fhir_dstu2_models/examples/json/obs-genetics-example3-mutationlist.json +86 -0
- data/lib/fhir_dstu2_models/examples/json/observation-example-bloodpressure-cancel.json +136 -0
- data/lib/fhir_dstu2_models/examples/json/observation-example-bloodpressure.json +122 -0
- data/lib/fhir_dstu2_models/examples/json/observation-example-f001-glucose.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/observation-example-f002-excess.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/observation-example-f003-co2.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/observation-example-f004-erythrocyte.json +89 -0
- data/lib/fhir_dstu2_models/examples/json/observation-example-f005-hemoglobin.json +74 -0
- data/lib/fhir_dstu2_models/examples/json/observation-example-f202-temperature.json +104 -0
- data/lib/fhir_dstu2_models/examples/json/observation-example-f203-bicarbonate.json +111 -0
- data/lib/fhir_dstu2_models/examples/json/observation-example-f204-creatinine.json +103 -0
- data/lib/fhir_dstu2_models/examples/json/observation-example-f205-egfr.json +163 -0
- data/lib/fhir_dstu2_models/examples/json/observation-example-f206-staphylococcus.json +69 -0
- data/lib/fhir_dstu2_models/examples/json/observation-example-glasgow-qa.json +99 -0
- data/lib/fhir_dstu2_models/examples/json/observation-example-glasgow.json +274 -0
- data/lib/fhir_dstu2_models/examples/json/observation-example-sample-data.json +187 -0
- data/lib/fhir_dstu2_models/examples/json/observation-example-satO2.json +67 -0
- data/lib/fhir_dstu2_models/examples/json/observation-example-unsat.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/observation-example.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/observation-genetics-cg-prf-1a-Observation-amino-acid-change.json +11 -0
- data/lib/fhir_dstu2_models/examples/json/observation-genetics-cg-prf-1a-Observation-assessed-condition.json +11 -0
- data/lib/fhir_dstu2_models/examples/json/observation-genetics-cg-prf-1a-Observation-chromosome-genomicstart.json +11 -0
- data/lib/fhir_dstu2_models/examples/json/observation-genetics-cg-prf-1a-Observation-condition-gene-dnavariant.json +11 -0
- data/lib/fhir_dstu2_models/examples/json/observation-genetics-cg-prf-1a-Observation-condition-gene.json +11 -0
- data/lib/fhir_dstu2_models/examples/json/observation-genetics-cg-prf-1a-Observation-dna-variant.json +11 -0
- data/lib/fhir_dstu2_models/examples/json/observation-genetics-cg-prf-1a-Observation-gene-amino-acid-change.json +11 -0
- data/lib/fhir_dstu2_models/examples/json/observation-genetics-cg-prf-1a-Observation-gene-dnavariant.json +11 -0
- data/lib/fhir_dstu2_models/examples/json/observation-genetics-cg-prf-1a-Observation-gene-identifier.json +11 -0
- data/lib/fhir_dstu2_models/examples/json/observation-questionnaire.json +2268 -0
- data/lib/fhir_dstu2_models/examples/json/observation-relationshiptypes-map-v3.json +102 -0
- data/lib/fhir_dstu2_models/examples/json/operation-composition-document.json +46 -0
- data/lib/fhir_dstu2_models/examples/json/operation-conceptmap-closure.json +66 -0
- data/lib/fhir_dstu2_models/examples/json/operation-conceptmap-translate.json +184 -0
- data/lib/fhir_dstu2_models/examples/json/operation-encounter-everything.json +43 -0
- data/lib/fhir_dstu2_models/examples/json/operation-list-find.json +54 -0
- data/lib/fhir_dstu2_models/examples/json/operation-messageheader-process-message.json +67 -0
- data/lib/fhir_dstu2_models/examples/json/operation-patient-everything.json +62 -0
- data/lib/fhir_dstu2_models/examples/json/operation-questionnaire-populate.json +97 -0
- data/lib/fhir_dstu2_models/examples/json/operation-resource-meta-add.json +51 -0
- data/lib/fhir_dstu2_models/examples/json/operation-resource-meta-delete.json +51 -0
- data/lib/fhir_dstu2_models/examples/json/operation-resource-meta.json +46 -0
- data/lib/fhir_dstu2_models/examples/json/operation-resource-validate.json +76 -0
- data/lib/fhir_dstu2_models/examples/json/operation-structuredefinition-questionnaire.json +78 -0
- data/lib/fhir_dstu2_models/examples/json/operation-valueset-expand.json +110 -0
- data/lib/fhir_dstu2_models/examples/json/operation-valueset-lookup.json +143 -0
- data/lib/fhir_dstu2_models/examples/json/operation-valueset-validate-code.json +149 -0
- data/lib/fhir_dstu2_models/examples/json/operationdefinition-example.json +55 -0
- data/lib/fhir_dstu2_models/examples/json/operationdefinition-questionnaire.json +1127 -0
- data/lib/fhir_dstu2_models/examples/json/operationoutcome-example-allok.json +17 -0
- data/lib/fhir_dstu2_models/examples/json/operationoutcome-example-break-the-glass.json +32 -0
- data/lib/fhir_dstu2_models/examples/json/operationoutcome-example-exception.json +17 -0
- data/lib/fhir_dstu2_models/examples/json/operationoutcome-example-searchfail.json +20 -0
- data/lib/fhir_dstu2_models/examples/json/operationoutcome-example-validationfail.json +20 -0
- data/lib/fhir_dstu2_models/examples/json/operationoutcome-example.json +21 -0
- data/lib/fhir_dstu2_models/examples/json/operationoutcome-questionnaire.json +349 -0
- data/lib/fhir_dstu2_models/examples/json/order-example-f201-physiotherapy.json +42 -0
- data/lib/fhir_dstu2_models/examples/json/order-example.json +36 -0
- data/lib/fhir_dstu2_models/examples/json/order-questionnaire.json +877 -0
- data/lib/fhir_dstu2_models/examples/json/orderresponse-example.json +35 -0
- data/lib/fhir_dstu2_models/examples/json/orderresponse-questionnaire.json +458 -0
- data/lib/fhir_dstu2_models/examples/json/organization-example-f001-burgers.json +106 -0
- data/lib/fhir_dstu2_models/examples/json/organization-example-f002-burgers-card.json +69 -0
- data/lib/fhir_dstu2_models/examples/json/organization-example-f003-burgers-ENT.json +69 -0
- data/lib/fhir_dstu2_models/examples/json/organization-example-f201-aumc.json +123 -0
- data/lib/fhir_dstu2_models/examples/json/organization-example-f203-bumc.json +78 -0
- data/lib/fhir_dstu2_models/examples/json/organization-example-gastro.json +34 -0
- data/lib/fhir_dstu2_models/examples/json/organization-example-good-health-care.json +15 -0
- data/lib/fhir_dstu2_models/examples/json/organization-example-insurer.json +15 -0
- data/lib/fhir_dstu2_models/examples/json/organization-example-lab.json +30 -0
- data/lib/fhir_dstu2_models/examples/json/organization-example.json +43 -0
- data/lib/fhir_dstu2_models/examples/json/organization-extensions-Organization-alias.json +12 -0
- data/lib/fhir_dstu2_models/examples/json/organization-questionnaire.json +653 -0
- data/lib/fhir_dstu2_models/examples/json/parameters-example.json +18 -0
- data/lib/fhir_dstu2_models/examples/json/patient-example-a.json +72 -0
- data/lib/fhir_dstu2_models/examples/json/patient-example-animal.json +106 -0
- data/lib/fhir_dstu2_models/examples/json/patient-example-b.json +71 -0
- data/lib/fhir_dstu2_models/examples/json/patient-example-c.json +42 -0
- data/lib/fhir_dstu2_models/examples/json/patient-example-d.json +42 -0
- data/lib/fhir_dstu2_models/examples/json/patient-example-dicom.json +60 -0
- data/lib/fhir_dstu2_models/examples/json/patient-example-f001-pieter.json +136 -0
- data/lib/fhir_dstu2_models/examples/json/patient-example-f201-roel.json +205 -0
- data/lib/fhir_dstu2_models/examples/json/patient-example-ihe-pcd.json +33 -0
- data/lib/fhir_dstu2_models/examples/json/patient-example-proband.json +44 -0
- data/lib/fhir_dstu2_models/examples/json/patient-example-us-extensions.json +83 -0
- data/lib/fhir_dstu2_models/examples/json/patient-example-xcda.json +40 -0
- data/lib/fhir_dstu2_models/examples/json/patient-example-xds.json +50 -0
- data/lib/fhir_dstu2_models/examples/json/patient-example.json +154 -0
- data/lib/fhir_dstu2_models/examples/json/patient-examples-general.json +736 -0
- data/lib/fhir_dstu2_models/examples/json/patient-extensions-Patient-age.json +12 -0
- data/lib/fhir_dstu2_models/examples/json/patient-extensions-Patient-birthOrderBoolean.json +12 -0
- data/lib/fhir_dstu2_models/examples/json/patient-extensions-Patient-city.json +12 -0
- data/lib/fhir_dstu2_models/examples/json/patient-extensions-Patient-country.json +12 -0
- data/lib/fhir_dstu2_models/examples/json/patient-extensions-Patient-mothersMaidenName.json +11 -0
- data/lib/fhir_dstu2_models/examples/json/patient-extensions-Patient-postalCode.json +12 -0
- data/lib/fhir_dstu2_models/examples/json/patient-extensions-Patient-state.json +12 -0
- data/lib/fhir_dstu2_models/examples/json/patient-glossy-example.json +54 -0
- data/lib/fhir_dstu2_models/examples/json/patient-mpi-search.json +56 -0
- data/lib/fhir_dstu2_models/examples/json/patient-questionnaire.json +1482 -0
- data/lib/fhir_dstu2_models/examples/json/paymentnotice-example.json +25 -0
- data/lib/fhir_dstu2_models/examples/json/paymentnotice-questionnaire.json +443 -0
- data/lib/fhir_dstu2_models/examples/json/paymentreconciliation-example.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/paymentreconciliation-questionnaire.json +939 -0
- data/lib/fhir_dstu2_models/examples/json/person-example-f002-ariadne.json +56 -0
- data/lib/fhir_dstu2_models/examples/json/person-example.json +99 -0
- data/lib/fhir_dstu2_models/examples/json/person-grahame.json +88 -0
- data/lib/fhir_dstu2_models/examples/json/person-patient-portal.json +84 -0
- data/lib/fhir_dstu2_models/examples/json/person-provider-directory.json +74 -0
- data/lib/fhir_dstu2_models/examples/json/person-questionnaire.json +704 -0
- data/lib/fhir_dstu2_models/examples/json/practitioner-example-f001-evdb.json +115 -0
- data/lib/fhir_dstu2_models/examples/json/practitioner-example-f002-pv.json +115 -0
- data/lib/fhir_dstu2_models/examples/json/practitioner-example-f003-mv.json +131 -0
- data/lib/fhir_dstu2_models/examples/json/practitioner-example-f004-rb.json +132 -0
- data/lib/fhir_dstu2_models/examples/json/practitioner-example-f005-al.json +147 -0
- data/lib/fhir_dstu2_models/examples/json/practitioner-example-f006-rvdb.json +115 -0
- data/lib/fhir_dstu2_models/examples/json/practitioner-example-f007-sh.json +115 -0
- data/lib/fhir_dstu2_models/examples/json/practitioner-example-f201-ab.json +127 -0
- data/lib/fhir_dstu2_models/examples/json/practitioner-example-f202-lm.json +125 -0
- data/lib/fhir_dstu2_models/examples/json/practitioner-example-f203-jvg.json +115 -0
- data/lib/fhir_dstu2_models/examples/json/practitioner-example-f204-ce.json +81 -0
- data/lib/fhir_dstu2_models/examples/json/practitioner-example-xcda-author.json +19 -0
- data/lib/fhir_dstu2_models/examples/json/practitioner-example-xcda1.json +44 -0
- data/lib/fhir_dstu2_models/examples/json/practitioner-example.json +78 -0
- data/lib/fhir_dstu2_models/examples/json/practitioner-examples-general.json +3490 -0
- data/lib/fhir_dstu2_models/examples/json/practitioner-questionnaire.json +906 -0
- data/lib/fhir_dstu2_models/examples/json/procedure-example-biopsy.json +56 -0
- data/lib/fhir_dstu2_models/examples/json/procedure-example-f001-heart.json +80 -0
- data/lib/fhir_dstu2_models/examples/json/procedure-example-f002-lung.json +80 -0
- data/lib/fhir_dstu2_models/examples/json/procedure-example-f003-abscess.json +80 -0
- data/lib/fhir_dstu2_models/examples/json/procedure-example-f004-tracheotomy.json +80 -0
- data/lib/fhir_dstu2_models/examples/json/procedure-example-f201-tpf.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/procedure-example-implant.json +59 -0
- data/lib/fhir_dstu2_models/examples/json/procedure-example.json +44 -0
- data/lib/fhir_dstu2_models/examples/json/procedure-questionnaire.json +1520 -0
- data/lib/fhir_dstu2_models/examples/json/procedure-status-map-v3.json +80 -0
- data/lib/fhir_dstu2_models/examples/json/procedurerequest-example.json +23 -0
- data/lib/fhir_dstu2_models/examples/json/procedurerequest-questionnaire.json +1125 -0
- data/lib/fhir_dstu2_models/examples/json/processrequest-example-poll-eob.json +19 -0
- data/lib/fhir_dstu2_models/examples/json/processrequest-example-poll-exclusive.json +23 -0
- data/lib/fhir_dstu2_models/examples/json/processrequest-example-poll-inclusive.json +22 -0
- data/lib/fhir_dstu2_models/examples/json/processrequest-example-poll-payrec.json +26 -0
- data/lib/fhir_dstu2_models/examples/json/processrequest-example-poll-specific.json +22 -0
- data/lib/fhir_dstu2_models/examples/json/processrequest-example-reprocess.json +28 -0
- data/lib/fhir_dstu2_models/examples/json/processrequest-example-reverse.json +23 -0
- data/lib/fhir_dstu2_models/examples/json/processrequest-example-status.json +25 -0
- data/lib/fhir_dstu2_models/examples/json/processrequest-example.json +19 -0
- data/lib/fhir_dstu2_models/examples/json/processrequest-questionnaire.json +657 -0
- data/lib/fhir_dstu2_models/examples/json/processresponse-example.json +29 -0
- data/lib/fhir_dstu2_models/examples/json/processresponse-questionnaire.json +595 -0
- data/lib/fhir_dstu2_models/examples/json/provenance-example-sig.json +78 -0
- data/lib/fhir_dstu2_models/examples/json/provenance-example.json +103 -0
- data/lib/fhir_dstu2_models/examples/json/provenance-questionnaire.json +976 -0
- data/lib/fhir_dstu2_models/examples/json/questionnaire-example-bluebook.json +109 -0
- data/lib/fhir_dstu2_models/examples/json/questionnaire-example-f201-lifelines.json +86 -0
- data/lib/fhir_dstu2_models/examples/json/questionnaire-example-gcs.json +200 -0
- data/lib/fhir_dstu2_models/examples/json/questionnaire-example.json +205 -0
- data/lib/fhir_dstu2_models/examples/json/questionnaire-extensions-Questionnaire-category.json +12 -0
- data/lib/fhir_dstu2_models/examples/json/questionnaire-extensions-Questionnaire-deReference.json +12 -0
- data/lib/fhir_dstu2_models/examples/json/questionnaire-questionnaire.json +847 -0
- data/lib/fhir_dstu2_models/examples/json/questionnaireresponse-example-bluebook.json +164 -0
- data/lib/fhir_dstu2_models/examples/json/questionnaireresponse-example-f201-lifelines.json +123 -0
- data/lib/fhir_dstu2_models/examples/json/questionnaireresponse-example-gcs.json +122 -0
- data/lib/fhir_dstu2_models/examples/json/questionnaireresponse-example.json +153 -0
- data/lib/fhir_dstu2_models/examples/json/questionnaireresponse-questionnaire.json +1345 -0
- data/lib/fhir_dstu2_models/examples/json/referralrequest-example.json +82 -0
- data/lib/fhir_dstu2_models/examples/json/referralrequest-questionnaire.json +800 -0
- data/lib/fhir_dstu2_models/examples/json/relatedperson-example-f001-sarah.json +53 -0
- data/lib/fhir_dstu2_models/examples/json/relatedperson-example-f002-ariadne.json +61 -0
- data/lib/fhir_dstu2_models/examples/json/relatedperson-example-peter.json +57 -0
- data/lib/fhir_dstu2_models/examples/json/relatedperson-example.json +79 -0
- data/lib/fhir_dstu2_models/examples/json/relatedperson-questionnaire.json +500 -0
- data/lib/fhir_dstu2_models/examples/json/riskassessment-example-cardiac.json +45 -0
- data/lib/fhir_dstu2_models/examples/json/riskassessment-example-population.json +8 -0
- data/lib/fhir_dstu2_models/examples/json/riskassessment-example-prognosis.json +35 -0
- data/lib/fhir_dstu2_models/examples/json/riskassessment-example.json +177 -0
- data/lib/fhir_dstu2_models/examples/json/riskassessment-questionnaire.json +945 -0
- data/lib/fhir_dstu2_models/examples/json/schedule-example.json +34 -0
- data/lib/fhir_dstu2_models/examples/json/schedule-questionnaire.json +500 -0
- data/lib/fhir_dstu2_models/examples/json/searchparameter-example-extension.json +30 -0
- data/lib/fhir_dstu2_models/examples/json/searchparameter-example.json +40 -0
- data/lib/fhir_dstu2_models/examples/json/searchparameter-questionnaire.json +621 -0
- data/lib/fhir_dstu2_models/examples/json/shareablevalueset-questionnaire.json +2194 -0
- data/lib/fhir_dstu2_models/examples/json/slot-example-busy.json +30 -0
- data/lib/fhir_dstu2_models/examples/json/slot-example-tentative.json +23 -0
- data/lib/fhir_dstu2_models/examples/json/slot-example-unavailable.json +23 -0
- data/lib/fhir_dstu2_models/examples/json/slot-example.json +23 -0
- data/lib/fhir_dstu2_models/examples/json/slot-questionnaire.json +379 -0
- data/lib/fhir_dstu2_models/examples/json/specimen-example-isolate.json +121 -0
- data/lib/fhir_dstu2_models/examples/json/specimen-example-urine.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/specimen-example.json +136 -0
- data/lib/fhir_dstu2_models/examples/json/specimen-questionnaire.json +1339 -0
- data/lib/fhir_dstu2_models/examples/json/structuredefinition-example.json +522 -0
- data/lib/fhir_dstu2_models/examples/json/structuredefinition-questionnaire.json +1117 -0
- data/lib/fhir_dstu2_models/examples/json/subscription-example-error.json +36 -0
- data/lib/fhir_dstu2_models/examples/json/subscription-example.json +30 -0
- data/lib/fhir_dstu2_models/examples/json/subscription-questionnaire.json +499 -0
- data/lib/fhir_dstu2_models/examples/json/substance-example-amoxicillin-clavulanate.json +97 -0
- data/lib/fhir_dstu2_models/examples/json/substance-example-f201-dust.json +17 -0
- data/lib/fhir_dstu2_models/examples/json/substance-example-f202-staphylococcus.json +17 -0
- data/lib/fhir_dstu2_models/examples/json/substance-example-f203-potassium.json +34 -0
- data/lib/fhir_dstu2_models/examples/json/substance-example-silver-nitrate-product.json +50 -0
- data/lib/fhir_dstu2_models/examples/json/substance-example.json +31 -0
- data/lib/fhir_dstu2_models/examples/json/substance-questionnaire.json +594 -0
- data/lib/fhir_dstu2_models/examples/json/supplydelivery-example.json +8 -0
- data/lib/fhir_dstu2_models/examples/json/supplydelivery-questionnaire.json +610 -0
- data/lib/fhir_dstu2_models/examples/json/supplyrequest-example.json +8 -0
- data/lib/fhir_dstu2_models/examples/json/supplyrequest-questionnaire.json +837 -0
- data/lib/fhir_dstu2_models/examples/json/testscript-example-multiserver.json +340 -0
- data/lib/fhir_dstu2_models/examples/json/testscript-example.json +184 -0
- data/lib/fhir_dstu2_models/examples/json/testscript-history.json +124 -0
- data/lib/fhir_dstu2_models/examples/json/testscript-readtest.json +165 -0
- data/lib/fhir_dstu2_models/examples/json/testscript-search.json +294 -0
- data/lib/fhir_dstu2_models/examples/json/testscript-update.json +118 -0
- data/lib/fhir_dstu2_models/examples/json/triglyceride-questionnaire.json +1993 -0
- data/lib/fhir_dstu2_models/examples/json/us-core-Patient-ethnicity.json +12 -0
- data/lib/fhir_dstu2_models/examples/json/us-core-Patient-race.json +12 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-account-status.json +65 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-actionlist.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-activity-reason.json +58 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-additionalmaterials.json +82 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-address-type.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-address-use.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-adjudication-error.json +60 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-adjudication.json +72 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-adjustment-reason.json +60 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-administrative-gender.json +99 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-age-units.json +111 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-allergy-intolerance-category.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-allergy-intolerance-criticality.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-allergy-intolerance-status.json +94 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-allergy-intolerance-type.json +65 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-allergyintolerance-substance-code.json +67 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-animal-breeds.json +90 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-animal-genderstatus.json +83 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-animal-species.json +65 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-answer-format.json +130 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-appointmentstatus.json +90 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-approach-site-codes.json +58 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-assert-direction-codes.json +65 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-assert-operator-codes.json +105 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-assert-response-code-types.json +115 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-audit-event-action.json +80 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-audit-event-outcome.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-audit-event-sub-type.json +127 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-audit-event-type.json +114 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-audit-source-type.json +99 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-basic-resource-type.json +130 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-binding-strength.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-body-site.json +53 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-bodysite-laterality.json +63 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-bodysite-relative-location.json +99 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-bundle-type.json +100 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-c80-doc-classcodes.json +236 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-c80-facilitycodes.json +372 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-c80-practice-codes.json +524 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-care-plan-activity-category.json +94 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-care-plan-activity-status.json +85 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-care-plan-activity.json +62 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-care-plan-category.json +58 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-care-plan-relationship.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-care-plan-status.json +80 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-choice-list-orientation.json +65 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-claim-exception.json +71 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-claim-modifiers.json +101 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-claim-type-link.json +80 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-claim-use-link.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-classification-or-context.json +65 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-clinical-findings.json +53 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-clinical-impression-status.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-communication-request-status.json +105 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-communication-status.json +80 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-composition-attestation-mode.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-composition-status.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-concept-map-equivalence.json +104 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-condition-category.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-condition-cause.json +46 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-condition-clinical.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-condition-code.json +58 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-condition-outcome.json +58 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-condition-predecessor.json +46 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-condition-severity.json +60 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-condition-stage.json +58 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-condition-state.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-condition-ver-status.json +85 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-conditional-delete-status.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-conformance-expectation.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-conformance-resource-status.json +100 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-conformance-statement-kind.json +76 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-consistency-type.json +67 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-constraint-severity.json +65 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-contact-point-system.json +80 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-contact-point-use.json +80 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-contactentity-type.json +80 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-content-type.json +65 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-contract-action.json +57 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-contract-actorrole.json +59 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-contract-signer-type.json +136 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-contract-subtype.json +57 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-contract-term-subtype.json +60 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-contract-term-type.json +57 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-contract-type.json +57 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-cpt-all.json +22 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-data-absent-reason.json +120 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-data-types.json +285 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-dataelement-sdcobjectclass.json +57 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-dataelement-sdcobjectclassproperty.json +57 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-dataelement-stringency.json +89 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-days-of-week.json +90 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-defined-types.json +52 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-designation-use.json +66 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-detectedissue-category.json +62 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-detectedissue-mitigation-action.json +52 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-detectedissue-severity.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-device-action.json +68 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-device-use-request-priority.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-device-use-request-status.json +105 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-devicestatus.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-diagnostic-order-event.json +57 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-diagnostic-order-priority.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-diagnostic-order-status.json +120 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-diagnostic-report-status.json +90 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-diagnostic-requests.json +66 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-diagnostic-service-sections.json +50 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-dicm-402-roleid.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-dicm-405-mediatype.json +82 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-dicom-cid29.json +198 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-diet-type.json +58 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-digital-media-subtype.json +116 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-digital-media-type.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-doc-classcodes.json +180 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-doc-section-codes.json +219 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-doc-typecodes.json +53 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-document-mode.json +65 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-document-reference-status.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-document-relationship-type.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-encounter-admit-source.json +90 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-encounter-class.json +100 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-encounter-diet.json +85 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-encounter-discharge-disposition.json +86 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-encounter-location-status.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-encounter-participant-type.json +98 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-encounter-priority.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-encounter-reason.json +63 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-encounter-special-arrangements.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-encounter-special-courtesy.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-encounter-state.json +85 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-encounter-type.json +66 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-enteral-route.json +74 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-entformula-additive.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-entformula-type.json +193 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-episode-of-care-status.json +85 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-event-timing.json +177 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-example-expansion.json +177 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-example-inline.json +124 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-example-intensional.json +89 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-example-yesnodontknow.json +49 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-example.json +102 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-extension-context.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-extensions-ValueSet-author.json +12 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-extensions-ValueSet-effective.json +12 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-extensions-ValueSet-end.json +12 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-extensions-ValueSet-keyword.json +12 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-extensions-ValueSet-workflow.json +12 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-filter-operator.json +85 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-flag-category.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-flag-code.json +58 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-flag-priority.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-flag-status.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-fm-conditions.json +61 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-focal-subject.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-food-type.json +58 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-formatcodes.json +368 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-forms.json +60 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-fundsreserve.json +60 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-goal-acceptance-status.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-goal-category.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-goal-priority.json +65 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-goal-relationship-type.json +80 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-goal-start-event.json +64 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-goal-status-reason.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-goal-status.json +100 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-group-type.json +85 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-guide-dependency-type.json +65 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-guide-page-kind.json +97 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-guide-resource-purpose.json +85 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-history-status.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-http-verb.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-icd-10.json +76 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-identifier-type.json +126 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-identifier-use.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-identity-assuranceLevel.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-immunization-reason.json +54 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-immunization-recommendation-date-criterion.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-immunization-recommendation-status.json +60 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-immunization-route.json +56 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-immunization-site.json +55 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-instance-availability.json +88 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-intervention.json +71 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-investigation-sets.json +59 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-issue-severity.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-issue-type.json +208 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-kos-title.json +277 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-ldlcholesterol-codes.json +84 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-link-type.json +88 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-list-empty-reason.json +92 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-list-example-codes.json +95 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-list-item-flag.json +81 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-list-mode.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-list-order.json +90 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-list-status.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-location-mode.json +65 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-location-physical-type.json +110 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-location-status.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-manifestation-codes.json +58 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-manifestation-or-symptom.json +58 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-marital-status.json +104 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-measurement-principle.json +110 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-media-view.json +58 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-medication-admin-status.json +80 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-medication-codes.json +58 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-medication-dispense-status.json +80 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-medication-form-codes.json +58 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-medication-order-status.json +85 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-medication-package-form-codes.json +58 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-medication-statement-status.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-message-conformance-event-mode.json +65 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-message-events.json +105 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-message-reason-encounter.json +80 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-message-significance-category.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-message-transport.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-metric-calibration-state.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-metric-calibration-type.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-metric-category.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-metric-color.json +95 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-metric-operational-status.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-missing-tooth-reason.json +91 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-modified-foodtype.json +104 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-name-part-qualifier.json +161 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-name-use.json +90 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-namingsystem-identifier-type.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-namingsystem-type.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-narrative-status.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-network-type.json +80 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-nhin-purposeofuse.json +419 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-no-immunization-reason.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-note-type.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-nutrient-code.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-nutrition-order-status.json +95 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-object-lifecycle.json +130 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-object-role.json +175 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-object-type.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-observation-category.json +90 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-observation-codes.json +51 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-observation-interpretation.json +45 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-observation-methods.json +56 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-observation-relationshiptypes.json +85 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-observation-status.json +90 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-observation-valueabsentreason.json +50 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-operation-kind.json +65 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-operation-outcome.json +1464 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-operation-parameter-type.json +49 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-operation-parameter-use.json +65 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-oral-prosthodontic-material.json +91 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-order-status.json +102 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-organization-type.json +108 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-parent-relationship-codes.json +62 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-participant-role.json +92 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-participantrequired.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-participantstatus.json +85 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-participationstatus.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-patient-contact-relationship.json +101 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-patient-mpi-match.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-payeetype.json +60 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-payment-status.json +60 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-payment-type.json +60 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-performer-role.json +56 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-postal-address-use.json +131 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-practitioner-role.json +74 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-practitioner-specialty.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-probability-distribution-type.json +141 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-procedure-category.json +81 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-procedure-code.json +53 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-procedure-followup.json +105 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-procedure-not-performed-reason.json +123 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-procedure-outcome.json +57 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-procedure-progress-status-codes.json +78 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-procedure-reason.json +63 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-procedure-relationship-type.json +65 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-procedure-request-priority.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-procedure-request-status.json +105 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-procedure-status.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-process-outcome.json +60 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-process-priority.json +66 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-profile-code.json +49 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-property-representation.json +60 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-provenance-agent-role.json +147 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-provenance-agent-type.json +93 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-provenance-entity-role.json +77 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-quantity-comparator.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-question-max-occurs.json +60 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-questionnaire-answers-status.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-questionnaire-answers.json +49 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-questionnaire-category.json +68 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-questionnaire-question-control.json +90 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-questionnaire-questions.json +49 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-questionnaire-status.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-questionnaire.json +2194 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-reaction-event-certainty.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-reaction-event-severity.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-reason-medication-given-codes.json +65 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-reason-medication-not-given-codes.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-referencerange-meaning.json +151 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-referralstatus.json +90 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-relatedperson-relationshiptype.json +55 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-relationship.json +66 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-remittance-outcome.json +65 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-report-codes.json +46 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-resource-aggregation-mode.json +72 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-resource-slicing-rules.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-resource-types.json +535 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-resource-validation-mode.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-response-code.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-restful-conformance-mode.json +65 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-restful-interaction.json +105 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-restful-security-service.json +85 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-risk-probability.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-route-codes.json +58 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-ruleset.json +69 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-search-entry-mode.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-search-modifier-code.json +105 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-search-param-type.json +95 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-search-xpath-usage.json +80 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-security-labels.json +48 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-service-pharmacy.json +61 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-service-product.json +61 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-service-provision-conditions.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-service-referral-method.json +80 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-service-uscls.json +146 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-signature-type.json +136 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-slotstatus.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-special-values.json +97 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-specimen-collection-method.json +103 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-specimen-collection-priority.json +76 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-specimen-container-type.json +53 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-specimen-status.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-specimen-treatment-procedure.json +45 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-structure-definition-kind.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-subscription-channel-type.json +80 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-subscription-status.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-subscription-tag.json +65 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-substance-category.json +85 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-substance-code.json +63 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-supplement-type.json +229 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-supplydelivery-status.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-supplydelivery-type.json +60 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-supplyrequest-kind.json +60 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-supplyrequest-reason.json +65 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-supplyrequest-status.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-supplyrequest-when.json +58 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-surface.json +106 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-system-restful-interaction.json +60 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-teeth.json +211 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-template-status-code.json +131 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-testscript-operation-codes.json +170 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-texture-code.json +110 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-timing-abbreviation.json +134 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-tooth.json +254 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-transaction-mode.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-type-restful-interaction.json +78 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-udi.json +56 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-units-of-time.json +115 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-unknown-content-code.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-use-context.json +65 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-usps-state.json +293 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-vaccination-protocol-dose-status-reason.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-vaccination-protocol-dose-status.json +58 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-vaccination-protocol-dose-target.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-vaccine-code.json +58 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-versioning-policy.json +70 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-vision-base-codes.json +75 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-vision-eye-codes.json +65 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-vision-product.json +57 -0
- data/lib/fhir_dstu2_models/examples/json/valueset-xds-relationship-type.json +80 -0
- data/lib/fhir_dstu2_models/examples/json/visionprescription-example-1.json +65 -0
- data/lib/fhir_dstu2_models/examples/json/visionprescription-example.json +47 -0
- data/lib/fhir_dstu2_models/examples/json/visionprescription-questionnaire.json +863 -0
- data/lib/fhir_dstu2_models/examples/json/xds-example.json +252 -0
- data/lib/fhir_dstu2_models/examples/json/xdsdocumentmanifest-questionnaire.json +896 -0
- data/lib/fhir_dstu2_models/examples/json/xdsdocumentreference-questionnaire.json +1251 -0
- data/lib/fhir_dstu2_models/examples/xml/account-example(example).xml +10 -0
- data/lib/fhir_dstu2_models/examples/xml/allergyintolerance-example(allergyintolerance-example).xml +97 -0
- data/lib/fhir_dstu2_models/examples/xml/allergyintolerance-example(example).xml +96 -0
- data/lib/fhir_dstu2_models/examples/xml/allergyintolerance-example-refuted(allergyintolerance-example-refuted).xml +53 -0
- data/lib/fhir_dstu2_models/examples/xml/allergyintolerance-fishallergy(fishallergy).xml +48 -0
- data/lib/fhir_dstu2_models/examples/xml/allergyintolerance-medication(medication).xml +39 -0
- data/lib/fhir_dstu2_models/examples/xml/appointment-example(example).xml +48 -0
- data/lib/fhir_dstu2_models/examples/xml/appointment-example-request(examplereq).xml +51 -0
- data/lib/fhir_dstu2_models/examples/xml/appointment-example2doctors(2docs).xml +50 -0
- data/lib/fhir_dstu2_models/examples/xml/appointmentresponse-example(example).xml +16 -0
- data/lib/fhir_dstu2_models/examples/xml/appointmentresponse-example-req(exampleresp).xml +28 -0
- data/lib/fhir_dstu2_models/examples/xml/audit-event-example-login(example-login).xml +41 -0
- data/lib/fhir_dstu2_models/examples/xml/audit-event-example-logout(example-logout).xml +41 -0
- data/lib/fhir_dstu2_models/examples/xml/audit-event-example-media(example-media).xml +114 -0
- data/lib/fhir_dstu2_models/examples/xml/audit-event-example-pixQuery(example-pixQuery).xml +93 -0
- data/lib/fhir_dstu2_models/examples/xml/audit-event-example-search(example-search).xml +53 -0
- data/lib/fhir_dstu2_models/examples/xml/audit-event-example-vread(example-rest).xml +52 -0
- data/lib/fhir_dstu2_models/examples/xml/auditevent-example(example).xml +73 -0
- data/lib/fhir_dstu2_models/examples/xml/auditevent-example-disclosure(example-disclosure).xml +146 -0
- data/lib/fhir_dstu2_models/examples/xml/basic-adverseevent-example(basic-adverseevent-example).xml +46 -0
- data/lib/fhir_dstu2_models/examples/xml/basic-example(referral).xml +60 -0
- data/lib/fhir_dstu2_models/examples/xml/basic-example-narrative(basic-example-narrative).xml +237 -0
- data/lib/fhir_dstu2_models/examples/xml/basic-example2(classModel).xml +46 -0
- data/lib/fhir_dstu2_models/examples/xml/binary-f006(f006).xml +5 -0
- data/lib/fhir_dstu2_models/examples/xml/bodysite-example(example).xml +52 -0
- data/lib/fhir_dstu2_models/examples/xml/bundle-example(bundle-example).xml +75 -0
- data/lib/fhir_dstu2_models/examples/xml/bundle-response(bundle-response).xml +136 -0
- data/lib/fhir_dstu2_models/examples/xml/bundle-transaction(bundle-transaction).xml +241 -0
- data/lib/fhir_dstu2_models/examples/xml/careplan-example(example).xml +123 -0
- data/lib/fhir_dstu2_models/examples/xml/careplan-example-GPVisit(gpvisit).xml +138 -0
- data/lib/fhir_dstu2_models/examples/xml/careplan-example-f001-heart(f001).xml +69 -0
- data/lib/fhir_dstu2_models/examples/xml/careplan-example-f002-lung(f002).xml +69 -0
- data/lib/fhir_dstu2_models/examples/xml/careplan-example-f003-pharynx(f003).xml +69 -0
- data/lib/fhir_dstu2_models/examples/xml/careplan-example-f201-renal(f201).xml +102 -0
- data/lib/fhir_dstu2_models/examples/xml/careplan-example-f202-malignancy(f202).xml +123 -0
- data/lib/fhir_dstu2_models/examples/xml/careplan-example-f203-sepsis(f203).xml +72 -0
- data/lib/fhir_dstu2_models/examples/xml/careplan-example-integrated(integrate).xml +516 -0
- data/lib/fhir_dstu2_models/examples/xml/careplan-example-pregnancy(preg).xml +228 -0
- data/lib/fhir_dstu2_models/examples/xml/claim-example(100150).xml +85 -0
- data/lib/fhir_dstu2_models/examples/xml/claim-example-institutional(960150).xml +85 -0
- data/lib/fhir_dstu2_models/examples/xml/claim-example-oral-average(100151).xml +187 -0
- data/lib/fhir_dstu2_models/examples/xml/claim-example-oral-contained(100152).xml +139 -0
- data/lib/fhir_dstu2_models/examples/xml/claim-example-oral-orthoplan(100153).xml +291 -0
- data/lib/fhir_dstu2_models/examples/xml/claim-example-pharmacy(760150).xml +85 -0
- data/lib/fhir_dstu2_models/examples/xml/claim-example-professional(860150).xml +85 -0
- data/lib/fhir_dstu2_models/examples/xml/claim-example-vision(660150).xml +85 -0
- data/lib/fhir_dstu2_models/examples/xml/claim-example-vision-glasses(660151).xml +153 -0
- data/lib/fhir_dstu2_models/examples/xml/claimresponse-example(R3500).xml +113 -0
- data/lib/fhir_dstu2_models/examples/xml/clinicalimpression-example(example).xml +46 -0
- data/lib/fhir_dstu2_models/examples/xml/communication-example(communication-example).xml +51 -0
- data/lib/fhir_dstu2_models/examples/xml/communication-example(example).xml +41 -0
- data/lib/fhir_dstu2_models/examples/xml/communicationrequest-example(communicationrequest-example).xml +30 -0
- data/lib/fhir_dstu2_models/examples/xml/communicationrequest-example(example).xml +13 -0
- data/lib/fhir_dstu2_models/examples/xml/composition-example(example).xml +167 -0
- data/lib/fhir_dstu2_models/examples/xml/conceptmap-example(101).xml +146 -0
- data/lib/fhir_dstu2_models/examples/xml/cond-uslab-example1(cond-uslab-example1).xml +26 -0
- data/lib/fhir_dstu2_models/examples/xml/cond-uslab-example2(cond-uslab-example2).xml +24 -0
- data/lib/fhir_dstu2_models/examples/xml/condition-example(condition-example).xml +57 -0
- data/lib/fhir_dstu2_models/examples/xml/condition-example(example).xml +48 -0
- data/lib/fhir_dstu2_models/examples/xml/condition-example-f001-heart(f001).xml +56 -0
- data/lib/fhir_dstu2_models/examples/xml/condition-example-f002-lung(f002).xml +64 -0
- data/lib/fhir_dstu2_models/examples/xml/condition-example-f003-abscess(f003).xml +55 -0
- data/lib/fhir_dstu2_models/examples/xml/condition-example-f201-fever(f201).xml +63 -0
- data/lib/fhir_dstu2_models/examples/xml/condition-example-f202-malignancy(f202).xml +56 -0
- data/lib/fhir_dstu2_models/examples/xml/condition-example-f203-sepsis(f203).xml +56 -0
- data/lib/fhir_dstu2_models/examples/xml/condition-example-f204-renal(f204).xml +60 -0
- data/lib/fhir_dstu2_models/examples/xml/condition-example-f205-infection(f205).xml +20 -0
- data/lib/fhir_dstu2_models/examples/xml/condition-example-stroke(stroke).xml +28 -0
- data/lib/fhir_dstu2_models/examples/xml/condition-example2(example2).xml +30 -0
- data/lib/fhir_dstu2_models/examples/xml/conformance-base2.xml +124 -0
- data/lib/fhir_dstu2_models/examples/xml/conformance-daf-query-requestor(conformance-daf-query-requestor).xml +2506 -0
- data/lib/fhir_dstu2_models/examples/xml/conformance-ehrs-rle(conformance-ehrs-rle).xml +312 -0
- data/lib/fhir_dstu2_models/examples/xml/conformance-example(example).xml +201 -0
- data/lib/fhir_dstu2_models/examples/xml/conformance-phr-example(phr).xml +120 -0
- data/lib/fhir_dstu2_models/examples/xml/conformance-sdc-de-curator(conformance-sdc-de-curator).xml +746 -0
- data/lib/fhir_dstu2_models/examples/xml/conformance-sdc-de-registry(conformance-sdc-de-registry).xml +1245 -0
- data/lib/fhir_dstu2_models/examples/xml/conformance-sdc-form-archiver(conformance-sdc-form-archiver).xml +749 -0
- data/lib/fhir_dstu2_models/examples/xml/conformance-sdc-form-designer(conformance-sdc-form-designer).xml +1064 -0
- data/lib/fhir_dstu2_models/examples/xml/conformance-sdc-form-filler(conformance-sdc-form-filler).xml +959 -0
- data/lib/fhir_dstu2_models/examples/xml/conformance-sdc-form-manager(conformance-sdc-form-manager).xml +1182 -0
- data/lib/fhir_dstu2_models/examples/xml/conformance-sdc-form-receiver(conformance-sdc-form-receiver).xml +519 -0
- data/lib/fhir_dstu2_models/examples/xml/conformance-terminology-server(conformance-terminology-server).xml +335 -0
- data/lib/fhir_dstu2_models/examples/xml/conformance-uslaborder-orderer(conformance-uslaborder-orderer).xml +179 -0
- data/lib/fhir_dstu2_models/examples/xml/conformance-uslaborder-receiver(conformance-uslaborder-receiver).xml +179 -0
- data/lib/fhir_dstu2_models/examples/xml/conformance-uslabreport-receiver(conformance-uslabreport-receiver).xml +179 -0
- data/lib/fhir_dstu2_models/examples/xml/conformance-uslabreport-sender(conformance-uslabreport-sender).xml +179 -0
- data/lib/fhir_dstu2_models/examples/xml/contract-example(C-123).xml +29 -0
- data/lib/fhir_dstu2_models/examples/xml/coverage-example(9876B1).xml +40 -0
- data/lib/fhir_dstu2_models/examples/xml/coverage-example-2(7546D).xml +38 -0
- data/lib/fhir_dstu2_models/examples/xml/dataelement-example(gender).xml +386 -0
- data/lib/fhir_dstu2_models/examples/xml/dataelement-labtestmaster-example(prothrombin).xml +56 -0
- data/lib/fhir_dstu2_models/examples/xml/dataelement-sdc-profile-example(dataelement-sdc-profile-example).xml +44 -0
- data/lib/fhir_dstu2_models/examples/xml/dataelement-sdc-profile-example-de(dataelement-sdc-profile-example-de).xml +256 -0
- data/lib/fhir_dstu2_models/examples/xml/detectedissue-example(ddi).xml +52 -0
- data/lib/fhir_dstu2_models/examples/xml/detectedissue-example-allergy(allergy).xml +10 -0
- data/lib/fhir_dstu2_models/examples/xml/detectedissue-example-dup(duplicate).xml +39 -0
- data/lib/fhir_dstu2_models/examples/xml/detectedissue-example-lab(lab).xml +10 -0
- data/lib/fhir_dstu2_models/examples/xml/device-example(example).xml +46 -0
- data/lib/fhir_dstu2_models/examples/xml/device-example-f001-feedingtube(f001).xml +18 -0
- data/lib/fhir_dstu2_models/examples/xml/device-example-ihe-pcd(ihe-pcd).xml +25 -0
- data/lib/fhir_dstu2_models/examples/xml/device-example-pacemaker(example-pacemaker).xml +24 -0
- data/lib/fhir_dstu2_models/examples/xml/device-example-software(software).xml +17 -0
- data/lib/fhir_dstu2_models/examples/xml/devicecomponent-example(example).xml +124 -0
- data/lib/fhir_dstu2_models/examples/xml/devicecomponent-example-prodspec(example-prodspec).xml +167 -0
- data/lib/fhir_dstu2_models/examples/xml/devicemetric-example(example).xml +22 -0
- data/lib/fhir_dstu2_models/examples/xml/deviceuserequest-example(deviceuserequest-example).xml +28 -0
- data/lib/fhir_dstu2_models/examples/xml/deviceuserequest-example(example).xml +17 -0
- data/lib/fhir_dstu2_models/examples/xml/deviceusestatement-example(example).xml +16 -0
- data/lib/fhir_dstu2_models/examples/xml/diagnosticorder-example(diagnosticorder-example).xml +56 -0
- data/lib/fhir_dstu2_models/examples/xml/diagnosticorder-example(example).xml +88 -0
- data/lib/fhir_dstu2_models/examples/xml/diagnosticorder-example-di(di).xml +40 -0
- data/lib/fhir_dstu2_models/examples/xml/diagnosticorder-example-ft4(ft4).xml +61 -0
- data/lib/fhir_dstu2_models/examples/xml/diagnosticreport-example(101).xml +790 -0
- data/lib/fhir_dstu2_models/examples/xml/diagnosticreport-example(diagnosticreport-example).xml +690 -0
- data/lib/fhir_dstu2_models/examples/xml/diagnosticreport-example-dxa(102).xml +405 -0
- data/lib/fhir_dstu2_models/examples/xml/diagnosticreport-example-f001-bloodexam(f001).xml +100 -0
- data/lib/fhir_dstu2_models/examples/xml/diagnosticreport-example-f201-brainct(f201).xml +45 -0
- data/lib/fhir_dstu2_models/examples/xml/diagnosticreport-example-f202-bloodculture(f202).xml +66 -0
- data/lib/fhir_dstu2_models/examples/xml/diagnosticreport-example-ghp(ghp).xml +2312 -0
- data/lib/fhir_dstu2_models/examples/xml/diagnosticreport-example-lipids(lipids).xml +214 -0
- data/lib/fhir_dstu2_models/examples/xml/diagnosticreport-example-ultrasound(ultrasound).xml +41 -0
- data/lib/fhir_dstu2_models/examples/xml/diagnosticreport-micro1(micro).xml +993 -0
- data/lib/fhir_dstu2_models/examples/xml/do-uslab-example1(do-uslab-example1).xml +90 -0
- data/lib/fhir_dstu2_models/examples/xml/document-example-dischargesummary(father).xml +503 -0
- data/lib/fhir_dstu2_models/examples/xml/documentmanifest-example(example).xml +71 -0
- data/lib/fhir_dstu2_models/examples/xml/documentreference-example(example).xml +142 -0
- data/lib/fhir_dstu2_models/examples/xml/eligibilityrequest-example(52345).xml +20 -0
- data/lib/fhir_dstu2_models/examples/xml/eligibilityresponse-example(E2500).xml +33 -0
- data/lib/fhir_dstu2_models/examples/xml/encounter-example(encounter-example).xml +44 -0
- data/lib/fhir_dstu2_models/examples/xml/encounter-example(example).xml +12 -0
- data/lib/fhir_dstu2_models/examples/xml/encounter-example-f001-heart(f001).xml +84 -0
- data/lib/fhir_dstu2_models/examples/xml/encounter-example-f002-lung(f002).xml +84 -0
- data/lib/fhir_dstu2_models/examples/xml/encounter-example-f003-abscess(f003).xml +86 -0
- data/lib/fhir_dstu2_models/examples/xml/encounter-example-f201-20130404(f201).xml +40 -0
- data/lib/fhir_dstu2_models/examples/xml/encounter-example-f202-20130128(f202).xml +55 -0
- data/lib/fhir_dstu2_models/examples/xml/encounter-example-f203-20130311(f203).xml +72 -0
- data/lib/fhir_dstu2_models/examples/xml/encounter-example-home(home).xml +45 -0
- data/lib/fhir_dstu2_models/examples/xml/encounter-example-xcda(xcda).xml +25 -0
- data/lib/fhir_dstu2_models/examples/xml/enrollmentrequest-example(22345).xml +30 -0
- data/lib/fhir_dstu2_models/examples/xml/enrollmentresponse-example(ER2500).xml +32 -0
- data/lib/fhir_dstu2_models/examples/xml/episodeofcare-example(example).xml +86 -0
- data/lib/fhir_dstu2_models/examples/xml/explanationofbenefit-example(R3500).xml +33 -0
- data/lib/fhir_dstu2_models/examples/xml/familymemberhistory-example(familymemberhistory-example).xml +51 -0
- data/lib/fhir_dstu2_models/examples/xml/familymemberhistory-example(father).xml +41 -0
- data/lib/fhir_dstu2_models/examples/xml/familymemberhistory-example-mother(mother).xml +36 -0
- data/lib/fhir_dstu2_models/examples/xml/flag-example(example).xml +35 -0
- data/lib/fhir_dstu2_models/examples/xml/flag-example(flag-example).xml +40 -0
- data/lib/fhir_dstu2_models/examples/xml/flag-example-encounter(example-encounter).xml +32 -0
- data/lib/fhir_dstu2_models/examples/xml/goal-example(example).xml +46 -0
- data/lib/fhir_dstu2_models/examples/xml/goal-example(goal-example).xml +62 -0
- data/lib/fhir_dstu2_models/examples/xml/group-example(101).xml +36 -0
- data/lib/fhir_dstu2_models/examples/xml/group-example-member(102).xml +50 -0
- data/lib/fhir_dstu2_models/examples/xml/healthcareservice-example(example).xml +135 -0
- data/lib/fhir_dstu2_models/examples/xml/imagingobjectselection-example(example).xml +45 -0
- data/lib/fhir_dstu2_models/examples/xml/imagingstudy-example(example).xml +39 -0
- data/lib/fhir_dstu2_models/examples/xml/imagingstudy-example(imagingstudy-example).xml +58 -0
- data/lib/fhir_dstu2_models/examples/xml/immunization-example(example).xml +104 -0
- data/lib/fhir_dstu2_models/examples/xml/immunization-example-refused(notGiven).xml +26 -0
- data/lib/fhir_dstu2_models/examples/xml/immunizationrecommendation-example(example).xml +76 -0
- data/lib/fhir_dstu2_models/examples/xml/implementationguide-example(example).xml +77 -0
- data/lib/fhir_dstu2_models/examples/xml/list-example(example).xml +74 -0
- data/lib/fhir_dstu2_models/examples/xml/list-example-allergies(current-allergies).xml +44 -0
- data/lib/fhir_dstu2_models/examples/xml/list-example-empty(example-empty).xml +32 -0
- data/lib/fhir_dstu2_models/examples/xml/list-example-familyhistory-f201-roel(f201).xml +91 -0
- data/lib/fhir_dstu2_models/examples/xml/list-example-familyhistory-genetics-profile(genetic).xml +299 -0
- data/lib/fhir_dstu2_models/examples/xml/list-example-medlist(med-list).xml +63 -0
- data/lib/fhir_dstu2_models/examples/xml/location-example(1).xml +61 -0
- data/lib/fhir_dstu2_models/examples/xml/location-example-ambulance(amb).xml +33 -0
- data/lib/fhir_dstu2_models/examples/xml/location-example-hl7hq(hl7).xml +59 -0
- data/lib/fhir_dstu2_models/examples/xml/location-example-patients-home(ph).xml +28 -0
- data/lib/fhir_dstu2_models/examples/xml/location-example-room(2).xml +38 -0
- data/lib/fhir_dstu2_models/examples/xml/location-example-ukpharmacy(ukp).xml +25 -0
- data/lib/fhir_dstu2_models/examples/xml/media-example(example).xml +37 -0
- data/lib/fhir_dstu2_models/examples/xml/media-example-dicom(1.2.840.11361907579238403408700.3.0.14.19970327150033).xml +88 -0
- data/lib/fhir_dstu2_models/examples/xml/media-example-sound(sound).xml +25 -0
- data/lib/fhir_dstu2_models/examples/xml/medication-example-f001-combivent(f001).xml +43 -0
- data/lib/fhir_dstu2_models/examples/xml/medication-example-f002-crestor(f002).xml +34 -0
- data/lib/fhir_dstu2_models/examples/xml/medication-example-f003-tolbutamide(f003).xml +34 -0
- data/lib/fhir_dstu2_models/examples/xml/medication-example-f004-metoprolol(f004).xml +34 -0
- data/lib/fhir_dstu2_models/examples/xml/medication-example-f005-enalapril(f005).xml +34 -0
- data/lib/fhir_dstu2_models/examples/xml/medication-example-f201-salmeterol(f201).xml +55 -0
- data/lib/fhir_dstu2_models/examples/xml/medication-example-f202-flucloxacilline(f202).xml +20 -0
- data/lib/fhir_dstu2_models/examples/xml/medication-example-f203-paracetamol(f203).xml +20 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationadministrationexample1(medadminexample01).xml +34 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationadministrationexample2(medadminexample02).xml +51 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationadministrationexample3(medadminexample03).xml +51 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationdispense-example(medicationdispense-example).xml +117 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationdispenseexample1(meddisp001).xml +75 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationdispenseexample2(meddisp002).xml +75 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationdispenseexample3(meddisp003).xml +108 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationdispenseexample4(meddisp004).xml +154 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationdispenseexample6(meddisp006).xml +64 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationdispenseexample8(meddisp008).xml +54 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationexample1(medexample001).xml +14 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationexample11(medexample011).xml +52 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationexample12(medexample012).xml +22 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationexample13(medexample013).xml +52 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationexample14(medexample014).xml +28 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationexample15(medexample015).xml +20 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationexample16(medexample016).xml +20 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationexample17(medexample017).xml +20 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationexample2(medexample002).xml +33 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationexample3(medexample003).xml +28 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationexample4(medexample004).xml +71 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationexample5(medexample005).xml +31 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationexample6(medexample006).xml +28 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationexample7(medexample007).xml +28 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationexample8(medexample008).xml +75 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationorder-example(medicationorder-example).xml +99 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationorder-example-f001-combivent(f001).xml +90 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationorder-example-f002-crestor(f002).xml +75 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationorder-example-f003-tolbutamide(f003).xml +75 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationorder-example-f004-metoprolol(f004).xml +75 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationorder-example-f005-enalapril(f005).xml +75 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationorder-example-f201-salmeterol(f201).xml +83 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationorder-example-f202-flucloxacilline(f202).xml +65 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationorder-example-f203-paracetamol(f203).xml +51 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationorderexample1(medrx001).xml +108 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationorderexample2(medrx002).xml +40 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationorderexample3(medrx003).xml +151 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationorderexample4(medrx004).xml +58 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationorderexample5(medrx005).xml +111 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationorderexample6(medrx006).xml +59 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationorderexample7(medrx007).xml +44 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationorderexample8(medrx008).xml +51 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationorderexample9(medrx009).xml +47 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationstatement-example(medicationstatement-example).xml +34 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationstatementexample1(example001).xml +64 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationstatementexample2(example002).xml +30 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationstatementexample4(example004).xml +64 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationstatementexample5(example005).xml +64 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationstatementexample6(example006).xml +47 -0
- data/lib/fhir_dstu2_models/examples/xml/medicationstatementexample7(example007).xml +22 -0
- data/lib/fhir_dstu2_models/examples/xml/message-request-link(10bb101f-a121-4264-a920-67be9cb82c74).xml +142 -0
- data/lib/fhir_dstu2_models/examples/xml/message-response-link(3a0707d3-549e-4467-b8b8-5a2ab3800efe).xml +182 -0
- data/lib/fhir_dstu2_models/examples/xml/messageheader-example(1cbdfb97-5859-48a4-8301-d54eab818d68).xml +58 -0
- data/lib/fhir_dstu2_models/examples/xml/namingsystem-example(example).xml +40 -0
- data/lib/fhir_dstu2_models/examples/xml/namingsystem-example-id(example-id).xml +57 -0
- data/lib/fhir_dstu2_models/examples/xml/namingsystem-example-replaced(example-replaced).xml +27 -0
- data/lib/fhir_dstu2_models/examples/xml/namingsystem-registry(registry).xml +1768 -0
- data/lib/fhir_dstu2_models/examples/xml/nutritionorder-example-cardiacdiet(cardiacdiet).xml +141 -0
- data/lib/fhir_dstu2_models/examples/xml/nutritionorder-example-diabeticdiet(diabeticdiet).xml +116 -0
- data/lib/fhir_dstu2_models/examples/xml/nutritionorder-example-diabeticsupplement(diabeticsupplement).xml +107 -0
- data/lib/fhir_dstu2_models/examples/xml/nutritionorder-example-energysupplement(energysupplement).xml +98 -0
- data/lib/fhir_dstu2_models/examples/xml/nutritionorder-example-enteralbolus(enteralbolus).xml +130 -0
- data/lib/fhir_dstu2_models/examples/xml/nutritionorder-example-enteralcontinuous(enteralcontinuous).xml +126 -0
- data/lib/fhir_dstu2_models/examples/xml/nutritionorder-example-fiberrestricteddiet(fiberrestricteddiet).xml +134 -0
- data/lib/fhir_dstu2_models/examples/xml/nutritionorder-example-infantenteral(infantenteral).xml +108 -0
- data/lib/fhir_dstu2_models/examples/xml/nutritionorder-example-proteinsupplement(proteinsupplement).xml +77 -0
- data/lib/fhir_dstu2_models/examples/xml/nutritionorder-example-pureeddiet(pureeddiet).xml +117 -0
- data/lib/fhir_dstu2_models/examples/xml/nutritionorder-example-pureeddiet-simple(pureeddiet-simple).xml +105 -0
- data/lib/fhir_dstu2_models/examples/xml/nutritionorder-example-renaldiet(renaldiet).xml +147 -0
- data/lib/fhir_dstu2_models/examples/xml/nutritionorder-example-texture-modified(texturemodified).xml +63 -0
- data/lib/fhir_dstu2_models/examples/xml/obs-genetics-example1-somatic(genetics-example1-somatic).xml +145 -0
- data/lib/fhir_dstu2_models/examples/xml/obs-genetics-example2-germline(genetics-example2-germline).xml +105 -0
- data/lib/fhir_dstu2_models/examples/xml/obs-genetics-example3-mutationlist(genetics-example3-mutationlist).xml +67 -0
- data/lib/fhir_dstu2_models/examples/xml/obs-genetics-example3-mutationlist-1(genetics-example3-mutationlist-1).xml +53 -0
- data/lib/fhir_dstu2_models/examples/xml/obs-genetics-example3-mutationlist-2(genetics-example3-mutationlist-2).xml +59 -0
- data/lib/fhir_dstu2_models/examples/xml/obs-genetics-example3-mutationlist-3(genetics-example3-mutationlist-3).xml +57 -0
- data/lib/fhir_dstu2_models/examples/xml/obs-genetics-example3-mutationlist-4(genetics-example3-mutationlist-4).xml +57 -0
- data/lib/fhir_dstu2_models/examples/xml/obs-uslab-example1(obs-uslab-example1).xml +102 -0
- data/lib/fhir_dstu2_models/examples/xml/obs-uslab-example2(obs-uslab-example2).xml +93 -0
- data/lib/fhir_dstu2_models/examples/xml/obs-uslab-example3(obs-uslab-example3).xml +81 -0
- data/lib/fhir_dstu2_models/examples/xml/obs-uslab-example4(obs-uslab-example4).xml +99 -0
- data/lib/fhir_dstu2_models/examples/xml/obs-uslab-example5(obs-uslab-example5).xml +102 -0
- data/lib/fhir_dstu2_models/examples/xml/obs-uslab-example6(obs-uslab-example6).xml +86 -0
- data/lib/fhir_dstu2_models/examples/xml/obs-uslab-example7(obs-uslab-example7).xml +93 -0
- data/lib/fhir_dstu2_models/examples/xml/obs-uslab-example8(obs-uslab-example8).xml +112 -0
- data/lib/fhir_dstu2_models/examples/xml/observation-example(example).xml +60 -0
- data/lib/fhir_dstu2_models/examples/xml/observation-example(observation-example).xml +64 -0
- data/lib/fhir_dstu2_models/examples/xml/observation-example-bloodpressure(blood-pressure).xml +98 -0
- data/lib/fhir_dstu2_models/examples/xml/observation-example-bloodpressure-cancel(blood-pressure-cancel).xml +117 -0
- data/lib/fhir_dstu2_models/examples/xml/observation-example-f001-glucose(f001).xml +58 -0
- data/lib/fhir_dstu2_models/examples/xml/observation-example-f002-excess(f002).xml +58 -0
- data/lib/fhir_dstu2_models/examples/xml/observation-example-f003-co2(f003).xml +58 -0
- data/lib/fhir_dstu2_models/examples/xml/observation-example-f004-erythrocyte(f004).xml +60 -0
- data/lib/fhir_dstu2_models/examples/xml/observation-example-f005-hemoglobin(f005).xml +57 -0
- data/lib/fhir_dstu2_models/examples/xml/observation-example-f202-temperature(f202).xml +71 -0
- data/lib/fhir_dstu2_models/examples/xml/observation-example-f203-bicarbonate(f203).xml +72 -0
- data/lib/fhir_dstu2_models/examples/xml/observation-example-f204-creatinine(f204).xml +64 -0
- data/lib/fhir_dstu2_models/examples/xml/observation-example-f205-egfr(f205).xml +110 -0
- data/lib/fhir_dstu2_models/examples/xml/observation-example-f206-staphylococcus(f206).xml +49 -0
- data/lib/fhir_dstu2_models/examples/xml/observation-example-glasgow(glasgow).xml +235 -0
- data/lib/fhir_dstu2_models/examples/xml/observation-example-glasgow-qa(gcs-qa).xml +81 -0
- data/lib/fhir_dstu2_models/examples/xml/observation-example-sample-data(ekg).xml +108 -0
- data/lib/fhir_dstu2_models/examples/xml/observation-example-satO2(satO2).xml +50 -0
- data/lib/fhir_dstu2_models/examples/xml/observation-example-unsat(unsat).xml +53 -0
- data/lib/fhir_dstu2_models/examples/xml/operation-composition-document.xml +87 -0
- data/lib/fhir_dstu2_models/examples/xml/operation-conceptmap-closure.xml +146 -0
- data/lib/fhir_dstu2_models/examples/xml/operation-conceptmap-translate.xml +437 -0
- data/lib/fhir_dstu2_models/examples/xml/operation-encounter-everything.xml +87 -0
- data/lib/fhir_dstu2_models/examples/xml/operation-list-find.xml +110 -0
- data/lib/fhir_dstu2_models/examples/xml/operation-messageheader-process-message.xml +151 -0
- data/lib/fhir_dstu2_models/examples/xml/operation-patient-everything.xml +149 -0
- data/lib/fhir_dstu2_models/examples/xml/operation-questionnaire-populate.xml +246 -0
- data/lib/fhir_dstu2_models/examples/xml/operation-resource-meta-add.xml +106 -0
- data/lib/fhir_dstu2_models/examples/xml/operation-resource-meta-delete.xml +106 -0
- data/lib/fhir_dstu2_models/examples/xml/operation-resource-meta.xml +105 -0
- data/lib/fhir_dstu2_models/examples/xml/operation-resource-validate.xml +186 -0
- data/lib/fhir_dstu2_models/examples/xml/operation-structuredefinition-questionnaire.xml +188 -0
- data/lib/fhir_dstu2_models/examples/xml/operation-valueset-expand.xml +258 -0
- data/lib/fhir_dstu2_models/examples/xml/operation-valueset-lookup.xml +338 -0
- data/lib/fhir_dstu2_models/examples/xml/operation-valueset-validate-code.xml +356 -0
- data/lib/fhir_dstu2_models/examples/xml/operationdefinition-example(example).xml +43 -0
- data/lib/fhir_dstu2_models/examples/xml/operationoutcome-example(101).xml +18 -0
- data/lib/fhir_dstu2_models/examples/xml/operationoutcome-example-allok(allok).xml +16 -0
- data/lib/fhir_dstu2_models/examples/xml/operationoutcome-example-break-the-glass(break-the-glass).xml +29 -0
- data/lib/fhir_dstu2_models/examples/xml/operationoutcome-example-exception(exception).xml +16 -0
- data/lib/fhir_dstu2_models/examples/xml/operationoutcome-example-searchfail(searchfail).xml +17 -0
- data/lib/fhir_dstu2_models/examples/xml/operationoutcome-example-validationfail(validationfail).xml +17 -0
- data/lib/fhir_dstu2_models/examples/xml/order-example(example).xml +31 -0
- data/lib/fhir_dstu2_models/examples/xml/order-example-f201-physiotherapy(f201).xml +31 -0
- data/lib/fhir_dstu2_models/examples/xml/orderresponse-example(example).xml +52 -0
- data/lib/fhir_dstu2_models/examples/xml/org-uslab-example1(org-uslab-example1).xml +31 -0
- data/lib/fhir_dstu2_models/examples/xml/org-uslab-example2(org-uslab-example2).xml +36 -0
- data/lib/fhir_dstu2_models/examples/xml/org-uslab-example3(org-uslab-example3).xml +32 -0
- data/lib/fhir_dstu2_models/examples/xml/organization-example(hl7).xml +47 -0
- data/lib/fhir_dstu2_models/examples/xml/organization-example(organization-example).xml +68 -0
- data/lib/fhir_dstu2_models/examples/xml/organization-example-f001-burgers(f001).xml +71 -0
- data/lib/fhir_dstu2_models/examples/xml/organization-example-f002-burgers-card(f002).xml +48 -0
- data/lib/fhir_dstu2_models/examples/xml/organization-example-f003-burgers-ENT(f003).xml +48 -0
- data/lib/fhir_dstu2_models/examples/xml/organization-example-f201-aumc(f201).xml +88 -0
- data/lib/fhir_dstu2_models/examples/xml/organization-example-f203-bumc(f203).xml +54 -0
- data/lib/fhir_dstu2_models/examples/xml/organization-example-gastro(1).xml +33 -0
- data/lib/fhir_dstu2_models/examples/xml/organization-example-good-health-care(2.16.840.1.113883.19.5).xml +16 -0
- data/lib/fhir_dstu2_models/examples/xml/organization-example-insurer(2).xml +16 -0
- data/lib/fhir_dstu2_models/examples/xml/organization-example-lab(1832473e-2fe0-452d-abe9-3cdb9879522f).xml +29 -0
- data/lib/fhir_dstu2_models/examples/xml/parameters-example(example).xml +16 -0
- data/lib/fhir_dstu2_models/examples/xml/patient-example(example).xml +140 -0
- data/lib/fhir_dstu2_models/examples/xml/patient-example(patient-example).xml +112 -0
- data/lib/fhir_dstu2_models/examples/xml/patient-example-a(pat1).xml +55 -0
- data/lib/fhir_dstu2_models/examples/xml/patient-example-animal(animal).xml +119 -0
- data/lib/fhir_dstu2_models/examples/xml/patient-example-b(pat2).xml +54 -0
- data/lib/fhir_dstu2_models/examples/xml/patient-example-c(pat3).xml +35 -0
- data/lib/fhir_dstu2_models/examples/xml/patient-example-d(pat4).xml +35 -0
- data/lib/fhir_dstu2_models/examples/xml/patient-example-dicom(dicom).xml +45 -0
- data/lib/fhir_dstu2_models/examples/xml/patient-example-f001-pieter(f001).xml +85 -0
- data/lib/fhir_dstu2_models/examples/xml/patient-example-f201-roel(f201).xml +116 -0
- data/lib/fhir_dstu2_models/examples/xml/patient-example-ihe-pcd(ihe-pcd).xml +20 -0
- data/lib/fhir_dstu2_models/examples/xml/patient-example-proband(proband).xml +39 -0
- data/lib/fhir_dstu2_models/examples/xml/patient-example-us-extensions(us01).xml +98 -0
- data/lib/fhir_dstu2_models/examples/xml/patient-example-xcda(xcda).xml +33 -0
- data/lib/fhir_dstu2_models/examples/xml/patient-example-xds(xds).xml +39 -0
- data/lib/fhir_dstu2_models/examples/xml/patient-examples-general(b248b1b2-1686-4b94-9936-37d7a5f94b51).xml +559 -0
- data/lib/fhir_dstu2_models/examples/xml/patient-glossy-example(glossy).xml +39 -0
- data/lib/fhir_dstu2_models/examples/xml/patient-mpi-search(patient-mpi).xml +41 -0
- data/lib/fhir_dstu2_models/examples/xml/patient-uslab-example1(patient-uslab-example1).xml +44 -0
- data/lib/fhir_dstu2_models/examples/xml/patient-uslab-example2(patient-uslab-example2).xml +103 -0
- data/lib/fhir_dstu2_models/examples/xml/paymentnotice-example(77654).xml +29 -0
- data/lib/fhir_dstu2_models/examples/xml/paymentreconciliation-example(ER2500).xml +83 -0
- data/lib/fhir_dstu2_models/examples/xml/person-example(example).xml +96 -0
- data/lib/fhir_dstu2_models/examples/xml/person-example-f002-ariadne(f002).xml +39 -0
- data/lib/fhir_dstu2_models/examples/xml/person-grahame(grahame).xml +88 -0
- data/lib/fhir_dstu2_models/examples/xml/person-patient-portal(pp).xml +78 -0
- data/lib/fhir_dstu2_models/examples/xml/person-provider-directory(pd).xml +70 -0
- data/lib/fhir_dstu2_models/examples/xml/pract-uslab-example1(pract-uslab-example1).xml +18 -0
- data/lib/fhir_dstu2_models/examples/xml/pract-uslab-example2(pract-uslab-example2).xml +50 -0
- data/lib/fhir_dstu2_models/examples/xml/pract-uslab-example3(pract-uslab-example3).xml +18 -0
- data/lib/fhir_dstu2_models/examples/xml/practitioner-example(example).xml +62 -0
- data/lib/fhir_dstu2_models/examples/xml/practitioner-example(practitioner-example).xml +47 -0
- data/lib/fhir_dstu2_models/examples/xml/practitioner-example-f001-evdb(f001).xml +72 -0
- data/lib/fhir_dstu2_models/examples/xml/practitioner-example-f002-pv(f002).xml +72 -0
- data/lib/fhir_dstu2_models/examples/xml/practitioner-example-f003-mv(f003).xml +80 -0
- data/lib/fhir_dstu2_models/examples/xml/practitioner-example-f004-rb(f004).xml +81 -0
- data/lib/fhir_dstu2_models/examples/xml/practitioner-example-f005-al(f005).xml +87 -0
- data/lib/fhir_dstu2_models/examples/xml/practitioner-example-f006-rvdb(f006).xml +72 -0
- data/lib/fhir_dstu2_models/examples/xml/practitioner-example-f007-sh(f007).xml +72 -0
- data/lib/fhir_dstu2_models/examples/xml/practitioner-example-f201-ab(f201).xml +73 -0
- data/lib/fhir_dstu2_models/examples/xml/practitioner-example-f202-lm(f202).xml +63 -0
- data/lib/fhir_dstu2_models/examples/xml/practitioner-example-f203-jvg(f203).xml +59 -0
- data/lib/fhir_dstu2_models/examples/xml/practitioner-example-f204-ce(f204).xml +54 -0
- data/lib/fhir_dstu2_models/examples/xml/practitioner-example-xcda-author(xcda-author).xml +14 -0
- data/lib/fhir_dstu2_models/examples/xml/practitioner-example-xcda1(xcda1).xml +29 -0
- data/lib/fhir_dstu2_models/examples/xml/practitioner-examples-general(3ad0687e-f477-468c-afd5-fcc2bf897809).xml +2674 -0
- data/lib/fhir_dstu2_models/examples/xml/procedure-example(example).xml +35 -0
- data/lib/fhir_dstu2_models/examples/xml/procedure-example(procedure-example).xml +50 -0
- data/lib/fhir_dstu2_models/examples/xml/procedure-example-biopsy(biopsy).xml +43 -0
- data/lib/fhir_dstu2_models/examples/xml/procedure-example-f001-heart(f001).xml +56 -0
- data/lib/fhir_dstu2_models/examples/xml/procedure-example-f002-lung(f002).xml +58 -0
- data/lib/fhir_dstu2_models/examples/xml/procedure-example-f003-abscess(f003).xml +58 -0
- data/lib/fhir_dstu2_models/examples/xml/procedure-example-f004-tracheotomy(f004).xml +58 -0
- data/lib/fhir_dstu2_models/examples/xml/procedure-example-f201-tpf(f201).xml +55 -0
- data/lib/fhir_dstu2_models/examples/xml/procedure-example-implant(example-implant).xml +41 -0
- data/lib/fhir_dstu2_models/examples/xml/procedurerequest-example(example).xml +21 -0
- data/lib/fhir_dstu2_models/examples/xml/procedurerequest-example(procedurerequest-example).xml +44 -0
- data/lib/fhir_dstu2_models/examples/xml/processrequest-example(1110).xml +22 -0
- data/lib/fhir_dstu2_models/examples/xml/processrequest-example-poll-eob(1115).xml +20 -0
- data/lib/fhir_dstu2_models/examples/xml/processrequest-example-poll-exclusive(1113).xml +25 -0
- data/lib/fhir_dstu2_models/examples/xml/processrequest-example-poll-inclusive(1112).xml +24 -0
- data/lib/fhir_dstu2_models/examples/xml/processrequest-example-poll-payrec(1114).xml +29 -0
- data/lib/fhir_dstu2_models/examples/xml/processrequest-example-poll-specific(1111).xml +26 -0
- data/lib/fhir_dstu2_models/examples/xml/processrequest-example-reprocess(44654).xml +32 -0
- data/lib/fhir_dstu2_models/examples/xml/processrequest-example-reverse(87654).xml +28 -0
- data/lib/fhir_dstu2_models/examples/xml/processrequest-example-status(87655).xml +30 -0
- data/lib/fhir_dstu2_models/examples/xml/processresponse-example(SR2500).xml +35 -0
- data/lib/fhir_dstu2_models/examples/xml/provenance-example(example).xml +86 -0
- data/lib/fhir_dstu2_models/examples/xml/provenance-example-sig(signature).xml +61 -0
- data/lib/fhir_dstu2_models/examples/xml/questionnaire-example(3141).xml +158 -0
- data/lib/fhir_dstu2_models/examples/xml/questionnaire-example-bluebook(bb).xml +95 -0
- data/lib/fhir_dstu2_models/examples/xml/questionnaire-example-f201-lifelines(f201).xml +72 -0
- data/lib/fhir_dstu2_models/examples/xml/questionnaire-example-gcs(gcs).xml +164 -0
- data/lib/fhir_dstu2_models/examples/xml/questionnaire-sdc-profile-example-cap(questionnaire-sdc-profile-example-cap).xml +537 -0
- data/lib/fhir_dstu2_models/examples/xml/questionnaire-sdc-profile-example-loinc(questionnaire-sdc-profile-example-loinc).xml +1416 -0
- data/lib/fhir_dstu2_models/examples/xml/questionnaireresponse-example(3141).xml +147 -0
- data/lib/fhir_dstu2_models/examples/xml/questionnaireresponse-example-bluebook(bb).xml +121 -0
- data/lib/fhir_dstu2_models/examples/xml/questionnaireresponse-example-f201-lifelines(f201).xml +82 -0
- data/lib/fhir_dstu2_models/examples/xml/questionnaireresponse-example-gcs(gcs).xml +70 -0
- data/lib/fhir_dstu2_models/examples/xml/questionnaireresponse-sdc-example-ussg-fht-answers.xml +1779 -0
- data/lib/fhir_dstu2_models/examples/xml/questionnaireresponse-sdc-profile-example(questionnaireresponse-sdc-profile-example).xml +116 -0
- data/lib/fhir_dstu2_models/examples/xml/referralrequest-example(example).xml +62 -0
- data/lib/fhir_dstu2_models/examples/xml/referralrequest-example(referralrequest-example).xml +65 -0
- data/lib/fhir_dstu2_models/examples/xml/relatedperson-example(benedicte).xml +77 -0
- data/lib/fhir_dstu2_models/examples/xml/relatedperson-example-f001-sarah(f001).xml +46 -0
- data/lib/fhir_dstu2_models/examples/xml/relatedperson-example-f002-ariadne(f002).xml +46 -0
- data/lib/fhir_dstu2_models/examples/xml/relatedperson-example-peter(peter).xml +66 -0
- data/lib/fhir_dstu2_models/examples/xml/riskassessment-example(genetic).xml +214 -0
- data/lib/fhir_dstu2_models/examples/xml/riskassessment-example-cardiac(cardiac).xml +107 -0
- data/lib/fhir_dstu2_models/examples/xml/riskassessment-example-population(population).xml +9 -0
- data/lib/fhir_dstu2_models/examples/xml/riskassessment-example-prognosis(prognosis).xml +30 -0
- data/lib/fhir_dstu2_models/examples/xml/schedule-example(example).xml +29 -0
- data/lib/fhir_dstu2_models/examples/xml/searchparameter-example(example).xml +25 -0
- data/lib/fhir_dstu2_models/examples/xml/searchparameter-example-extension(example-extension).xml +19 -0
- data/lib/fhir_dstu2_models/examples/xml/slot-example(example).xml +22 -0
- data/lib/fhir_dstu2_models/examples/xml/slot-example-busy(1).xml +27 -0
- data/lib/fhir_dstu2_models/examples/xml/slot-example-tentative(2).xml +22 -0
- data/lib/fhir_dstu2_models/examples/xml/slot-example-unavailable(3).xml +23 -0
- data/lib/fhir_dstu2_models/examples/xml/spec-uslab-example1(spec-uslab-example1).xml +78 -0
- data/lib/fhir_dstu2_models/examples/xml/spec-uslab-example2(spec-uslab-example2).xml +62 -0
- data/lib/fhir_dstu2_models/examples/xml/specimen-example(101).xml +107 -0
- data/lib/fhir_dstu2_models/examples/xml/specimen-example(specimen-example).xml +75 -0
- data/lib/fhir_dstu2_models/examples/xml/specimen-example-isolate(isolate).xml +91 -0
- data/lib/fhir_dstu2_models/examples/xml/specimen-example-urine(vma-urine).xml +67 -0
- data/lib/fhir_dstu2_models/examples/xml/structuredefinition-example(example).xml +417 -0
- data/lib/fhir_dstu2_models/examples/xml/subscription-example(example).xml +26 -0
- data/lib/fhir_dstu2_models/examples/xml/subscription-example-error(example-error).xml +29 -0
- data/lib/fhir_dstu2_models/examples/xml/substance-example(example).xml +23 -0
- data/lib/fhir_dstu2_models/examples/xml/substance-example-amoxicillin-clavulanate(f205).xml +80 -0
- data/lib/fhir_dstu2_models/examples/xml/substance-example-f201-dust(f201).xml +10 -0
- data/lib/fhir_dstu2_models/examples/xml/substance-example-f202-staphylococcus(f202).xml +10 -0
- data/lib/fhir_dstu2_models/examples/xml/substance-example-f203-potassium(f203).xml +19 -0
- data/lib/fhir_dstu2_models/examples/xml/substance-example-silver-nitrate-product(f204).xml +35 -0
- data/lib/fhir_dstu2_models/examples/xml/supplydelivery-example(example).xml +10 -0
- data/lib/fhir_dstu2_models/examples/xml/supplyrequest-example(example).xml +10 -0
- data/lib/fhir_dstu2_models/examples/xml/testscript-example(example).xml +153 -0
- data/lib/fhir_dstu2_models/examples/xml/testscript-example-multiserver(multiserver).xml +276 -0
- data/lib/fhir_dstu2_models/examples/xml/testscript-history(history).xml +99 -0
- data/lib/fhir_dstu2_models/examples/xml/testscript-readtest(ReadTestScript).xml +133 -0
- data/lib/fhir_dstu2_models/examples/xml/testscript-search(search).xml +246 -0
- data/lib/fhir_dstu2_models/examples/xml/testscript-update(update).xml +95 -0
- data/lib/fhir_dstu2_models/examples/xml/valueset-cpt-all(cpt-all).xml +31 -0
- data/lib/fhir_dstu2_models/examples/xml/valueset-example(example-extensional).xml +111 -0
- data/lib/fhir_dstu2_models/examples/xml/valueset-example-expansion(example-expansion).xml +199 -0
- data/lib/fhir_dstu2_models/examples/xml/valueset-example-inline(example-inline).xml +197 -0
- data/lib/fhir_dstu2_models/examples/xml/valueset-example-intensional(example-intensional).xml +82 -0
- data/lib/fhir_dstu2_models/examples/xml/valueset-example-yesnodontknow(yesnodontknow).xml +108 -0
- data/lib/fhir_dstu2_models/examples/xml/valueset-nhin-purposeofuse(nhin-purposeofuse).xml +664 -0
- data/lib/fhir_dstu2_models/examples/xml/valueset-restful-interaction(restful-interaction).xml +248 -0
- data/lib/fhir_dstu2_models/examples/xml/valueset-sdc-profile-example(valueset-sdc-profile-example).xml +149 -0
- data/lib/fhir_dstu2_models/examples/xml/visionprescription-example(33123).xml +53 -0
- data/lib/fhir_dstu2_models/examples/xml/visionprescription-example-1(33124).xml +68 -0
- data/lib/fhir_dstu2_models/examples/xml/xds-example(xds).xml +215 -0
- data/lib/fhir_dstu2_models/fhir.rb +84 -0
- data/lib/fhir_dstu2_models/fhir/metadata.rb +28 -0
- data/lib/fhir_dstu2_models/fhir/resources/Account.rb +56 -0
- data/lib/fhir_dstu2_models/fhir/resources/AllergyIntolerance.rb +94 -0
- data/lib/fhir_dstu2_models/fhir/resources/Appointment.rb +82 -0
- data/lib/fhir_dstu2_models/fhir/resources/AppointmentResponse.rb +50 -0
- data/lib/fhir_dstu2_models/fhir/resources/AuditEvent.rb +208 -0
- data/lib/fhir_dstu2_models/fhir/resources/Basic.rb +44 -0
- data/lib/fhir_dstu2_models/fhir/resources/Binary.rb +30 -0
- data/lib/fhir_dstu2_models/fhir/resources/BodySite.rb +46 -0
- data/lib/fhir_dstu2_models/fhir/resources/Bundle.rb +156 -0
- data/lib/fhir_dstu2_models/fhir/resources/CarePlan.rb +186 -0
- data/lib/fhir_dstu2_models/fhir/resources/Claim.rb +332 -0
- data/lib/fhir_dstu2_models/fhir/resources/ClaimResponse.rb +398 -0
- data/lib/fhir_dstu2_models/fhir/resources/ClinicalImpression.rb +133 -0
- data/lib/fhir_dstu2_models/fhir/resources/Communication.rb +85 -0
- data/lib/fhir_dstu2_models/fhir/resources/CommunicationRequest.rb +92 -0
- data/lib/fhir_dstu2_models/fhir/resources/Composition.rb +138 -0
- data/lib/fhir_dstu2_models/fhir/resources/ConceptMap.rb +166 -0
- data/lib/fhir_dstu2_models/fhir/resources/Condition.rb +128 -0
- data/lib/fhir_dstu2_models/fhir/resources/Conformance.rb +442 -0
- data/lib/fhir_dstu2_models/fhir/resources/Contract.rb +320 -0
- data/lib/fhir_dstu2_models/fhir/resources/Coverage.rb +62 -0
- data/lib/fhir_dstu2_models/fhir/resources/DataElement.rb +106 -0
- data/lib/fhir_dstu2_models/fhir/resources/DetectedIssue.rb +76 -0
- data/lib/fhir_dstu2_models/fhir/resources/Device.rb +66 -0
- data/lib/fhir_dstu2_models/fhir/resources/DeviceComponent.rb +76 -0
- data/lib/fhir_dstu2_models/fhir/resources/DeviceMetric.rb +76 -0
- data/lib/fhir_dstu2_models/fhir/resources/DeviceUseRequest.rb +70 -0
- data/lib/fhir_dstu2_models/fhir/resources/DeviceUseStatement.rb +62 -0
- data/lib/fhir_dstu2_models/fhir/resources/DiagnosticOrder.rb +108 -0
- data/lib/fhir_dstu2_models/fhir/resources/DiagnosticReport.rb +93 -0
- data/lib/fhir_dstu2_models/fhir/resources/DocumentManifest.rb +101 -0
- data/lib/fhir_dstu2_models/fhir/resources/DocumentReference.rb +158 -0
- data/lib/fhir_dstu2_models/fhir/resources/DomainResource.rb +34 -0
- data/lib/fhir_dstu2_models/fhir/resources/EligibilityRequest.rb +48 -0
- data/lib/fhir_dstu2_models/fhir/resources/EligibilityResponse.rb +54 -0
- data/lib/fhir_dstu2_models/fhir/resources/Encounter.rb +174 -0
- data/lib/fhir_dstu2_models/fhir/resources/EnrollmentRequest.rb +54 -0
- data/lib/fhir_dstu2_models/fhir/resources/EnrollmentResponse.rb +54 -0
- data/lib/fhir_dstu2_models/fhir/resources/EpisodeOfCare.rb +98 -0
- data/lib/fhir_dstu2_models/fhir/resources/ExplanationOfBenefit.rb +54 -0
- data/lib/fhir_dstu2_models/fhir/resources/FamilyMemberHistory.rb +112 -0
- data/lib/fhir_dstu2_models/fhir/resources/Flag.rb +50 -0
- data/lib/fhir_dstu2_models/fhir/resources/Goal.rb +93 -0
- data/lib/fhir_dstu2_models/fhir/resources/Group.rb +105 -0
- data/lib/fhir_dstu2_models/fhir/resources/HealthcareService.rb +142 -0
- data/lib/fhir_dstu2_models/fhir/resources/ImagingObjectSelection.rb +138 -0
- data/lib/fhir_dstu2_models/fhir/resources/ImagingStudy.rb +132 -0
- data/lib/fhir_dstu2_models/fhir/resources/Immunization.rb +150 -0
- data/lib/fhir_dstu2_models/fhir/resources/ImmunizationRecommendation.rb +116 -0
- data/lib/fhir_dstu2_models/fhir/resources/ImplementationGuide.rb +213 -0
- data/lib/fhir_dstu2_models/fhir/resources/List.rb +84 -0
- data/lib/fhir_dstu2_models/fhir/resources/Location.rb +80 -0
- data/lib/fhir_dstu2_models/fhir/resources/Media.rb +58 -0
- data/lib/fhir_dstu2_models/fhir/resources/Medication.rb +146 -0
- data/lib/fhir_dstu2_models/fhir/resources/MedicationAdministration.rb +106 -0
- data/lib/fhir_dstu2_models/fhir/resources/MedicationDispense.rb +143 -0
- data/lib/fhir_dstu2_models/fhir/resources/MedicationOrder.rb +173 -0
- data/lib/fhir_dstu2_models/fhir/resources/MedicationStatement.rb +119 -0
- data/lib/fhir_dstu2_models/fhir/resources/MessageHeader.rb +126 -0
- data/lib/fhir_dstu2_models/fhir/resources/NamingSystem.rb +104 -0
- data/lib/fhir_dstu2_models/fhir/resources/NutritionOrder.rb +213 -0
- data/lib/fhir_dstu2_models/fhir/resources/Observation.rb +189 -0
- data/lib/fhir_dstu2_models/fhir/resources/OperationDefinition.rb +151 -0
- data/lib/fhir_dstu2_models/fhir/resources/OperationOutcome.rb +62 -0
- data/lib/fhir_dstu2_models/fhir/resources/Order.rb +75 -0
- data/lib/fhir_dstu2_models/fhir/resources/OrderResponse.rb +48 -0
- data/lib/fhir_dstu2_models/fhir/resources/Organization.rb +74 -0
- data/lib/fhir_dstu2_models/fhir/resources/Parameters.rb +119 -0
- data/lib/fhir_dstu2_models/fhir/resources/Patient.rb +168 -0
- data/lib/fhir_dstu2_models/fhir/resources/PaymentNotice.rb +54 -0
- data/lib/fhir_dstu2_models/fhir/resources/PaymentReconciliation.rb +114 -0
- data/lib/fhir_dstu2_models/fhir/resources/Person.rb +74 -0
- data/lib/fhir_dstu2_models/fhir/resources/Practitioner.rb +108 -0
- data/lib/fhir_dstu2_models/fhir/resources/Procedure.rb +124 -0
- data/lib/fhir_dstu2_models/fhir/resources/ProcedureRequest.rb +75 -0
- data/lib/fhir_dstu2_models/fhir/resources/ProcessRequest.rb +84 -0
- data/lib/fhir_dstu2_models/fhir/resources/ProcessResponse.rb +80 -0
- data/lib/fhir_dstu2_models/fhir/resources/Provenance.rb +124 -0
- data/lib/fhir_dstu2_models/fhir/resources/Questionnaire.rb +116 -0
- data/lib/fhir_dstu2_models/fhir/resources/QuestionnaireResponse.rb +149 -0
- data/lib/fhir_dstu2_models/fhir/resources/ReferralRequest.rb +66 -0
- data/lib/fhir_dstu2_models/fhir/resources/RelatedPerson.rb +54 -0
- data/lib/fhir_dstu2_models/fhir/resources/Resource.rb +26 -0
- data/lib/fhir_dstu2_models/fhir/resources/RiskAssessment.rb +90 -0
- data/lib/fhir_dstu2_models/fhir/resources/Schedule.rb +44 -0
- data/lib/fhir_dstu2_models/fhir/resources/SearchParameter.rb +84 -0
- data/lib/fhir_dstu2_models/fhir/resources/Slot.rb +50 -0
- data/lib/fhir_dstu2_models/fhir/resources/Specimen.rb +142 -0
- data/lib/fhir_dstu2_models/fhir/resources/StructureDefinition.rb +164 -0
- data/lib/fhir_dstu2_models/fhir/resources/Subscription.rb +74 -0
- data/lib/fhir_dstu2_models/fhir/resources/Substance.rb +88 -0
- data/lib/fhir_dstu2_models/fhir/resources/SupplyDelivery.rb +56 -0
- data/lib/fhir_dstu2_models/fhir/resources/SupplyRequest.rb +79 -0
- data/lib/fhir_dstu2_models/fhir/resources/TestScript.rb +446 -0
- data/lib/fhir_dstu2_models/fhir/resources/ValueSet.rb +345 -0
- data/lib/fhir_dstu2_models/fhir/resources/VisionPrescription.rb +99 -0
- data/lib/fhir_dstu2_models/fhir/types/Address.rb +38 -0
- data/lib/fhir_dstu2_models/fhir/types/Annotation.rb +29 -0
- data/lib/fhir_dstu2_models/fhir/types/Attachment.rb +34 -0
- data/lib/fhir_dstu2_models/fhir/types/BackboneElement.rb +20 -0
- data/lib/fhir_dstu2_models/fhir/types/CodeableConcept.rb +22 -0
- data/lib/fhir_dstu2_models/fhir/types/Coding.rb +28 -0
- data/lib/fhir_dstu2_models/fhir/types/ContactPoint.rb +28 -0
- data/lib/fhir_dstu2_models/fhir/types/Element.rb +18 -0
- data/lib/fhir_dstu2_models/fhir/types/ElementDefinition.rb +603 -0
- data/lib/fhir_dstu2_models/fhir/types/Extension.rb +89 -0
- data/lib/fhir_dstu2_models/fhir/types/HumanName.rb +32 -0
- data/lib/fhir_dstu2_models/fhir/types/Identifier.rb +30 -0
- data/lib/fhir_dstu2_models/fhir/types/Meta.rb +28 -0
- data/lib/fhir_dstu2_models/fhir/types/Narrative.rb +22 -0
- data/lib/fhir_dstu2_models/fhir/types/Period.rb +22 -0
- data/lib/fhir_dstu2_models/fhir/types/Quantity.rb +28 -0
- data/lib/fhir_dstu2_models/fhir/types/Range.rb +22 -0
- data/lib/fhir_dstu2_models/fhir/types/Ratio.rb +22 -0
- data/lib/fhir_dstu2_models/fhir/types/Reference.rb +22 -0
- data/lib/fhir_dstu2_models/fhir/types/SampledData.rb +32 -0
- data/lib/fhir_dstu2_models/fhir/types/Signature.rb +33 -0
- data/lib/fhir_dstu2_models/fhir/types/Timing.rb +67 -0
- data/lib/fhir_dstu2_models/fhir_ext/element_definition.rb +51 -0
- data/lib/fhir_dstu2_models/fhir_ext/structure_definition.rb +365 -0
- data/lib/fhir_dstu2_models/fhir_ext/structure_definition_compare.rb +377 -0
- data/lib/fhir_dstu2_models/fhir_ext/structure_definition_finding.rb +69 -0
- data/lib/fhir_dstu2_models/fluentpath/evaluate.rb +590 -0
- data/lib/fhir_dstu2_models/fluentpath/expression.rb +30 -0
- data/lib/fhir_dstu2_models/fluentpath/parse.rb +104 -0
- data/lib/fhir_dstu2_models/tasks/tasks.rake +141 -0
- data/lib/fhir_dstu2_models/version.rb +7 -0
- metadata +2149 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
module FHIR
|
|
2
|
+
module DSTU2
|
|
3
|
+
# Extend ElementDefinition for profile validation code
|
|
4
|
+
class ElementDefinition < FHIR::DSTU2::Model
|
|
5
|
+
# children is used to hierarchically arrange elements
|
|
6
|
+
# so profile validation is easier to compute
|
|
7
|
+
attr_accessor :children
|
|
8
|
+
attr_accessor :local_name
|
|
9
|
+
attr_accessor :marked_for_keeping
|
|
10
|
+
|
|
11
|
+
def add_descendent(element)
|
|
12
|
+
@children = [] if @children.nil?
|
|
13
|
+
element.local_name = element.path.gsub("#{path}.", '')
|
|
14
|
+
if @children.last && element.path.start_with?(@children.last.path)
|
|
15
|
+
if element.path == @children.last.path
|
|
16
|
+
# slicing
|
|
17
|
+
@children << element
|
|
18
|
+
else
|
|
19
|
+
@children.last.add_descendent(element)
|
|
20
|
+
end
|
|
21
|
+
else
|
|
22
|
+
@children << element
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def keep_children(whitelist = [])
|
|
27
|
+
@marked_for_keeping = true if whitelist.include?(path)
|
|
28
|
+
return unless @children
|
|
29
|
+
@children.each do |child|
|
|
30
|
+
child.keep_children(whitelist)
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
def sweep_children
|
|
35
|
+
return unless @children
|
|
36
|
+
@children.each(&:sweep_children)
|
|
37
|
+
@children = @children.keep_if(&:marked_for_keeping)
|
|
38
|
+
@marked_for_keeping = !@children.empty? || @marked_for_keeping
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def print_children(spaces = 0)
|
|
42
|
+
puts "#{' ' * spaces}+#{local_name || path} #{name} #{min}..#{max}"
|
|
43
|
+
return nil unless @children
|
|
44
|
+
@children.each do |child|
|
|
45
|
+
child.print_children(spaces + 2)
|
|
46
|
+
end
|
|
47
|
+
nil
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -0,0 +1,365 @@
|
|
|
1
|
+
# Extend StructureDefinition for profile validation code
|
|
2
|
+
require 'nokogiri'
|
|
3
|
+
require 'yaml'
|
|
4
|
+
require 'bcp47'
|
|
5
|
+
|
|
6
|
+
module FHIR
|
|
7
|
+
module DSTU2
|
|
8
|
+
class StructureDefinition
|
|
9
|
+
extend FHIR::DSTU2::Deprecate
|
|
10
|
+
attr_accessor :finding
|
|
11
|
+
attr_accessor :errors
|
|
12
|
+
attr_accessor :warnings
|
|
13
|
+
attr_accessor :hierarchy
|
|
14
|
+
|
|
15
|
+
# -------------------------------------------------------------------------
|
|
16
|
+
# Profile Validation
|
|
17
|
+
# -------------------------------------------------------------------------
|
|
18
|
+
|
|
19
|
+
def validates_resource?(resource)
|
|
20
|
+
validate_resource(resource).empty?
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
def validate_resource(resource)
|
|
24
|
+
@errors = []
|
|
25
|
+
@warnings = []
|
|
26
|
+
if resource.is_a?(FHIR::DSTU2::Model)
|
|
27
|
+
valid_json?(resource.to_json) if resource
|
|
28
|
+
else
|
|
29
|
+
@errors << "#{resource.class} is not a resource."
|
|
30
|
+
end
|
|
31
|
+
@errors
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
def validates_hash?(hash)
|
|
35
|
+
@errors = []
|
|
36
|
+
@warnings = []
|
|
37
|
+
valid_json?(hash) if hash
|
|
38
|
+
@errors
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Checks whether or not the "json" is valid according to this definition.
|
|
42
|
+
# json == the raw json for a FHIR::DSTU2 resource
|
|
43
|
+
def valid_json?(json)
|
|
44
|
+
build_hierarchy if @hierarchy.nil?
|
|
45
|
+
|
|
46
|
+
if json.is_a? String
|
|
47
|
+
begin
|
|
48
|
+
json = JSON.parse(json)
|
|
49
|
+
rescue => e
|
|
50
|
+
@errors << "Failed to parse JSON: #{e.message} %n #{h} %n #{e.backtrace.join("\n")}"
|
|
51
|
+
return false
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
@hierarchy.children.each do |element|
|
|
56
|
+
verify_element(element, json)
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
@errors.size.zero?
|
|
60
|
+
end
|
|
61
|
+
deprecate :is_valid_json?, :valid_json?
|
|
62
|
+
|
|
63
|
+
def build_hierarchy
|
|
64
|
+
@hierarchy = nil
|
|
65
|
+
snapshot.element.each do |element|
|
|
66
|
+
if @hierarchy.nil?
|
|
67
|
+
@hierarchy = element
|
|
68
|
+
else
|
|
69
|
+
@hierarchy.add_descendent(element)
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
if differential
|
|
73
|
+
changelist = differential.element.map(&:path)
|
|
74
|
+
@hierarchy.keep_children(changelist)
|
|
75
|
+
@hierarchy.sweep_children
|
|
76
|
+
end
|
|
77
|
+
@hierarchy
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
def describe_element(element)
|
|
81
|
+
if element.path.end_with?('.extension', '.modifierExtension') && element.name
|
|
82
|
+
"#{element.path} (#{element.name})"
|
|
83
|
+
else
|
|
84
|
+
element.path
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
def get_json_nodes(json, path)
|
|
89
|
+
results = []
|
|
90
|
+
return [json] if path.nil?
|
|
91
|
+
steps = path.split('.')
|
|
92
|
+
steps.each.with_index do |step, index|
|
|
93
|
+
if json.is_a? Hash
|
|
94
|
+
json = json[step]
|
|
95
|
+
elsif json.is_a? Array
|
|
96
|
+
json.each do |e|
|
|
97
|
+
results << get_json_nodes(e, steps[index..-1].join('.'))
|
|
98
|
+
end
|
|
99
|
+
return results.flatten!
|
|
100
|
+
else
|
|
101
|
+
# this thing doesn't exist
|
|
102
|
+
return results
|
|
103
|
+
end
|
|
104
|
+
return results if json.nil?
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
if json.is_a? Array
|
|
108
|
+
results += json
|
|
109
|
+
else
|
|
110
|
+
results << json
|
|
111
|
+
end
|
|
112
|
+
results
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
def verify_element(element, json)
|
|
116
|
+
path = element.local_name || element.path
|
|
117
|
+
path = path[(@hierarchy.path.size + 1)..-1] if path.start_with? @hierarchy.path
|
|
118
|
+
|
|
119
|
+
begin
|
|
120
|
+
data_type_found = element.type.first.code
|
|
121
|
+
rescue
|
|
122
|
+
data_type_found = nil
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# get the JSON nodes associated with this element path
|
|
126
|
+
if path.end_with?('[x]')
|
|
127
|
+
nodes = []
|
|
128
|
+
element.type.each do |type|
|
|
129
|
+
data_type_found = type.code
|
|
130
|
+
capcode = type.code.clone
|
|
131
|
+
capcode[0] = capcode[0].upcase
|
|
132
|
+
nodes = get_json_nodes(json, path.gsub('[x]', capcode))
|
|
133
|
+
break unless nodes.empty?
|
|
134
|
+
end
|
|
135
|
+
else
|
|
136
|
+
nodes = get_json_nodes(json, path)
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# special filtering on extension urls
|
|
140
|
+
extension_profile = element.type.find { |t| t.code == 'Extension' && !t.profile.nil? }
|
|
141
|
+
if extension_profile
|
|
142
|
+
nodes = nodes.select { |x| extension_profile.profile.first == x['url'] }
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
# Check the cardinality
|
|
146
|
+
min = element.min
|
|
147
|
+
max = element.max == '*' ? Float::INFINITY : element.max.to_i
|
|
148
|
+
if (nodes.size < min) || (nodes.size > max)
|
|
149
|
+
@errors << "#{describe_element(element)} failed cardinality test (#{min}..#{max}) -- found #{nodes.size}"
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
return if nodes.empty?
|
|
153
|
+
# Check the datatype for each node, only if the element has one declared, and it isn't the root element
|
|
154
|
+
if !element.type.empty? && element.path != id
|
|
155
|
+
codeable_concept_pattern = element.pattern && element.pattern.is_a?(FHIR::DSTU2::CodeableConcept)
|
|
156
|
+
matching_pattern = false
|
|
157
|
+
nodes.each do |value|
|
|
158
|
+
matching_type = 0
|
|
159
|
+
|
|
160
|
+
# the element is valid, if it matches at least one of the datatypes
|
|
161
|
+
temp_messages = []
|
|
162
|
+
verified_extension = false
|
|
163
|
+
verified_data_type = false
|
|
164
|
+
if data_type_found == 'Extension' # && !type.profile.nil?
|
|
165
|
+
verified_extension = true
|
|
166
|
+
# TODO: should verify extensions
|
|
167
|
+
# extension_def = FHIR::DSTU2::Definitions.get_extension_definition(value['url'])
|
|
168
|
+
# if extension_def
|
|
169
|
+
# verified_extension = extension_def.validates_resource?(FHIR::DSTU2::Extension.new(deep_copy(value)))
|
|
170
|
+
# end
|
|
171
|
+
elsif data_type_found
|
|
172
|
+
temp = @errors
|
|
173
|
+
@errors = []
|
|
174
|
+
verified_data_type = data_type?(data_type_found, value)
|
|
175
|
+
temp_messages << @errors
|
|
176
|
+
@errors = temp
|
|
177
|
+
end
|
|
178
|
+
if data_type_found && (verified_extension || verified_data_type)
|
|
179
|
+
matching_type += 1
|
|
180
|
+
if data_type_found == 'code' # then check the binding
|
|
181
|
+
unless element.binding.nil?
|
|
182
|
+
matching_type += check_binding(element, value)
|
|
183
|
+
end
|
|
184
|
+
elsif data_type_found == 'CodeableConcept' && codeable_concept_pattern
|
|
185
|
+
vcc = FHIR::DSTU2::CodeableConcept.new(value)
|
|
186
|
+
pattern = element.pattern.coding
|
|
187
|
+
pattern.each do |pcoding|
|
|
188
|
+
vcc.coding.each do |vcoding|
|
|
189
|
+
matching_pattern = true if vcoding.system == pcoding.system && vcoding.code == pcoding.code
|
|
190
|
+
end
|
|
191
|
+
end
|
|
192
|
+
elsif data_type_found == 'String' && !element.maxLength.nil? && (value.size > element.maxLength)
|
|
193
|
+
@errors << "#{describe_element(element)} exceed maximum length of #{element.maxLength}: #{value}"
|
|
194
|
+
end
|
|
195
|
+
elsif data_type_found
|
|
196
|
+
temp_messages << "#{describe_element(element)} is not a valid #{data_type_found}: '#{value}'"
|
|
197
|
+
else
|
|
198
|
+
# we don't know the data type... so we say "OK"
|
|
199
|
+
matching_type += 1
|
|
200
|
+
@warnings >> "Unable to guess data type for #{describe_element(element)}"
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
if matching_type <= 0
|
|
204
|
+
@errors += temp_messages
|
|
205
|
+
@errors << "#{describe_element(element)} did not match one of the valid data types: #{element.type.map(&:code)}"
|
|
206
|
+
else
|
|
207
|
+
@warnings += temp_messages
|
|
208
|
+
end
|
|
209
|
+
if !element.fixed.nil? && element.fixed != value
|
|
210
|
+
@errors << "#{describe_element(element)} value of '#{value}' did not match fixed value: #{element.fixed}"
|
|
211
|
+
end
|
|
212
|
+
end
|
|
213
|
+
if codeable_concept_pattern && matching_pattern == false
|
|
214
|
+
@errors << "#{describe_element(element)} CodeableConcept did not match defined pattern: #{element.pattern.to_hash}"
|
|
215
|
+
end
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
# In STU3 we check element.constraint.expression using FluentPath.
|
|
219
|
+
# In DSTU2, constraints were given by element.constraint.xpath.
|
|
220
|
+
# We do *NOT* check these XPath constraints.
|
|
221
|
+
|
|
222
|
+
# check children if the element has any
|
|
223
|
+
return unless element.children
|
|
224
|
+
nodes.each do |node|
|
|
225
|
+
element.children.each do |child|
|
|
226
|
+
verify_element(child, node)
|
|
227
|
+
end
|
|
228
|
+
end
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
# data_type_code == a FHIR::DSTU2 DataType code (see http://hl7.org/fhir/2015May/datatypes.html)
|
|
232
|
+
# value == the representation of the value
|
|
233
|
+
def data_type?(data_type_code, value)
|
|
234
|
+
# FHIR::DSTU2 models covers any base Resources
|
|
235
|
+
if FHIR::DSTU2::RESOURCES.include?(data_type_code)
|
|
236
|
+
definition = FHIR::DSTU2::Definitions.resource_definition(data_type_code)
|
|
237
|
+
unless definition.nil?
|
|
238
|
+
ret_val = false
|
|
239
|
+
begin
|
|
240
|
+
# klass = Module.const_get("FHIR::DSTU2::#{data_type_code}")
|
|
241
|
+
# ret_val = definition.validates_resource?(klass.new(deep_copy(value)))
|
|
242
|
+
ret_val = definition.validates_hash?(value)
|
|
243
|
+
unless ret_val
|
|
244
|
+
@errors += definition.errors
|
|
245
|
+
@warnings += definition.warnings
|
|
246
|
+
end
|
|
247
|
+
rescue
|
|
248
|
+
@errors << "Unable to verify #{data_type_code} as a FHIR::DSTU2 Resource."
|
|
249
|
+
end
|
|
250
|
+
return ret_val
|
|
251
|
+
end
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
# Remaining data types: handle special cases before checking type StructureDefinitions
|
|
255
|
+
case data_type_code.downcase
|
|
256
|
+
when 'domainresource'
|
|
257
|
+
true # we don't have to verify domain resource, because it will be included in the snapshot
|
|
258
|
+
when 'resource'
|
|
259
|
+
resource_type = value['resourceType']
|
|
260
|
+
definition = FHIR::DSTU2::Definitions.resource_definition(resource_type)
|
|
261
|
+
if !definition.nil?
|
|
262
|
+
ret_val = false
|
|
263
|
+
begin
|
|
264
|
+
# klass = Module.const_get("FHIR::DSTU2::#{resource_type}")
|
|
265
|
+
# ret_val = definition.validates_resource?(klass.new(deep_copy(value)))
|
|
266
|
+
ret_val = definition.validates_hash?(value)
|
|
267
|
+
unless ret_val
|
|
268
|
+
@errors += definition.errors
|
|
269
|
+
@warnings += definition.warnings
|
|
270
|
+
end
|
|
271
|
+
rescue
|
|
272
|
+
@errors << "Unable to verify #{resource_type} as a FHIR::DSTU2 Resource."
|
|
273
|
+
end
|
|
274
|
+
ret_val
|
|
275
|
+
else
|
|
276
|
+
@errors << "Unable to find base Resource definition: #{resource_type}"
|
|
277
|
+
false
|
|
278
|
+
end
|
|
279
|
+
when *FHIR::DSTU2::PRIMITIVES.keys.map(&:downcase)
|
|
280
|
+
FHIR::DSTU2.primitive?(datatype: data_type_code, value: value)
|
|
281
|
+
else
|
|
282
|
+
# Eliminate endless loop on Element is an Element
|
|
283
|
+
return true if data_type_code == 'Element' && id == 'Element'
|
|
284
|
+
|
|
285
|
+
definition = FHIR::DSTU2::Definitions.type_definition(data_type_code)
|
|
286
|
+
definition = FHIR::DSTU2::Definitions.resource_definition(data_type_code) if definition.nil?
|
|
287
|
+
if !definition.nil?
|
|
288
|
+
ret_val = false
|
|
289
|
+
begin
|
|
290
|
+
# klass = Module.const_get("FHIR::DSTU2::#{data_type_code}")
|
|
291
|
+
# ret_val = definition.validates_resource?(klass.new(deep_copy(value)))
|
|
292
|
+
ret_val = definition.validates_hash?(value)
|
|
293
|
+
unless ret_val
|
|
294
|
+
@errors += definition.errors
|
|
295
|
+
@warnings += definition.warnings
|
|
296
|
+
end
|
|
297
|
+
rescue
|
|
298
|
+
@errors << "Unable to verify #{data_type_code} as a FHIR::DSTU2 type."
|
|
299
|
+
end
|
|
300
|
+
ret_val
|
|
301
|
+
else
|
|
302
|
+
@errors << "Unable to find base type definition: #{data_type_code}"
|
|
303
|
+
false
|
|
304
|
+
end
|
|
305
|
+
end
|
|
306
|
+
end
|
|
307
|
+
deprecate :is_data_type?, :data_type?
|
|
308
|
+
|
|
309
|
+
def check_binding(element, value)
|
|
310
|
+
vs_uri = element.binding.valueSetUri || element.binding.valueSetReference.reference
|
|
311
|
+
valueset = FHIR::DSTU2::Definitions.get_codes(vs_uri)
|
|
312
|
+
|
|
313
|
+
matching_type = 0
|
|
314
|
+
|
|
315
|
+
if %w[http://hl7.org/fhir/ValueSet/content-type http://www.rfc-editor.org/bcp/bcp13.txt].include?(vs_uri)
|
|
316
|
+
matches = MIME::Types[value]
|
|
317
|
+
if (matches.nil? || matches.size.zero?) && !some_type_of_xml_or_json?(value)
|
|
318
|
+
@errors << "#{element.path} has invalid mime-type: '#{value}'"
|
|
319
|
+
matching_type -= 1 if element.binding.strength == 'required'
|
|
320
|
+
end
|
|
321
|
+
elsif %w[http://hl7.org/fhir/ValueSet/languages http://tools.ietf.org/html/bcp47].include?(vs_uri)
|
|
322
|
+
has_region = !(value =~ /-/).nil?
|
|
323
|
+
valid = !BCP47::Language.identify(value.downcase).nil? && (!has_region || !BCP47::Region.identify(value.upcase).nil?)
|
|
324
|
+
unless valid
|
|
325
|
+
@errors << "#{element.path} has unrecognized language: '#{value}'"
|
|
326
|
+
matching_type -= 1 if element.binding.strength == 'required'
|
|
327
|
+
end
|
|
328
|
+
elsif valueset.nil?
|
|
329
|
+
@warnings << "#{element.path} has unknown ValueSet: '#{vs_uri}'"
|
|
330
|
+
if element.binding.strength == 'required'
|
|
331
|
+
if element.short
|
|
332
|
+
@warnings << "#{element.path} guessing codes for ValueSet: '#{vs_uri}'"
|
|
333
|
+
guess_codes = element.short.split(' | ')
|
|
334
|
+
matching_type -= 1 unless guess_codes.include?(value)
|
|
335
|
+
else
|
|
336
|
+
matching_type -= 1
|
|
337
|
+
end
|
|
338
|
+
end
|
|
339
|
+
elsif !valueset.values.flatten.include?(value)
|
|
340
|
+
message = "#{element.path} has invalid code '#{value}' from #{valueset}"
|
|
341
|
+
if element.binding.strength == 'required'
|
|
342
|
+
@errors << message
|
|
343
|
+
matching_type -= 1
|
|
344
|
+
else
|
|
345
|
+
@warnings << message
|
|
346
|
+
end
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
matching_type
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
def some_type_of_xml_or_json?(code)
|
|
353
|
+
m = code.downcase
|
|
354
|
+
return true if %w[xml json].include?(m)
|
|
355
|
+
return true if (m.starts_with?('application/') || m.starts_with?('text/')) && (m.ends_with?('json') || m.ends_with?('xml'))
|
|
356
|
+
return true if m.starts_with?('application/xml') || m.starts_with?('text/xml')
|
|
357
|
+
return true if m.starts_with?('application/json') || m.starts_with?('text/json')
|
|
358
|
+
false
|
|
359
|
+
end
|
|
360
|
+
deprecate :is_some_type_of_xml_or_json, :some_type_of_xml_or_json?
|
|
361
|
+
|
|
362
|
+
private :valid_json?, :get_json_nodes, :build_hierarchy, :verify_element, :check_binding
|
|
363
|
+
end
|
|
364
|
+
end
|
|
365
|
+
end
|
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
module FHIR
|
|
2
|
+
module DSTU2
|
|
3
|
+
# Extend StructureDefinition for profile comparison code
|
|
4
|
+
class StructureDefinition
|
|
5
|
+
extend FHIR::DSTU2::Deprecate
|
|
6
|
+
|
|
7
|
+
# -------------------------------------------------------------------------
|
|
8
|
+
# Profile Comparison
|
|
9
|
+
# -------------------------------------------------------------------------
|
|
10
|
+
|
|
11
|
+
# Checks whether or not "another_definition" is compatible with this definition.
|
|
12
|
+
# If they have conflicting elements, restrictions, bindings, modifying extensions, etc.
|
|
13
|
+
def compatible?(another_definition)
|
|
14
|
+
@errors = []
|
|
15
|
+
@warnings = []
|
|
16
|
+
|
|
17
|
+
@finding = FHIR::DSTU2::StructureDefinitionFinding.new
|
|
18
|
+
@finding.resourceType = snapshot.element[0].path
|
|
19
|
+
@finding.profileIdA = id
|
|
20
|
+
@finding.profileIdB = another_definition.id if another_definition.respond_to?(:id)
|
|
21
|
+
|
|
22
|
+
if !(another_definition.is_a? FHIR::DSTU2::StructureDefinition)
|
|
23
|
+
@errors << @finding.error('', '', 'Not a StructureDefinition', 'StructureDefinition', another_definition.class.name.to_s)
|
|
24
|
+
return false
|
|
25
|
+
elsif another_definition.snapshot.element[0].path != snapshot.element[0].path
|
|
26
|
+
@errors << @finding.error('', '', 'Incompatible resourceType', @finding.resourceType, another_definition.snapshot.element[0].path.to_s)
|
|
27
|
+
return false
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
left_elements = Array.new(snapshot.element)
|
|
31
|
+
right_elements = Array.new(another_definition.snapshot.element)
|
|
32
|
+
|
|
33
|
+
left_paths = left_elements.map(&:path)
|
|
34
|
+
right_paths = right_elements.map(&:path)
|
|
35
|
+
|
|
36
|
+
# StructureDefinitions don't always include all base attributes (for example, of a ContactPoint)
|
|
37
|
+
# if nothing is modified from the base definition, so we have to add them in if they are missing.
|
|
38
|
+
base_definition = FHIR::DSTU2::Definitions.get_resource_definition(snapshot.element[0].path)
|
|
39
|
+
base_elements = base_definition.snapshot.element
|
|
40
|
+
|
|
41
|
+
left_missing = right_paths - left_paths
|
|
42
|
+
# left_missing_roots = left_missing.map{|e| e.split('.')[0..-2].join('.') }.uniq
|
|
43
|
+
add_missing_elements(id, left_missing, left_elements, base_elements)
|
|
44
|
+
|
|
45
|
+
right_missing = left_paths - right_paths
|
|
46
|
+
# right_missing_roots = right_missing.map{|e| e.split('.')[0..-2].join('.') }.uniq
|
|
47
|
+
add_missing_elements(another_definition.id, right_missing, right_elements, base_elements)
|
|
48
|
+
|
|
49
|
+
# update paths
|
|
50
|
+
left_paths = left_elements.map(&:path)
|
|
51
|
+
right_paths = right_elements.map(&:path)
|
|
52
|
+
|
|
53
|
+
# recalculate the missing attributes
|
|
54
|
+
left_missing = right_paths - left_paths
|
|
55
|
+
right_missing = left_paths - right_paths
|
|
56
|
+
|
|
57
|
+
# generate warnings for missing fields (ignoring extensions)
|
|
58
|
+
left_missing.each do |e|
|
|
59
|
+
next if e.include? 'extension'
|
|
60
|
+
elem = get_element_by_path(e, right_elements)
|
|
61
|
+
if !elem.min.nil? && elem.min > 0
|
|
62
|
+
@errors << @finding.error(e, 'min', 'Missing REQUIRED element', 'Missing', elem.min.to_s)
|
|
63
|
+
elsif elem.isModifier == true
|
|
64
|
+
@errors << @finding.error(e, 'isModifier', 'Missing MODIFIER element', 'Missing', elem.isModifier.to_s)
|
|
65
|
+
else
|
|
66
|
+
@warnings << @finding.warning(e, '', 'Missing element', 'Missing', 'Defined')
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
right_missing.each do |e|
|
|
70
|
+
next if e.include? 'extension'
|
|
71
|
+
elem = get_element_by_path(e, left_elements)
|
|
72
|
+
if !elem.min.nil? && elem.min > 0
|
|
73
|
+
@errors << @finding.error(e, 'min', 'Missing REQUIRED element', elem.min.to_s, 'Missing')
|
|
74
|
+
elsif elem.isModifier == true
|
|
75
|
+
@errors << @finding.error(e, 'isModifier', 'Missing MODIFIER element', elem.isModifier.to_s, 'Missing')
|
|
76
|
+
else
|
|
77
|
+
@warnings << @finding.warning(e, '', 'Missing element', 'Defined', 'Missing')
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
left_extensions = []
|
|
82
|
+
right_extensions = []
|
|
83
|
+
|
|
84
|
+
# compare elements, starting with the elements in this definition
|
|
85
|
+
left_elements.each do |x|
|
|
86
|
+
if x.path.include? 'extension'
|
|
87
|
+
# handle extensions separately
|
|
88
|
+
left_extensions << x
|
|
89
|
+
else
|
|
90
|
+
y = get_element_by_path(x.path, right_elements)
|
|
91
|
+
compare_element_definitions(x, y, another_definition)
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
# now compare elements defined in the other definition, if we haven't already looked at them
|
|
96
|
+
right_elements.each do |y|
|
|
97
|
+
if y.path.include? 'extension'
|
|
98
|
+
# handle extensions separately
|
|
99
|
+
right_extensions << y
|
|
100
|
+
elsif left_missing.include? y.path
|
|
101
|
+
x = get_element_by_path(y.path, left_elements)
|
|
102
|
+
compare_element_definitions(x, y, another_definition)
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# finally, compare the extensions.
|
|
107
|
+
checked_extensions = []
|
|
108
|
+
left_extensions.each do |x|
|
|
109
|
+
y = get_extension(x.name, right_extensions)
|
|
110
|
+
unless y.nil?
|
|
111
|
+
# both profiles share an extension with the same name
|
|
112
|
+
checked_extensions << x.name
|
|
113
|
+
compare_extension_definition(x, y, another_definition)
|
|
114
|
+
end
|
|
115
|
+
y = get_extension(x.type[0].profile, right_extensions)
|
|
116
|
+
next unless !y.nil? && x.name != y.name
|
|
117
|
+
# both profiles share the same extension definition but with a different name
|
|
118
|
+
checked_extensions << x.name
|
|
119
|
+
checked_extensions << y.name
|
|
120
|
+
compare_element_definitions(x, y, another_definition)
|
|
121
|
+
end
|
|
122
|
+
right_extensions.each do |y|
|
|
123
|
+
next if checked_extensions.include?(y.name)
|
|
124
|
+
x = get_extension(y.name, left_extensions)
|
|
125
|
+
unless x.nil?
|
|
126
|
+
# both profiles share an extension with the same name
|
|
127
|
+
checked_extensions << y.name
|
|
128
|
+
compare_extension_definition(x, y, another_definition)
|
|
129
|
+
end
|
|
130
|
+
x = get_extension(y.type[0].profile, left_extensions)
|
|
131
|
+
next unless !x.nil? && x.name != y.name && !checked_extensions.include?(x.name)
|
|
132
|
+
# both profiles share the same extension definition but with a different name
|
|
133
|
+
checked_extensions << x.name
|
|
134
|
+
checked_extensions << y.name
|
|
135
|
+
compare_element_definitions(x, y, another_definition)
|
|
136
|
+
end
|
|
137
|
+
@errors.flatten!
|
|
138
|
+
@warnings.flatten!
|
|
139
|
+
@errors.size.zero?
|
|
140
|
+
end
|
|
141
|
+
deprecate :is_compatible?, :compatible?
|
|
142
|
+
|
|
143
|
+
def get_element_by_path(path, elements = snapshot.element)
|
|
144
|
+
elements.detect { |element| element.path == path }
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
def get_extension(extension, elements = snapshot.element)
|
|
148
|
+
elements.each do |element|
|
|
149
|
+
if element.path.include?('extension') || element.type.map(&:code).include?('Extension')
|
|
150
|
+
return element if element.name == extension || element.type.map(&:profile).include?(extension)
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
nil
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# private
|
|
157
|
+
# name -- name of the profile we're fixing
|
|
158
|
+
# missing_paths -- list of paths that we're adding
|
|
159
|
+
# elements -- list of elements currently defined in the profile
|
|
160
|
+
# base_elements -- list of elements defined in the base resource the profile extends
|
|
161
|
+
def add_missing_elements(_name, missing_paths, elements, base_elements)
|
|
162
|
+
variable_paths = elements.map(&:path).grep(/\[x\]/).map { |e| e[0..-4] }
|
|
163
|
+
variable_paths << base_elements.map(&:path).grep(/\[x\]/).map { |e| e[0..-4] }
|
|
164
|
+
variable_paths.flatten!.uniq!
|
|
165
|
+
|
|
166
|
+
missing_paths.each do |path|
|
|
167
|
+
# Skip extensions
|
|
168
|
+
next if path.include? 'extension'
|
|
169
|
+
|
|
170
|
+
# Skip the variable paths that end with "[x]"
|
|
171
|
+
next if variable_paths.any? { |variable| path.starts_with?(variable) }
|
|
172
|
+
|
|
173
|
+
elem = get_element_by_path(path, base_elements)
|
|
174
|
+
unless elem.nil?
|
|
175
|
+
# _DEEP_ copy
|
|
176
|
+
elements << FHIR::DSTU2::ElementDefinition.from_fhir_json(elem.to_fhir_json)
|
|
177
|
+
next
|
|
178
|
+
end
|
|
179
|
+
|
|
180
|
+
x = path.split('.')
|
|
181
|
+
root = x.first(x.size - 1).join('.')
|
|
182
|
+
next unless root.include? '.'
|
|
183
|
+
# get the root element to fill in the details
|
|
184
|
+
elem = get_element_by_path(root, elements)
|
|
185
|
+
# get the data type definition to fill in the details
|
|
186
|
+
# assume missing elements are from first data type (gross)
|
|
187
|
+
next if elem.type.nil? || elem.type.empty?
|
|
188
|
+
type_def = FHIR::DSTU2::Definitions.type_definition(elem.type[0].code)
|
|
189
|
+
next if type_def.nil?
|
|
190
|
+
type_elements = Array.new(type_def.snapshot.element)
|
|
191
|
+
# _DEEP_ copy
|
|
192
|
+
type_elements.map! do |e| # {|e| FHIR::DSTU2::ElementDefinition.from_fhir_json(e.to_fhir_json) }
|
|
193
|
+
FHIR::DSTU2::ElementDefinition.from_fhir_json(e.to_fhir_json)
|
|
194
|
+
end
|
|
195
|
+
# Fix path names
|
|
196
|
+
type_root = String.new(type_elements[0].path)
|
|
197
|
+
type_elements.each { |e| e.path.gsub!(type_root, root) }
|
|
198
|
+
# finally, add the missing element definitions
|
|
199
|
+
# one by one -- only if they are not already present (i.e. do not override)
|
|
200
|
+
type_elements.each do |z|
|
|
201
|
+
y = get_element_by_path(z.path, elements)
|
|
202
|
+
next unless y.nil?
|
|
203
|
+
elements << z
|
|
204
|
+
# else
|
|
205
|
+
# @warnings << "StructureDefinition #{name} already contains #{z.path}"
|
|
206
|
+
end
|
|
207
|
+
elements.uniq!
|
|
208
|
+
# else
|
|
209
|
+
# @warnings << "StructureDefinition #{name} missing -- #{path}"
|
|
210
|
+
end
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
# private
|
|
214
|
+
def compare_extension_definition(x, y, another_definition)
|
|
215
|
+
x_profiles = x.type.map(&:profile)
|
|
216
|
+
y_profiles = y.type.map(&:profile)
|
|
217
|
+
x_only = x_profiles - y_profiles
|
|
218
|
+
shared = x_profiles - x_only
|
|
219
|
+
|
|
220
|
+
if !shared.nil? && shared.size.zero?
|
|
221
|
+
# same name, but different profiles
|
|
222
|
+
# maybe the profiles are the same, just with different URLs...
|
|
223
|
+
# ... so we have to compare them, if we can.
|
|
224
|
+
@warnings << @finding.warning("#{x.path} (#{x.name})", 'type.profile', 'Different Profiles', x_profiles.to_s, y_profiles.to_s)
|
|
225
|
+
x_extension = FHIR::DSTU2::Definitions.get_extension_definition(x.type[0].profile)
|
|
226
|
+
y_extension = FHIR::DSTU2::Definitions.get_extension_definition(y.type[0].profile)
|
|
227
|
+
if !x_extension.nil? && !y_extension.nil?
|
|
228
|
+
x_extension.compatible?(y_extension)
|
|
229
|
+
@errors << x_extension.errors
|
|
230
|
+
@warnings << x_extension.warnings
|
|
231
|
+
else
|
|
232
|
+
@warnings << @finding.warning("#{x.path} (#{x.name})", '', 'Could not find extension definitions to compare.', '', '')
|
|
233
|
+
end
|
|
234
|
+
else
|
|
235
|
+
compare_element_definitions(x, y, another_definition)
|
|
236
|
+
end
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
# private
|
|
240
|
+
def compare_element_definitions(x, y, another_definition)
|
|
241
|
+
return if x.nil? || y.nil? || another_definition.nil?
|
|
242
|
+
|
|
243
|
+
# check cardinality
|
|
244
|
+
x_min = x.min || 0
|
|
245
|
+
x_max = x.max == '*' ? Float::INFINITY : x.max.to_i
|
|
246
|
+
y_min = y.min || 0
|
|
247
|
+
y_max = y.max == '*' ? Float::INFINITY : y.max.to_i
|
|
248
|
+
|
|
249
|
+
if x_min.nil? || x.max.nil? || y_min.nil? || y.max.nil?
|
|
250
|
+
@errors << @finding.error(x.path.to_s, 'min/max', 'Unknown cardinality', "#{x_min}..#{x.max}", "#{y_min}..#{y.max}")
|
|
251
|
+
elsif (x_min > y_max) || (x_max < y_min)
|
|
252
|
+
@errors << @finding.error(x.path.to_s, 'min/max', 'Incompatible cardinality', "#{x_min}..#{x.max}", "#{y_min}..#{y.max}")
|
|
253
|
+
elsif (x_min != y_min) || (x_max != y_max)
|
|
254
|
+
@warnings << @finding.warning(x.path.to_s, 'min/max', 'Inconsistent cardinality', "#{x_min}..#{x.max}", "#{y_min}..#{y.max}")
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
# check data types
|
|
258
|
+
x_types = x.type.map(&:code)
|
|
259
|
+
y_types = y.type.map(&:code)
|
|
260
|
+
x_only = x_types - y_types
|
|
261
|
+
y_only = y_types - x_types
|
|
262
|
+
shared = x_types - x_only
|
|
263
|
+
|
|
264
|
+
if !shared.nil? && shared.size.zero? && !x_types.empty? && !y_types.empty? && !x.constraint.empty? && !y.constraint.empty?
|
|
265
|
+
@errors << @finding.error(x.path.to_s, 'type.code', 'Incompatible data types', x_types.to_s, y_types.to_s)
|
|
266
|
+
end
|
|
267
|
+
if !x_only.nil? && !x_only.empty?
|
|
268
|
+
@warnings << @finding.warning(x.path.to_s, 'type.code', 'Allows additional data types', x_only.to_s, 'not allowed')
|
|
269
|
+
end
|
|
270
|
+
if !y_only.nil? && !y_only.empty?
|
|
271
|
+
@warnings << @finding.warning(x.path.to_s, 'type.code', 'Allows additional data types', 'not allowed', y_only.to_s)
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
# check bindings
|
|
275
|
+
if x.binding.nil? && !y.binding.nil?
|
|
276
|
+
val = y.binding.valueSetUri || y.binding.valueSetReference.try(:reference) || y.binding.description
|
|
277
|
+
@warnings << @finding.warning(x.path.to_s, 'binding', 'Inconsistent binding', '', val)
|
|
278
|
+
elsif !x.binding.nil? && y.binding.nil?
|
|
279
|
+
val = x.binding.valueSetUri || x.binding.valueSetReference.try(:reference) || x.binding.description
|
|
280
|
+
@warnings << @finding.warning(x.path.to_s, 'binding', 'Inconsistent binding', val, '')
|
|
281
|
+
elsif !x.binding.nil? && !y.binding.nil?
|
|
282
|
+
x_vs = x.binding.valueSetUri || x.binding.valueSetReference.try(:reference)
|
|
283
|
+
y_vs = y.binding.valueSetUri || y.binding.valueSetReference.try(:reference)
|
|
284
|
+
if x_vs != y_vs
|
|
285
|
+
if x.binding.strength == 'required' || y.binding.strength == 'required'
|
|
286
|
+
@errors << @finding.error(x.path.to_s, 'binding.strength', 'Incompatible bindings', "#{x.binding.strength} #{x_vs}", "#{y.binding.strength} #{y_vs}")
|
|
287
|
+
else
|
|
288
|
+
@warnings << @finding.warning(x.path.to_s, 'binding.strength', 'Inconsistent bindings', "#{x.binding.strength} #{x_vs}", "#{y.binding.strength} #{y_vs}")
|
|
289
|
+
end
|
|
290
|
+
end
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
# check default values
|
|
294
|
+
if x.defaultValue.try(:type) != y.defaultValue.try(:type)
|
|
295
|
+
@errors << @finding.error(x.path.to_s, 'defaultValue', 'Incompatible default type', x.defaultValue.try(:type).to_s, y.defaultValue.try(:type).to_s)
|
|
296
|
+
end
|
|
297
|
+
if x.defaultValue.try(:value) != y.defaultValue.try(:value)
|
|
298
|
+
@errors << @finding.error(x.path.to_s, 'defaultValue', 'Incompatible default value', x.defaultValue.try(:value).to_s, y.defaultValue.try(:value).to_s)
|
|
299
|
+
end
|
|
300
|
+
|
|
301
|
+
# check meaning when missing
|
|
302
|
+
if x.meaningWhenMissing != y.meaningWhenMissing
|
|
303
|
+
@errors << @finding.error(x.path.to_s, 'meaningWhenMissing', 'Inconsistent missing meaning', x.meaningWhenMissing.tr(',', ';').to_s, y.meaningWhenMissing.tr(',', ';').to_s)
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
# check fixed values
|
|
307
|
+
if x.fixed.try(:type) != y.fixed.try(:type)
|
|
308
|
+
@errors << @finding.error(x.path.to_s, 'fixed', 'Incompatible fixed type', x.fixed.try(:type).to_s, y.fixed.try(:type).to_s)
|
|
309
|
+
end
|
|
310
|
+
if x.fixed != y.fixed
|
|
311
|
+
xfv = x.fixed.try(:value)
|
|
312
|
+
xfv = xfv.to_xml.delete(/\n/) if x.fixed.try(:value).methods.include?(:to_xml)
|
|
313
|
+
yfv = y.fixed.try(:value)
|
|
314
|
+
yfv = yfv.to_xml.delete(/\n/) if y.fixed.try(:value).methods.include?(:to_xml)
|
|
315
|
+
@errors << @finding.error(x.path.to_s, 'fixed', 'Incompatible fixed value', xfv.to_s, yfv.to_s)
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
# check min values
|
|
319
|
+
if x.min.try(:type) != y.min.try(:type)
|
|
320
|
+
@errors << @finding.error(x.path.to_s, 'min', 'Incompatible min type', x.min.try(:type).to_s, y.min.try(:type).to_s)
|
|
321
|
+
end
|
|
322
|
+
if x.min.try(:value) != y.min.try(:value)
|
|
323
|
+
@errors << @finding.error(x.path.to_s, 'min', 'Incompatible min value', x.min.try(:value).to_s, y.min.try(:value).to_s)
|
|
324
|
+
end
|
|
325
|
+
|
|
326
|
+
# check max values
|
|
327
|
+
if x.max.try(:type) != y.max.try(:type)
|
|
328
|
+
@errors << @finding.error(x.path.to_s, 'max', 'Incompatible max type', x.max.try(:type).to_s, y.max.try(:type).to_s)
|
|
329
|
+
end
|
|
330
|
+
if x.max.try(:value) != y.max.try(:value)
|
|
331
|
+
@errors << @finding.error(x.path.to_s, 'max', 'Incompatible max value', x.max.try(:value).to_s, y.max.try(:value).to_s)
|
|
332
|
+
end
|
|
333
|
+
|
|
334
|
+
# check pattern values
|
|
335
|
+
if x.pattern.try(:type) != y.pattern.try(:type)
|
|
336
|
+
@errors << @finding.error(x.path.to_s, 'pattern', 'Incompatible pattern type', x.pattern.try(:type).to_s, y.pattern.try(:type).to_s)
|
|
337
|
+
end
|
|
338
|
+
if x.pattern.try(:value) != y.pattern.try(:value)
|
|
339
|
+
@errors << @finding.error(x.path.to_s, 'pattern', 'Incompatible pattern value', x.pattern.try(:value).to_s, y.pattern.try(:value).to_s)
|
|
340
|
+
end
|
|
341
|
+
|
|
342
|
+
# maxLength (for Strings)
|
|
343
|
+
if x.maxLength != y.maxLength
|
|
344
|
+
@warnings << @finding.warning(x.path.to_s, 'maxLength', 'Inconsistent maximum length', x.maxLength.to_s, y.maxLength.to_s)
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
# constraints
|
|
348
|
+
x_constraints = x.constraint.map(&:xpath)
|
|
349
|
+
y_constraints = y.constraint.map(&:xpath)
|
|
350
|
+
x_only = x_constraints - y_constraints
|
|
351
|
+
y_only = y_constraints - x_constraints
|
|
352
|
+
shared = x_constraints - x_only
|
|
353
|
+
|
|
354
|
+
if !shared.nil? && shared.size.zero? && !x.constraint.empty? && !y.constraint.empty?
|
|
355
|
+
@errors << @finding.error(x.path.to_s, 'constraint.xpath', 'Incompatible constraints', x_constraints.map { |z| z.tr(',', ';') }.join(' && ').to_s, y_constraints.map { |z| z.tr(',', ';') }.join(' && ').to_s)
|
|
356
|
+
end
|
|
357
|
+
if !x_only.nil? && !x_only.empty?
|
|
358
|
+
@errors << @finding.error(x.path.to_s, 'constraint.xpath', 'Additional constraints', x_constraints.map { |z| z.tr(',', ';') }.join(' && ').to_s, '')
|
|
359
|
+
end
|
|
360
|
+
if !y_only.nil? && !y_only.empty?
|
|
361
|
+
@errors << @finding.error(x.path.to_s, 'constraint.xpath', 'Additional constraints', '', y_constraints.map { |z| z.tr(',', ';') }.join(' && ').to_s)
|
|
362
|
+
end
|
|
363
|
+
|
|
364
|
+
# mustSupports
|
|
365
|
+
if x.mustSupport != y.mustSupport
|
|
366
|
+
@warnings << @finding.warning(x.path.to_s, 'mustSupport', 'Inconsistent mustSupport', (x.mustSupport || false).to_s, (y.mustSupport || false).to_s)
|
|
367
|
+
end
|
|
368
|
+
|
|
369
|
+
# isModifier
|
|
370
|
+
return unless x.isModifier != y.isModifier
|
|
371
|
+
@errors << @finding.error(x.path.to_s, 'isModifier', 'Incompatible isModifier', (x.isModifier || false).to_s, (y.isModifier || false).to_s)
|
|
372
|
+
end
|
|
373
|
+
|
|
374
|
+
private :add_missing_elements, :compare_extension_definition, :compare_element_definitions
|
|
375
|
+
end
|
|
376
|
+
end
|
|
377
|
+
end
|