fhir_models 1.6.3 → 1.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +23 -0
- data/.gitignore +1 -2
- data/.rubocop.yml +1162 -0
- data/.travis.yml +6 -1
- data/Gemfile +3 -9
- data/Rakefile +13 -14
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/fhir_models.gemspec +34 -18
- data/lib/fhir_models.rb +23 -35
- data/lib/{bootstrap → fhir_models/bootstrap}/definitions.rb +25 -24
- data/lib/{bootstrap → fhir_models/bootstrap}/field.rb +5 -5
- data/lib/{bootstrap → fhir_models/bootstrap}/generator.rb +68 -69
- data/lib/{bootstrap → fhir_models/bootstrap}/hashable.rb +21 -20
- data/lib/{bootstrap → fhir_models/bootstrap}/json.rb +3 -4
- data/lib/{bootstrap → fhir_models/bootstrap}/model.rb +28 -24
- data/lib/{bootstrap → fhir_models/bootstrap}/preprocess.rb +19 -18
- data/lib/{bootstrap → fhir_models/bootstrap}/template.rb +15 -15
- data/lib/{bootstrap → fhir_models/bootstrap}/xml.rb +25 -25
- data/{definitions → lib/fhir_models/definitions}/schema/account.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/activitydefinition.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/allergyintolerance.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/appointment.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/appointmentresponse.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/auditevent.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/basic.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/binary.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/bodysite.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/bundle.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/careplan.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/careteam.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/claim.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/claimresponse.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/clinicalimpression.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/codesystem.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/communication.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/communicationrequest.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/compartmentdefinition.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/composition.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/conceptmap.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/condition.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/conformance.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/consent.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/contract.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/coverage.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/dataelement.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/decisionsupportrule.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/decisionsupportservicemodule.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/detectedissue.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/device.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/devicecomponent.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/devicemetric.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/deviceuserequest.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/deviceusestatement.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/diagnosticorder.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/diagnosticreport.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/diagnosticrequest.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/documentmanifest.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/documentreference.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/eligibilityrequest.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/eligibilityresponse.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/encounter.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/endpoint.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/enrollmentrequest.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/enrollmentresponse.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/episodeofcare.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/expansionprofile.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/explanationofbenefit.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/familymemberhistory.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/fhir-all.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/fhir-base.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/fhir-single-copy.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/fhir-single.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/fhir-xhtml.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/flag.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/goal.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/group.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/guidanceresponse.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/healthcareservice.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/imagingexcerpt.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/imagingmanifest.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/imagingobjectselection.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/imagingstudy.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/immunization.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/immunizationrecommendation.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/implementationguide.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/library.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/linkage.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/list.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/location.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/measure.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/measurereport.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/media.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/medication.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/medicationadministration.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/medicationdispense.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/medicationorder.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/medicationstatement.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/messageheader.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/moduledefinition.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/namingsystem.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/nutritionorder.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/nutritionrequest.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/observation.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/operationdefinition.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/operationoutcome.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/order.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/orderresponse.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/orderset.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/organization.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/parameters.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/patient.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/paymentnotice.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/paymentreconciliation.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/person.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/plandefinition.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/practitioner.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/practitionerrole.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/procedure.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/procedurerequest.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/processrequest.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/processresponse.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/protocol.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/provenance.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/questionnaire.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/questionnaireresponse.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/referralrequest.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/relatedperson.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/riskassessment.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/schedule.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/searchparameter.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/sequence.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/slot.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/specimen.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/structuredefinition.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/structuremap.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/subscription.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/substance.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/supplydelivery.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/supplyrequest.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/task.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/testscript.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/valueset.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/visionprescription.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/xml.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/schema/xmldsig-core-schema.xsd +0 -0
- data/{definitions → lib/fhir_models/definitions}/structures/extension-definitions.json +0 -0
- data/{definitions → lib/fhir_models/definitions}/structures/profiles-others.json +0 -0
- data/{definitions → lib/fhir_models/definitions}/structures/profiles-resources.json +0 -0
- data/{definitions → lib/fhir_models/definitions}/structures/profiles-types.json +0 -0
- data/{definitions → lib/fhir_models/definitions}/structures/search-parameters.json +0 -0
- data/{definitions → lib/fhir_models/definitions}/valuesets/expansions.json +0 -0
- data/{definitions → lib/fhir_models/definitions}/valuesets/v2-tables.json +0 -0
- data/{definitions → lib/fhir_models/definitions}/valuesets/v3-codesystems.json +0 -0
- data/{definitions → lib/fhir_models/definitions}/valuesets/valuesets.json +0 -0
- data/{definitions → lib/fhir_models/definitions}/version.info +0 -0
- data/{examples → lib/fhir_models/examples}/json/account-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/activitydefinition-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/allergyintolerance-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/appointment-example-request.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/appointment-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/appointment-example2doctors.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/appointmentresponse-example-req.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/appointmentresponse-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/audit-event-example-login.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/audit-event-example-logout.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/audit-event-example-media.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/audit-event-example-pixQuery.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/audit-event-example-search.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/audit-event-example-vread.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/auditevent-example-disclosure.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/auditevent-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/basic-example-narrative.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/basic-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/basic-example2.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/binary-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/bodysite-example-fetus.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/bodysite-example-skin-patch.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/bodysite-example-tumor.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/bundle-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/careplan-example-GPVisit.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/careplan-example-f001-heart.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/careplan-example-f002-lung.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/careplan-example-f003-pharynx.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/careplan-example-f201-renal.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/careplan-example-f202-malignancy.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/careplan-example-f203-sepsis.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/careplan-example-integrated.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/careplan-example-pregnancy.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/careplan-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/careteam-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/claim-example-institutional.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/claim-example-oral-average.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/claim-example-oral-contained-identifier.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/claim-example-oral-contained.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/claim-example-oral-identifier.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/claim-example-oral-orthoplan.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/claim-example-pharmacy.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/claim-example-professional.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/claim-example-vision-glasses.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/claim-example-vision.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/claim-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/claimresponse-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/clinicalimpression-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/codesystem-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/codesystem-list-example-codes.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/communication-example-fm-attachment.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/communication-example-fm-solicited-attachment.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/communication-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/communicationrequest-example-fm-solicit-attachment.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/communicationrequest-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/composition-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/conceptmap-example-specimen-type.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/conceptmap-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/condition-example-f001-heart.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/condition-example-f002-lung.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/condition-example-f003-abscess.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/condition-example-f201-fever.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/condition-example-f202-malignancy.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/condition-example-f203-sepsis.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/condition-example-f204-renal.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/condition-example-f205-infection.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/condition-example-stroke.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/condition-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/condition-example2.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/conformance-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/conformance-phr-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/consent-example-Emergency.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/consent-example-Out.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/consent-example-grantor.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/consent-example-notAuthor.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/consent-example-notOrg.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/consent-example-notThem.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/consent-example-notThis.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/consent-example-notTime.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/consent-example-pkb.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/consent-example-signature.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/consent-example-smartonfhir.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/consent-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/contract-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/coverage-example-2.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/coverage-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/dataelement-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/dataelement-labtestmaster-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/decisionsupportservicemodule-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/detectedissue-example-allergy.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/detectedissue-example-dup.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/detectedissue-example-lab.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/detectedissue-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/device-example-f001-feedingtube.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/device-example-ihe-pcd.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/device-example-pacemaker.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/device-example-software.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/device-example-udi1.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/device-example-udi2.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/device-example-udi3.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/device-example-udi4.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/device-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/devicecomponent-example-prodspec.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/devicecomponent-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/devicemetric-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/deviceuserequest-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/deviceusestatement-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/diagnosticreport-example-dxa.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/diagnosticreport-example-f001-bloodexam.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/diagnosticreport-example-f201-brainct.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/diagnosticreport-example-f202-bloodculture.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/diagnosticreport-example-ghp.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/diagnosticreport-example-lipids.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/diagnosticreport-example-papsmear.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/diagnosticreport-example-ultrasound.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/diagnosticreport-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/diagnosticreport-examples-general.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/diagnosticreport-genetics-example-2-familyhistory.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/diagnosticreport-hla-genetics-results-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/diagnosticrequest-example-di.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/diagnosticrequest-example-ft4.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/diagnosticrequest-example-lipid.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/diagnosticrequest-genetics-example-1.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/document-example-dischargesummary.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/documentreference-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/eligibilityrequest-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/eligibilityresponse-example-benefits.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/eligibilityresponse-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/encounter-example-f001-heart.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/encounter-example-f002-lung.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/encounter-example-f003-abscess.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/encounter-example-f201-20130404.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/encounter-example-f202-20130128.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/encounter-example-f203-20130311.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/encounter-example-home.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/encounter-example-xcda.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/encounter-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/endpoint-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/endpoint-examples-general-template.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/enrollmentrequest-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/enrollmentresponse-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/episodeofcare-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/expansionprofile-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/explanationofbenefit-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/extension-structuredefinition-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/familymemberhistory-example-mother.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/familymemberhistory-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/flag-example-encounter.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/flag-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/goal-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/group-example-member.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/group-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/guidanceresponse-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/healthcareservice-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/imagingmanifest-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/imagingstudy-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/immunization-example-refused.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/immunization-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/immunizationrecommendation-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/implementationguide-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/library-cms146-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/library-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/linkage-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/list-example-allergies.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/list-example-empty.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/list-example-familyhistory-f201-roel.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/list-example-familyhistory-genetics-profile-annie.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/list-example-familyhistory-genetics-profile.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/list-example-medlist.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/list-example-simple-empty.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/list-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/location-example-ambulance.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/location-example-hl7hq.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/location-example-patients-home.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/location-example-room.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/location-example-ukpharmacy.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/location-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/measurereport-cms146-cat1-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/measurereport-cms146-cat2-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/measurereport-cms146-cat3-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/media-example-dicom.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/media-example-sound.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/media-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/medicationadministrationexample3.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/medicationdispenseexample8.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/medicationexample0301.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/medicationexample0302.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/medicationexample0303.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/medicationexample0304.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/medicationexample0305.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/medicationexample0306.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/medicationexample0307.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/medicationexample0308.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/medicationexample0309.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/medicationexample0310.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/medicationexample0311.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/medicationexample0312.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/medicationexample0313.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/medicationexample0314.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/medicationexample0315.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/medicationexample0316.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/medicationexample0317.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/medicationexample0318.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/medicationexample0319.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/medicationexample0320.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/medicationexample0321.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/medicationexample1.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/medicationexample15.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/medicationorderexample1.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/medicationorderexample2.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/medicationstatementexample1.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/medicationstatementexample2.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/medicationstatementexample3.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/medicationstatementexample4.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/medicationstatementexample5.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/medicationstatementexample6.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/medicationstatementexample7.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/messageheader-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/namingsystem-example-id.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/namingsystem-example-replaced.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/namingsystem-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/nutritionrequest-example-cardiacdiet.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/nutritionrequest-example-diabeticdiet.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/nutritionrequest-example-diabeticsupplement.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/nutritionrequest-example-energysupplement.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/nutritionrequest-example-enteralbolus.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/nutritionrequest-example-enteralcontinuous.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/nutritionrequest-example-fiberrestricteddiet.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/nutritionrequest-example-infantenteral.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/nutritionrequest-example-proteinsupplement.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/nutritionrequest-example-pureeddiet-simple.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/nutritionrequest-example-pureeddiet.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/nutritionrequest-example-renaldiet.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/nutritionrequest-example-texture-modified.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/observation-example-10minute-apgar-score.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/observation-example-1minute-apgar-score.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/observation-example-20minute-apgar-score.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/observation-example-2minute-apgar-score.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/observation-example-5minute-apgar-score.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/observation-example-bloodpressure-cancel.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/observation-example-bloodpressure.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/observation-example-bmd.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/observation-example-eye-color.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/observation-example-f001-glucose.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/observation-example-f002-excess.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/observation-example-f003-co2.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/observation-example-f004-erythrocyte.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/observation-example-f005-hemoglobin.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/observation-example-f202-temperature.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/observation-example-f203-bicarbonate.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/observation-example-f204-creatinine.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/observation-example-f205-egfr.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/observation-example-f206-staphylococcus.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/observation-example-genetics-1.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/observation-example-genetics-2.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/observation-example-genetics-3.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/observation-example-genetics-4.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/observation-example-genetics-5.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/observation-example-glasgow-qa.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/observation-example-glasgow.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/observation-example-sample-data.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/observation-example-satO2.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/observation-example-unsat.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/observation-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/operationdefinition-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/operationoutcome-example-allok.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/operationoutcome-example-break-the-glass.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/operationoutcome-example-exception.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/operationoutcome-example-searchfail.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/operationoutcome-example-validationfail.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/operationoutcome-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/organization-example-f001-burgers.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/organization-example-f002-burgers-card.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/organization-example-f003-burgers-ENT.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/organization-example-f201-aumc.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/organization-example-f203-bumc.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/organization-example-gastro.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/organization-example-good-health-care.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/organization-example-insurer.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/organization-example-lab.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/organization-example-mmanu.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/organization-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/parameters-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/patient-example-a.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/patient-example-animal.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/patient-example-b.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/patient-example-c.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/patient-example-d.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/patient-example-dicom.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/patient-example-f001-pieter.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/patient-example-f201-roel.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/patient-example-ihe-pcd.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/patient-example-proband.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/patient-example-us-extensions.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/patient-example-xcda.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/patient-example-xds.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/patient-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/patient-examples-cypress-template.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/patient-examples-general.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/patient-genetics-example1.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/patient-glossy-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/paymentnotice-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/paymentreconciliation-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/person-example-f002-ariadne.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/person-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/plandefinition-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/plandefinition-protocol-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/practitioner-example-f001-evdb.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/practitioner-example-f002-pv.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/practitioner-example-f003-mv.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/practitioner-example-f004-rb.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/practitioner-example-f005-al.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/practitioner-example-f006-rvdb.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/practitioner-example-f007-sh.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/practitioner-example-f201-ab.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/practitioner-example-f202-lm.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/practitioner-example-f203-jvg.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/practitioner-example-f204-ce.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/practitioner-example-xcda-author.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/practitioner-example-xcda1.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/practitioner-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/practitioner-examples-general.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/practitionerrole-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/procedure-example-biopsy.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/procedure-example-f001-heart.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/procedure-example-f002-lung.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/procedure-example-f003-abscess.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/procedure-example-f004-tracheotomy.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/procedure-example-f201-tpf.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/procedure-example-implant.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/procedure-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/procedurerequest-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/processrequest-example-poll-eob.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/processrequest-example-poll-exclusive.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/processrequest-example-poll-inclusive.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/processrequest-example-poll-payrec.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/processrequest-example-poll-specific.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/processrequest-example-reprocess.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/processrequest-example-reverse.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/processrequest-example-status.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/processrequest-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/processresponse-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/provenance-example-sig.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/provenance-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/questionnaire-example-bluebook.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/questionnaire-example-f201-lifelines.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/questionnaire-example-gcs.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/questionnaire-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/questionnaireresponse-example-bluebook.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/questionnaireresponse-example-f201-lifelines.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/questionnaireresponse-example-gcs.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/questionnaireresponse-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/referralrequest-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/relatedperson-example-f001-sarah.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/relatedperson-example-f002-ariadne.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/relatedperson-example-peter.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/relatedperson-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/riskassessment-example-cardiac.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/riskassessment-example-population.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/riskassessment-example-prognosis.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/riskassessment-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/schedule-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/searchparameter-example-extension.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/searchparameter-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/sequence-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/slot-example-busy.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/slot-example-tentative.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/slot-example-unavailable.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/slot-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/specimen-example-isolate.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/specimen-example-serum.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/specimen-example-urine.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/specimen-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/structuredefinition-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/structuremap-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/subscription-example-error.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/subscription-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/substance-example-amoxicillin-clavulanate.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/substance-example-f201-dust.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/substance-example-f202-staphylococcus.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/substance-example-f203-potassium.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/substance-example-silver-nitrate-product.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/substance-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/supplydelivery-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/supplyrequest-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/task-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/testscript-example-multiserver.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/testscript-example-rule.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/testscript-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/valueset-example-expansion.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/valueset-example-intensional.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/valueset-example-yesnodontknow.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/valueset-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/valueset-list-example-codes.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/visionprescription-example-1.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/visionprescription-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/json/xds-example.json +0 -0
- data/{examples → lib/fhir_models/examples}/xml/account-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/activitydefinition-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/allergyintolerance-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/appointment-example-request.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/appointment-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/appointment-example2doctors.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/appointmentresponse-example-req.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/appointmentresponse-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/audit-event-example-login.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/audit-event-example-logout.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/audit-event-example-media.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/audit-event-example-pixQuery.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/audit-event-example-search.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/audit-event-example-vread.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/auditevent-example-disclosure.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/auditevent-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/basic-example-narrative.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/basic-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/basic-example2.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/binary-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/bodysite-example-fetus.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/bodysite-example-skin-patch.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/bodysite-example-tumor.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/bundle-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/careplan-example-GPVisit.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/careplan-example-f001-heart.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/careplan-example-f002-lung.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/careplan-example-f003-pharynx.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/careplan-example-f201-renal.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/careplan-example-f202-malignancy.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/careplan-example-f203-sepsis.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/careplan-example-integrated.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/careplan-example-pregnancy.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/careplan-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/careteam-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/claim-example-institutional.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/claim-example-oral-average.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/claim-example-oral-contained-identifier.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/claim-example-oral-contained.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/claim-example-oral-identifier.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/claim-example-oral-orthoplan.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/claim-example-pharmacy.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/claim-example-professional.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/claim-example-vision-glasses.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/claim-example-vision.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/claim-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/claimresponse-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/clinicalimpression-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/codesystem-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/codesystem-list-example-codes.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/communication-example-fm-attachment.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/communication-example-fm-solicited-attachment.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/communication-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/communicationrequest-example-fm-solicit-attachment.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/communicationrequest-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/composition-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/conceptmap-example-specimen-type.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/conceptmap-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/condition-example-f001-heart.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/condition-example-f002-lung.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/condition-example-f003-abscess.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/condition-example-f201-fever.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/condition-example-f202-malignancy.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/condition-example-f203-sepsis.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/condition-example-f204-renal.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/condition-example-f205-infection.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/condition-example-stroke.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/condition-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/condition-example2.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/conformance-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/conformance-phr-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/consent-example-Emergency.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/consent-example-Out.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/consent-example-grantor.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/consent-example-notAuthor.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/consent-example-notOrg.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/consent-example-notThem.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/consent-example-notThis.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/consent-example-notTime.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/consent-example-pkb.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/consent-example-signature.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/consent-example-smartonfhir.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/consent-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/contract-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/coverage-example-2.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/coverage-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/dataelement-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/dataelement-labtestmaster-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/decisionsupportservicemodule-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/detectedissue-example-allergy.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/detectedissue-example-dup.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/detectedissue-example-lab.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/detectedissue-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/device-example-f001-feedingtube.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/device-example-ihe-pcd.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/device-example-pacemaker.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/device-example-software.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/device-example-udi1.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/device-example-udi2.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/device-example-udi3.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/device-example-udi4.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/device-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/devicecomponent-example-prodspec.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/devicecomponent-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/devicemetric-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/deviceuserequest-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/deviceusestatement-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/diagnosticreport-example-dxa.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/diagnosticreport-example-f001-bloodexam.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/diagnosticreport-example-f201-brainct.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/diagnosticreport-example-f202-bloodculture.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/diagnosticreport-example-ghp.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/diagnosticreport-example-lipids.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/diagnosticreport-example-papsmear.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/diagnosticreport-example-ultrasound.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/diagnosticreport-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/diagnosticreport-examples-general.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/diagnosticreport-genetics-example-2-familyhistory.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/diagnosticreport-hla-genetics-results-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/diagnosticrequest-example-di.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/diagnosticrequest-example-ft4.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/diagnosticrequest-example-lipid.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/diagnosticrequest-genetics-example-1.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/document-example-dischargesummary.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/documentreference-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/eligibilityrequest-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/eligibilityresponse-example-benefits.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/eligibilityresponse-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/encounter-example-f001-heart.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/encounter-example-f002-lung.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/encounter-example-f003-abscess.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/encounter-example-f201-20130404.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/encounter-example-f202-20130128.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/encounter-example-f203-20130311.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/encounter-example-home.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/encounter-example-xcda.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/encounter-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/endpoint-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/endpoint-examples-general-template.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/enrollmentrequest-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/enrollmentresponse-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/episodeofcare-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/expansionprofile-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/explanationofbenefit-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/extension-structuredefinition-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/familymemberhistory-example-mother.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/familymemberhistory-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/flag-example-encounter.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/flag-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/goal-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/group-example-member.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/group-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/guidanceresponse-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/healthcareservice-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/imagingmanifest-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/imagingstudy-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/immunization-example-refused.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/immunization-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/immunizationrecommendation-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/implementationguide-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/library-cms146-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/library-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/linkage-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/list-example-allergies.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/list-example-empty.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/list-example-familyhistory-f201-roel.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/list-example-familyhistory-genetics-profile-annie.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/list-example-familyhistory-genetics-profile.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/list-example-medlist.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/list-example-simple-empty.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/list-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/location-example-ambulance.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/location-example-hl7hq.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/location-example-patients-home.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/location-example-room.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/location-example-ukpharmacy.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/location-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/measurereport-cms146-cat1-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/measurereport-cms146-cat2-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/measurereport-cms146-cat3-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/media-example-dicom.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/media-example-sound.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/media-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/medicationadministrationexample3.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/medicationdispenseexample8.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/medicationexample0301.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/medicationexample0302.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/medicationexample0303.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/medicationexample0304.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/medicationexample0305.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/medicationexample0306.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/medicationexample0307.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/medicationexample0308.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/medicationexample0309.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/medicationexample0310.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/medicationexample0311.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/medicationexample0312.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/medicationexample0313.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/medicationexample0314.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/medicationexample0315.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/medicationexample0316.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/medicationexample0317.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/medicationexample0318.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/medicationexample0319.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/medicationexample0320.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/medicationexample0321.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/medicationexample1.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/medicationexample15.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/medicationorderexample1.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/medicationorderexample2.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/medicationstatementexample1.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/medicationstatementexample2.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/medicationstatementexample3.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/medicationstatementexample4.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/medicationstatementexample5.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/medicationstatementexample6.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/medicationstatementexample7.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/messageheader-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/namingsystem-example-id.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/namingsystem-example-replaced.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/namingsystem-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/nutritionrequest-example-cardiacdiet.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/nutritionrequest-example-diabeticdiet.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/nutritionrequest-example-diabeticsupplement.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/nutritionrequest-example-energysupplement.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/nutritionrequest-example-enteralbolus.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/nutritionrequest-example-enteralcontinuous.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/nutritionrequest-example-fiberrestricteddiet.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/nutritionrequest-example-infantenteral.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/nutritionrequest-example-proteinsupplement.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/nutritionrequest-example-pureeddiet-simple.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/nutritionrequest-example-pureeddiet.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/nutritionrequest-example-renaldiet.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/nutritionrequest-example-texture-modified.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/observation-example-10minute-apgar-score.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/observation-example-1minute-apgar-score.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/observation-example-20minute-apgar-score.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/observation-example-2minute-apgar-score.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/observation-example-5minute-apgar-score.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/observation-example-bloodpressure-cancel.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/observation-example-bloodpressure.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/observation-example-bmd.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/observation-example-eye-color.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/observation-example-f001-glucose.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/observation-example-f002-excess.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/observation-example-f003-co2.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/observation-example-f004-erythrocyte.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/observation-example-f005-hemoglobin.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/observation-example-f202-temperature.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/observation-example-f203-bicarbonate.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/observation-example-f204-creatinine.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/observation-example-f205-egfr.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/observation-example-f206-staphylococcus.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/observation-example-genetics-1.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/observation-example-genetics-2.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/observation-example-genetics-3.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/observation-example-genetics-4.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/observation-example-genetics-5.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/observation-example-glasgow-qa.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/observation-example-glasgow.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/observation-example-sample-data.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/observation-example-satO2.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/observation-example-unsat.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/observation-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/operationdefinition-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/operationoutcome-example-allok.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/operationoutcome-example-break-the-glass.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/operationoutcome-example-exception.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/operationoutcome-example-searchfail.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/operationoutcome-example-validationfail.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/operationoutcome-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/organization-example-f001-burgers.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/organization-example-f002-burgers-card.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/organization-example-f003-burgers-ENT.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/organization-example-f201-aumc.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/organization-example-f203-bumc.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/organization-example-gastro.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/organization-example-good-health-care.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/organization-example-insurer.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/organization-example-lab.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/organization-example-mmanu.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/organization-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/parameters-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/patient-example-a.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/patient-example-animal.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/patient-example-b.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/patient-example-c.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/patient-example-d.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/patient-example-dicom.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/patient-example-f001-pieter.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/patient-example-f201-roel.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/patient-example-ihe-pcd.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/patient-example-proband.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/patient-example-us-extensions.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/patient-example-xcda.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/patient-example-xds.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/patient-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/patient-examples-cypress-template.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/patient-examples-general.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/patient-genetics-example1.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/patient-glossy-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/paymentnotice-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/paymentreconciliation-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/person-example-f002-ariadne.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/person-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/plandefinition-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/plandefinition-protocol-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/practitioner-example-f001-evdb.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/practitioner-example-f002-pv.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/practitioner-example-f003-mv.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/practitioner-example-f004-rb.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/practitioner-example-f005-al.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/practitioner-example-f006-rvdb.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/practitioner-example-f007-sh.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/practitioner-example-f201-ab.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/practitioner-example-f202-lm.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/practitioner-example-f203-jvg.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/practitioner-example-f204-ce.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/practitioner-example-xcda-author.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/practitioner-example-xcda1.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/practitioner-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/practitioner-examples-general.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/practitionerrole-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/procedure-example-biopsy.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/procedure-example-f001-heart.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/procedure-example-f002-lung.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/procedure-example-f003-abscess.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/procedure-example-f004-tracheotomy.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/procedure-example-f201-tpf.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/procedure-example-implant.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/procedure-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/procedurerequest-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/processrequest-example-poll-eob.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/processrequest-example-poll-exclusive.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/processrequest-example-poll-inclusive.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/processrequest-example-poll-payrec.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/processrequest-example-poll-specific.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/processrequest-example-reprocess.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/processrequest-example-reverse.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/processrequest-example-status.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/processrequest-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/processresponse-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/provenance-example-sig.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/provenance-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/questionnaire-example-bluebook.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/questionnaire-example-f201-lifelines.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/questionnaire-example-gcs.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/questionnaire-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/questionnaireresponse-example-bluebook.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/questionnaireresponse-example-f201-lifelines.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/questionnaireresponse-example-gcs.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/questionnaireresponse-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/referralrequest-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/relatedperson-example-f001-sarah.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/relatedperson-example-f002-ariadne.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/relatedperson-example-peter.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/relatedperson-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/riskassessment-example-cardiac.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/riskassessment-example-population.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/riskassessment-example-prognosis.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/riskassessment-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/schedule-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/searchparameter-example-extension.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/searchparameter-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/sequence-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/slot-example-busy.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/slot-example-tentative.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/slot-example-unavailable.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/slot-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/specimen-example-isolate.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/specimen-example-serum.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/specimen-example-urine.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/specimen-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/structuredefinition-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/structuremap-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/subscription-example-error.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/subscription-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/substance-example-amoxicillin-clavulanate.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/substance-example-f201-dust.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/substance-example-f202-staphylococcus.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/substance-example-f203-potassium.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/substance-example-silver-nitrate-product.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/substance-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/supplydelivery-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/supplyrequest-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/task-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/testscript-example-multiserver.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/testscript-example-rule.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/testscript-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/valueset-example-expansion.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/valueset-example-intensional.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/valueset-example-yesnodontknow.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/valueset-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/valueset-list-example-codes.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/visionprescription-example-1.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/visionprescription-example.xml +0 -0
- data/{examples → lib/fhir_models/examples}/xml/xds-example.xml +0 -0
- data/lib/{fhir.rb → fhir_models/fhir.rb} +3 -2
- data/lib/fhir_models/fhir/metadata.rb +26 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Account.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/ActivityDefinition.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/AllergyIntolerance.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Appointment.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/AppointmentResponse.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/AuditEvent.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Basic.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Binary.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/BodySite.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Bundle.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/CarePlan.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/CareTeam.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Claim.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/ClaimResponse.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/ClinicalImpression.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/CodeSystem.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Communication.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/CommunicationRequest.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/CompartmentDefinition.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Composition.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/ConceptMap.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Condition.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Conformance.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Consent.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Contract.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Coverage.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/DataElement.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/DecisionSupportServiceModule.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/DetectedIssue.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Device.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/DeviceComponent.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/DeviceMetric.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/DeviceUseRequest.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/DeviceUseStatement.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/DiagnosticReport.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/DiagnosticRequest.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/DocumentManifest.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/DocumentReference.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/DomainResource.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/EligibilityRequest.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/EligibilityResponse.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Encounter.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Endpoint.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/EnrollmentRequest.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/EnrollmentResponse.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/EpisodeOfCare.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/ExpansionProfile.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/ExplanationOfBenefit.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/FamilyMemberHistory.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Flag.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Goal.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Group.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/GuidanceResponse.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/HealthcareService.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/ImagingManifest.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/ImagingStudy.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Immunization.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/ImmunizationRecommendation.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/ImplementationGuide.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Library.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Linkage.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/List.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Location.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Measure.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/MeasureReport.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Media.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Medication.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/MedicationAdministration.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/MedicationDispense.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/MedicationOrder.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/MedicationStatement.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/MessageHeader.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/NamingSystem.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/NutritionRequest.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Observation.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/OperationDefinition.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/OperationOutcome.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Organization.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Parameters.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Patient.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/PaymentNotice.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/PaymentReconciliation.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Person.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/PlanDefinition.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Practitioner.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/PractitionerRole.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Procedure.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/ProcedureRequest.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/ProcessRequest.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/ProcessResponse.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Provenance.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Questionnaire.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/QuestionnaireResponse.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/ReferralRequest.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/RelatedPerson.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Resource.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/RiskAssessment.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Schedule.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/SearchParameter.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Sequence.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Slot.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Specimen.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/StructureDefinition.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/StructureMap.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Subscription.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Substance.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/SupplyDelivery.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/SupplyRequest.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/Task.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/TestScript.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/ValueSet.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/resources/VisionPrescription.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/types/Address.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/types/Age.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/types/Annotation.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/types/Attachment.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/types/BackboneElement.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/types/CodeableConcept.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/types/Coding.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/types/ContactDetail.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/types/ContactPoint.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/types/Contributor.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/types/Count.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/types/DataRequirement.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/types/Distance.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/types/Duration.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/types/Element.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/types/ElementDefinition.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/types/Extension.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/types/HumanName.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/types/Identifier.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/types/Meta.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/types/Money.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/types/Narrative.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/types/ParameterDefinition.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/types/Period.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/types/Quantity.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/types/Range.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/types/Ratio.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/types/Reference.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/types/RelatedResource.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/types/SampledData.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/types/Signature.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/types/Timing.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/types/TriggerDefinition.rb +0 -0
- data/lib/{fhir → fhir_models/fhir}/types/UsageContext.rb +0 -0
- data/lib/{fhir_ext → fhir_models/fhir_ext}/StructureDefinition.rb +118 -121
- data/lib/{fhir_ext → fhir_models/fhir_ext}/StructureDefinitionFinding.rb +5 -5
- data/lib/{fluentpath → fhir_models/fluentpath}/evaluate.rb +88 -88
- data/lib/{fluentpath → fhir_models/fluentpath}/expression.rb +4 -4
- data/lib/{fluentpath → fhir_models/fluentpath}/parse.rb +8 -8
- data/lib/{tasks → fhir_models/tasks}/tasks.rake +41 -41
- data/lib/fhir_models/version.rb +5 -0
- metadata +1215 -1174
- data/lib/fhir/metadata.rb +0 -26
- data/test/test_helper.rb +0 -10
- data/test/unit/contents_test.rb +0 -35
- data/test/unit/equality_test.rb +0 -79
- data/test/unit/expansions_test.rb +0 -18
- data/test/unit/extension_by_name_test.rb +0 -45
- data/test/unit/fluentpath/and_or_not_test.rb +0 -69
- data/test/unit/fluentpath/convert_to_boolean_test.rb +0 -59
- data/test/unit/fluentpath/existence_test.rb +0 -154
- data/test/unit/fluentpath/extension_test.rb +0 -54
- data/test/unit/fluentpath/fluent_equality_test.rb +0 -249
- data/test/unit/fluentpath/invariants_test.rb +0 -293
- data/test/unit/fluentpath/math_test.rb +0 -62
- data/test/unit/fluentpath/path_test.rb +0 -118
- data/test/unit/fluentpath/string_test.rb +0 -38
- data/test/unit/json_format_test.rb +0 -171
- data/test/unit/json_validation_test.rb +0 -36
- data/test/unit/multiple_types_test.rb +0 -76
- data/test/unit/profile_validation_test.rb +0 -39
- data/test/unit/xml_format_test.rb +0 -120
- data/test/unit/xml_schema_validation_test.rb +0 -69
- data/test/unit/xml_validation_test.rb +0 -49
data/.travis.yml
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
-
- "2.
|
3
|
+
- "2.1.10"
|
4
|
+
- "2.2.5"
|
5
|
+
- "2.3.1"
|
4
6
|
script:
|
5
7
|
- bundle exec rake test
|
6
8
|
notifications:
|
@@ -8,3 +10,6 @@ notifications:
|
|
8
10
|
recipients:
|
9
11
|
- healthcare-ci@googlegroups.com
|
10
12
|
on_failure: change
|
13
|
+
addons:
|
14
|
+
code_climate:
|
15
|
+
repo_token: 0230b3379581b30743b7b4355d7394e427648e604d19a2aba987956201eee290
|
data/Gemfile
CHANGED
@@ -1,10 +1,4 @@
|
|
1
|
-
source
|
2
|
-
gemspec
|
1
|
+
source 'https://rubygems.org'
|
3
2
|
|
4
|
-
|
5
|
-
|
6
|
-
gem 'minitest', "~> 4.0"
|
7
|
-
gem 'turn'
|
8
|
-
gem 'awesome_print', :require => 'ap'
|
9
|
-
gem 'nokogiri-diff'
|
10
|
-
end
|
3
|
+
# Specify your gem's dependencies in fhir_models.gemspec
|
4
|
+
gemspec
|
data/Rakefile
CHANGED
@@ -1,25 +1,24 @@
|
|
1
|
-
require '
|
1
|
+
require 'bundler/gem_tasks'
|
2
2
|
require 'rake/testtask'
|
3
|
-
require '
|
4
|
-
require 'pry'
|
3
|
+
require 'rubocop/rake_task'
|
5
4
|
|
6
|
-
|
7
|
-
|
8
|
-
# Pull in any rake task defined in lib/tasks
|
9
|
-
Dir['lib/tasks/**/*.rake'].sort.each do |ext|
|
10
|
-
load ext
|
5
|
+
Dir['lib/fhir_models/tasks/**/*.rake'].each do |file|
|
6
|
+
load file
|
11
7
|
end
|
12
8
|
|
13
|
-
desc
|
14
|
-
Rake::TestTask.new(:
|
15
|
-
t.libs <<
|
9
|
+
desc 'Run basic tests'
|
10
|
+
Rake::TestTask.new(:test) do |t|
|
11
|
+
t.libs << 'test'
|
16
12
|
t.test_files = FileList['test/**/*_test.rb']
|
17
13
|
t.verbose = true
|
18
14
|
t.warning = false
|
19
15
|
end
|
20
16
|
|
21
|
-
|
22
|
-
|
17
|
+
desc 'Run rubocop'
|
18
|
+
task :rubocop do
|
19
|
+
RuboCop::RakeTask.new
|
23
20
|
end
|
24
21
|
|
25
|
-
task :
|
22
|
+
task default: [:test, :rubocop] do
|
23
|
+
system('open coverage/index.html')
|
24
|
+
end
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'fhir_models'
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require 'irb'
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
data/fhir_models.gemspec
CHANGED
@@ -1,20 +1,36 @@
|
|
1
|
-
#
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'fhir_models/version'
|
2
5
|
|
3
|
-
Gem::Specification.new do |
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'fhir_models'
|
8
|
+
spec.version = FHIR::Models::VERSION
|
9
|
+
spec.authors = ['Jason Walonoski', 'Andre Quina', "Michael O'Keefe"]
|
10
|
+
spec.email = ['jwalonoski@mitre.org']
|
11
|
+
|
12
|
+
spec.summary = %q{A Gem for handling FHIR models in ruby}
|
13
|
+
spec.description = %q{A Gem for handling FHIR models in ruby}
|
14
|
+
spec.homepage = 'https://github.com/fhir-crucible/fhir_models'
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
17
|
+
f.match(%r{^(test|spec|features)/})
|
18
|
+
end
|
19
|
+
spec.bindir = 'exe'
|
20
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
|
+
spec.require_paths = ['lib']
|
22
|
+
|
23
|
+
spec.add_dependency 'nokogiri', '>= 1.6'
|
24
|
+
spec.add_dependency 'date_time_precision', '>= 0.8'
|
25
|
+
spec.add_dependency 'bcp47', '>= 0.3'
|
26
|
+
spec.add_dependency 'mime-types', '>= 1.16', '< 3'
|
27
|
+
|
28
|
+
spec.add_development_dependency 'bundler', '~> 1.13'
|
29
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
30
|
+
spec.add_development_dependency 'pry'
|
31
|
+
spec.add_development_dependency 'test-unit'
|
32
|
+
spec.add_development_dependency 'simplecov'
|
33
|
+
spec.add_development_dependency 'nokogiri-diff'
|
34
|
+
spec.add_development_dependency 'rubocop', '~> 0.43.0'
|
35
|
+
spec.add_development_dependency 'codeclimate-test-reporter'
|
20
36
|
end
|
data/lib/fhir_models.rb
CHANGED
@@ -1,44 +1,32 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
require 'fhir_models/version'
|
2
|
+
|
3
|
+
# TODO what are these for? Nothing seems to use them.
|
3
4
|
require 'yaml'
|
4
|
-
require 'nokogiri'
|
5
5
|
require 'date_time_precision'
|
6
6
|
require 'date_time_precision/format/iso8601'
|
7
|
-
require 'mime/types'
|
8
|
-
require 'bcp47'
|
9
|
-
require 'bigdecimal'
|
10
|
-
require 'logger'
|
11
|
-
require 'tempfile'
|
12
|
-
|
13
|
-
root = File.expand_path '..', File.dirname(File.absolute_path(__FILE__))
|
14
7
|
|
15
|
-
|
16
|
-
require
|
17
|
-
|
18
|
-
|
19
|
-
Dir
|
20
|
-
|
21
|
-
end
|
22
|
-
Dir.glob(File.join(root, 'lib','bootstrap','**','*.rb')).each do |file|
|
23
|
-
require file
|
24
|
-
end
|
8
|
+
Dir.chdir('lib') do
|
9
|
+
# Need to require Hashable first
|
10
|
+
require_relative 'fhir_models/bootstrap/hashable'
|
11
|
+
require_relative 'fhir_models/bootstrap/json'
|
12
|
+
Dir['fhir_models/bootstrap/*.rb'].each do |file|
|
13
|
+
require_relative file
|
14
|
+
end
|
25
15
|
|
26
|
-
|
16
|
+
require_relative 'fhir_models/fhir'
|
27
17
|
|
28
|
-
#
|
29
|
-
Dir
|
30
|
-
|
31
|
-
end
|
32
|
-
Dir.glob(File.join(root, 'lib','fhir','**','*.rb')).each do |file|
|
33
|
-
require file
|
34
|
-
end
|
18
|
+
# require generated models
|
19
|
+
Dir['fhir_models/fhir/**/*.rb'].each do |file|
|
20
|
+
require_relative file
|
21
|
+
end
|
35
22
|
|
36
|
-
#
|
37
|
-
Dir
|
38
|
-
|
39
|
-
end
|
23
|
+
# require fluentpath code
|
24
|
+
Dir['fhir_models/fluentpath/*.rb'].each do |file|
|
25
|
+
require_relative file
|
26
|
+
end
|
40
27
|
|
41
|
-
#
|
42
|
-
Dir
|
43
|
-
|
28
|
+
# require fhir_ext code
|
29
|
+
Dir['fhir_models/fhir_ext/*.rb'].each do |file|
|
30
|
+
require_relative file
|
31
|
+
end
|
44
32
|
end
|
@@ -1,7 +1,8 @@
|
|
1
|
+
require 'tempfile'
|
1
2
|
module FHIR
|
2
3
|
class Definitions
|
3
4
|
|
4
|
-
@@defns = File.expand_path '
|
5
|
+
@@defns = File.expand_path '../definitions', File.dirname(File.absolute_path(__FILE__))
|
5
6
|
@@types = nil
|
6
7
|
@@resources = nil
|
7
8
|
@@profiles = nil
|
@@ -17,8 +18,8 @@ module FHIR
|
|
17
18
|
def self.load_types
|
18
19
|
if @@types.nil?
|
19
20
|
# load the types
|
20
|
-
filename = File.join(@@defns,'structures','profiles-types.json')
|
21
|
-
raw = File.open(filename,'r:UTF-8'
|
21
|
+
filename = File.join(@@defns, 'structures', 'profiles-types.json')
|
22
|
+
raw = File.open(filename, 'r:UTF-8', &:read)
|
22
23
|
@@types = JSON.parse(raw)['entry'].map{|e|e['resource']}
|
23
24
|
end
|
24
25
|
end
|
@@ -51,8 +52,8 @@ module FHIR
|
|
51
52
|
def self.load_resources
|
52
53
|
if @@resources.nil?
|
53
54
|
# load the resources
|
54
|
-
filename = File.join(@@defns,'structures','profiles-resources.json')
|
55
|
-
raw = File.open(filename,'r:UTF-8'
|
55
|
+
filename = File.join(@@defns, 'structures', 'profiles-resources.json')
|
56
|
+
raw = File.open(filename, 'r:UTF-8', &:read)
|
56
57
|
@@resources = JSON.parse(raw)['entry'].map{|e|e['resource']}
|
57
58
|
end
|
58
59
|
end
|
@@ -73,8 +74,8 @@ module FHIR
|
|
73
74
|
def self.load_profiles
|
74
75
|
if @@profiles.nil?
|
75
76
|
# load the built-in profiles
|
76
|
-
filename = File.join(@@defns,'structures','profiles-others.json')
|
77
|
-
raw = File.open(filename,'r:UTF-8'
|
77
|
+
filename = File.join(@@defns, 'structures', 'profiles-others.json')
|
78
|
+
raw = File.open(filename, 'r:UTF-8', &:read)
|
78
79
|
@@profiles = JSON.parse(raw)['entry'].map{|e|e['resource']}
|
79
80
|
end
|
80
81
|
end
|
@@ -82,8 +83,8 @@ module FHIR
|
|
82
83
|
def self.load_extensions
|
83
84
|
if @@extensions.nil?
|
84
85
|
# load the built-in extensions
|
85
|
-
filename = File.join(@@defns,'structures','extension-definitions.json')
|
86
|
-
raw = File.open(filename,'r:UTF-8'
|
86
|
+
filename = File.join(@@defns, 'structures', 'extension-definitions.json')
|
87
|
+
raw = File.open(filename, 'r:UTF-8', &:read)
|
87
88
|
@@extensions = JSON.parse(raw)['entry'].map{|e|e['resource']}
|
88
89
|
end
|
89
90
|
end
|
@@ -143,10 +144,10 @@ module FHIR
|
|
143
144
|
if !defn.nil?
|
144
145
|
generator = FHIR::Boot::Generator.new(false)
|
145
146
|
type = defn['baseType']
|
146
|
-
id = defn['id'].gsub(/-|_/,'').capitalize
|
147
|
+
id = defn['id'].gsub(/-|_/, '').capitalize
|
147
148
|
defn['id'] = type # override profile id with baseType name for generator
|
148
|
-
template = generator.generate_class([ type ],defn)
|
149
|
-
f = Tempfile.new(["profile-#{id}",'.rb'])
|
149
|
+
template = generator.generate_class([ type ], defn)
|
150
|
+
f = Tempfile.new(["profile-#{id}", '.rb'])
|
150
151
|
f.write("module FHIR\n")
|
151
152
|
f.write("module Profile\n")
|
152
153
|
f.write("module #{id}\n")
|
@@ -158,7 +159,7 @@ module FHIR
|
|
158
159
|
load f
|
159
160
|
# set the return class type
|
160
161
|
klass = Object.const_get("FHIR::Profile::#{id}::#{type}")
|
161
|
-
rescue
|
162
|
+
rescue
|
162
163
|
FHIR.logger.error "Failed to generate class for profile #{uri}"
|
163
164
|
end
|
164
165
|
# unlink the file so it can be garbage collected
|
@@ -174,14 +175,14 @@ module FHIR
|
|
174
175
|
def self.load_expansions
|
175
176
|
if @@expansions.nil?
|
176
177
|
# load the expansions
|
177
|
-
filename = File.join(@@defns,'valuesets','expansions.json')
|
178
|
-
raw = File.open(filename,'r:UTF-8'
|
178
|
+
filename = File.join(@@defns, 'valuesets', 'expansions.json')
|
179
|
+
raw = File.open(filename, 'r:UTF-8', &:read)
|
179
180
|
@@expansions = JSON.parse(raw)['entry'].map{|e|e['resource']}
|
180
181
|
end
|
181
182
|
if @@valuesets.nil?
|
182
183
|
# load the valuesets
|
183
|
-
filename = File.join(@@defns,'valuesets','valuesets.json')
|
184
|
-
raw = File.open(filename,'r:UTF-8'
|
184
|
+
filename = File.join(@@defns, 'valuesets', 'valuesets.json')
|
185
|
+
raw = File.open(filename, 'r:UTF-8', &:read)
|
185
186
|
@@valuesets = JSON.parse(raw)['entry'].map{|e|e['resource']}
|
186
187
|
end
|
187
188
|
end
|
@@ -203,7 +204,7 @@ module FHIR
|
|
203
204
|
included_systems = valueset['compose']['include'].map{|x|x['system']}.uniq
|
204
205
|
included_systems.each{|x| codes[x]=[] if !codes.keys.include?(x) }
|
205
206
|
systems = @@valuesets.select{|x|x['resourceType']=='CodeSystem' && included_systems.include?(x['url'])}
|
206
|
-
systems.each do |x|
|
207
|
+
systems.each do |x|
|
207
208
|
x['concept'].each{|y| codes[x['url']] << y['code']}
|
208
209
|
end
|
209
210
|
end
|
@@ -218,16 +219,16 @@ module FHIR
|
|
218
219
|
def self.load_search_params
|
219
220
|
if @@search_params.nil?
|
220
221
|
# load the search parameters
|
221
|
-
filename = File.join(@@defns,'structures','search-parameters.json')
|
222
|
-
raw = File.open(filename,'r:UTF-8'
|
223
|
-
@@search_params = JSON.parse(raw)['entry'].map{|e|e['resource']}
|
222
|
+
filename = File.join(@@defns, 'structures', 'search-parameters.json')
|
223
|
+
raw = File.open(filename, 'r:UTF-8', &:read)
|
224
|
+
@@search_params = JSON.parse(raw)['entry'].map{|e|e['resource']}
|
224
225
|
end
|
225
226
|
end
|
226
227
|
|
227
|
-
def self.get_search_parameters(
|
228
|
-
return nil if
|
228
|
+
def self.get_search_parameters(type_name)
|
229
|
+
return nil if type_name.nil?
|
229
230
|
load_search_params
|
230
|
-
@@search_params.select{|p|p['base']==
|
231
|
+
@@search_params.select{|p|p['base']==type_name && p['xpath'] && !p['xpath'].include?('extension')}.map{|p|p['code']}
|
231
232
|
end
|
232
233
|
|
233
234
|
private_class_method :load_types, :load_extensions, :load_expansions, :load_profiles, :load_resources, :load_search_params
|
@@ -26,9 +26,9 @@ module FHIR
|
|
26
26
|
hash[v.to_s[1..-1]] = self.instance_variable_get(v)
|
27
27
|
end
|
28
28
|
hash.delete('name')
|
29
|
-
hash.keep_if do |
|
30
|
-
!value.nil? && ( (value.is_a?(Hash) && !value.empty?) ||
|
31
|
-
(value.is_a?(Array) && !value.empty?) ||
|
29
|
+
hash.keep_if do |_key, value|
|
30
|
+
!value.nil? && ( (value.is_a?(Hash) && !value.empty?) ||
|
31
|
+
(value.is_a?(Array) && !value.empty?) ||
|
32
32
|
(!value.is_a?(Hash) && !value.is_a?(Array))
|
33
33
|
)
|
34
34
|
end
|
@@ -37,9 +37,9 @@ module FHIR
|
|
37
37
|
|
38
38
|
def fix_name(name)
|
39
39
|
fix = nil
|
40
|
-
fix = "local_#{name}" if ['class','method','resourceType'].include?(name)
|
40
|
+
fix = "local_#{name}" if ['class', 'method', 'resourceType'].include?(name)
|
41
41
|
fix
|
42
42
|
end
|
43
43
|
|
44
44
|
end
|
45
|
-
end
|
45
|
+
end
|
@@ -7,7 +7,7 @@ module FHIR
|
|
7
7
|
# templates keeps track of all the templates in context within a given StructureDefinition
|
8
8
|
attr_accessor :templates
|
9
9
|
|
10
|
-
def initialize(auto_setup=true)
|
10
|
+
def initialize(auto_setup=true)
|
11
11
|
# load the valueset expansions
|
12
12
|
@defn = FHIR::Definitions
|
13
13
|
# templates is an array
|
@@ -18,18 +18,18 @@ module FHIR
|
|
18
18
|
def setup
|
19
19
|
# make folders for generated content if they do not exist
|
20
20
|
@lib = File.expand_path '..', File.dirname(File.absolute_path(__FILE__))
|
21
|
-
Dir.mkdir(File.join(@lib,'fhir')) if !Dir.
|
22
|
-
Dir.mkdir(File.join(@lib,'fhir','types')) if !Dir.
|
23
|
-
Dir.mkdir(File.join(@lib,'fhir','resources')) if !Dir.
|
21
|
+
Dir.mkdir(File.join(@lib, 'fhir')) if !Dir.exist?(File.join(@lib, 'fhir'))
|
22
|
+
Dir.mkdir(File.join(@lib, 'fhir', 'types')) if !Dir.exist?(File.join(@lib, 'fhir', 'types'))
|
23
|
+
Dir.mkdir(File.join(@lib, 'fhir', 'resources')) if !Dir.exist?(File.join(@lib, 'fhir', 'resources'))
|
24
24
|
|
25
25
|
# delete previously generated folder contents
|
26
|
-
Dir.glob(File.join(@lib,'fhir','*')).each{|f|File.delete(f) if !File.directory?(f)}
|
27
|
-
Dir.glob(File.join(@lib,'fhir','**','*')).each{|f|File.delete(f) if !File.directory?(f)}
|
26
|
+
Dir.glob(File.join(@lib, 'fhir', '*')).each{|f|File.delete(f) if !File.directory?(f)}
|
27
|
+
Dir.glob(File.join(@lib, 'fhir', '**', '*')).each{|f|File.delete(f) if !File.directory?(f)}
|
28
28
|
end
|
29
29
|
|
30
30
|
def generate_metadata
|
31
|
-
template = FHIR::Boot::Template.new([],true)
|
32
|
-
|
31
|
+
template = FHIR::Boot::Template.new([], true)
|
32
|
+
|
33
33
|
primitives = @defn.get_primitive_types
|
34
34
|
hash = {}
|
35
35
|
primitives.each do |p|
|
@@ -40,18 +40,17 @@ module FHIR
|
|
40
40
|
type = p['snapshot']['element'].select{|e| e['path'].end_with?('.value')}.first['type'].first
|
41
41
|
|
42
42
|
# try to find the JSON data type
|
43
|
-
|
44
|
-
|
43
|
+
ext = type['_code']['extension'].find{|e| e['url']=='http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type'}
|
44
|
+
if ext
|
45
45
|
field.type = ext['valueString']
|
46
|
-
|
46
|
+
else
|
47
47
|
field.type = 'string'
|
48
48
|
end
|
49
49
|
|
50
50
|
# try to find a regex
|
51
|
-
|
52
|
-
ext = type['extension'].
|
53
|
-
field.regex = ext['valueString']
|
54
|
-
rescue
|
51
|
+
if type['extension']
|
52
|
+
ext = type['extension'].find{|e| e['url']=='http://hl7.org/fhir/StructureDefinition/structuredefinition-regex'}
|
53
|
+
field.regex = ext['valueString'] if ext
|
55
54
|
end
|
56
55
|
|
57
56
|
hash[ p['id' ] ] = field.serialize
|
@@ -63,67 +62,67 @@ module FHIR
|
|
63
62
|
# resources
|
64
63
|
template.constants['RESOURCES'] = @defn.get_resource_definitions.map{|r|r['id']}
|
65
64
|
|
66
|
-
filename = File.join(@lib,'fhir','metadata.rb')
|
67
|
-
file = File.open(filename,'w:UTF-8')
|
65
|
+
filename = File.join(@lib, 'fhir', 'metadata.rb')
|
66
|
+
file = File.open(filename, 'w:UTF-8')
|
68
67
|
file.write(template.to_s)
|
69
68
|
file.close
|
70
69
|
end
|
71
70
|
|
72
71
|
def generate_types
|
73
|
-
folder = File.join @lib,'fhir','types'
|
72
|
+
folder = File.join @lib, 'fhir', 'types'
|
74
73
|
# complex data types start with an uppercase letter
|
75
74
|
# and we'll filter out profiles on types (for example, Age is a profile on Quantity)
|
76
|
-
|
77
|
-
generate_class_files(folder,
|
75
|
+
complex_types = @defn.get_complex_types
|
76
|
+
generate_class_files(folder, complex_types)
|
78
77
|
end
|
79
78
|
|
80
79
|
def generate_resources
|
81
|
-
folder = File.join @lib,'fhir','resources'
|
82
|
-
generate_class_files(folder
|
80
|
+
folder = File.join @lib, 'fhir', 'resources'
|
81
|
+
generate_class_files(folder, @defn.get_resource_definitions)
|
83
82
|
end
|
84
83
|
|
85
|
-
def generate_class_files(folder=@lib,
|
86
|
-
|
84
|
+
def generate_class_files(folder=@lib, structure_defs)
|
85
|
+
structure_defs.each do |structure_def|
|
87
86
|
@templates.clear
|
88
|
-
|
89
|
-
template = generate_class([
|
90
|
-
params = @defn.get_search_parameters(
|
87
|
+
type_name = structure_def['id']
|
88
|
+
template = generate_class([ type_name ], structure_def, true)
|
89
|
+
params = @defn.get_search_parameters(type_name)
|
91
90
|
template.constants['SEARCH_PARAMS'] = params if !params.nil?
|
92
|
-
filename = File.join(folder,"#{
|
93
|
-
file = File.open(filename,'w:UTF-8')
|
91
|
+
filename = File.join(folder, "#{type_name}.rb")
|
92
|
+
file = File.open(filename, 'w:UTF-8')
|
94
93
|
file.write(template.to_s)
|
95
94
|
file.close
|
96
95
|
end
|
97
96
|
end
|
98
97
|
|
99
|
-
def
|
98
|
+
def cap_first(string)
|
100
99
|
t = String.new(string)
|
101
100
|
t[0] = t[0].upcase
|
102
101
|
t
|
103
102
|
end
|
104
103
|
|
105
|
-
def generate_class(hierarchy,
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
104
|
+
def generate_class(hierarchy, structure_def, top_level=false)
|
105
|
+
type_name = structure_def['id']
|
106
|
+
constrained_type = structure_def['constrained_type']
|
107
|
+
path_type = type_name
|
108
|
+
path_type = constrained_type if constrained_type
|
110
109
|
|
111
|
-
template = FHIR::Boot::Template.new([
|
110
|
+
template = FHIR::Boot::Template.new([ type_name ], top_level)
|
112
111
|
template.hierarchy = hierarchy
|
113
|
-
template.kind =
|
114
|
-
return template if
|
112
|
+
template.kind = structure_def['kind']
|
113
|
+
return template if structure_def['snapshot'].nil? || structure_def['snapshot']['element'].nil?
|
115
114
|
|
116
|
-
|
115
|
+
multiple_data_types = {}
|
117
116
|
|
118
|
-
# examine the snapshot.elements... move the Element and BackboneElements,
|
117
|
+
# examine the snapshot.elements... move the Element and BackboneElements,
|
119
118
|
# and their children, into separate StructureDefiniton hashes and process as
|
120
119
|
# child templates.
|
121
|
-
child_templates = []
|
122
|
-
|
120
|
+
child_templates = []
|
121
|
+
structure_def['snapshot']['element'].each do |element|
|
123
122
|
# skip the first element
|
124
|
-
next if element['path']==
|
123
|
+
next if element['path']==path_type
|
125
124
|
if element['type']
|
126
|
-
unique_types = element['type'].map{|t|t['code']}.uniq
|
125
|
+
unique_types = element['type'].map{|t|t['code']}.uniq
|
127
126
|
if unique_types.include?('Element') || unique_types.include?('BackboneElement')
|
128
127
|
child_templates << element['path']
|
129
128
|
end
|
@@ -131,69 +130,69 @@ module FHIR
|
|
131
130
|
end
|
132
131
|
# now build the child templates...
|
133
132
|
child_templates.each do |child_name|
|
134
|
-
child_fixed_name =
|
133
|
+
child_fixed_name = cap_first(child_name.gsub("#{type_name}.", ''))
|
135
134
|
next if child_fixed_name.include?('.')
|
136
|
-
child_def = { 'id'=> child_fixed_name, 'snapshot'=>{'element'=>[]} }
|
135
|
+
child_def = { 'id'=> child_fixed_name, 'snapshot'=>{ 'element'=>[] } }
|
137
136
|
# Copy the element definitions for the child structure
|
138
|
-
|
137
|
+
structure_def['snapshot']['element'].each do |element|
|
139
138
|
child_def['snapshot']['element'] << element.clone if element['path'].start_with?("#{child_name}.")
|
140
139
|
end
|
141
140
|
# Remove the child elements
|
142
141
|
child_paths = child_def['snapshot']['element'].map{|e|e['path']}
|
143
142
|
# child_paths = child_paths.drop(1)
|
144
|
-
|
143
|
+
structure_def['snapshot']['element'].keep_if do |element|
|
145
144
|
!child_paths.include?(element['path'])
|
146
145
|
end
|
147
146
|
# Rename the child paths
|
148
147
|
child_def['snapshot']['element'].each do |element|
|
149
|
-
element['path'] = element['path'].gsub(child_name,child_fixed_name)
|
148
|
+
element['path'] = element['path'].gsub(child_name, child_fixed_name)
|
150
149
|
end
|
151
150
|
# add the child
|
152
151
|
child_hierarchy = hierarchy + [ child_fixed_name ]
|
153
|
-
child_klass = generate_class(child_hierarchy,child_def)
|
152
|
+
child_klass = generate_class(child_hierarchy, child_def)
|
154
153
|
template.templates << child_klass
|
155
154
|
@templates << child_klass
|
156
155
|
end
|
157
156
|
|
158
157
|
# Process the remaining attributes (none of which are Elements or BackboneElements)
|
159
|
-
|
158
|
+
structure_def['snapshot']['element'].each do |element|
|
160
159
|
# skip the first element
|
161
|
-
next if element['path']==
|
160
|
+
next if element['path']==path_type
|
162
161
|
|
163
|
-
field_base_name = element['path'].gsub("#{
|
162
|
+
field_base_name = element['path'].gsub("#{path_type}.", '')
|
164
163
|
# If the element has a type, treat it as a datatype or resource
|
165
164
|
# If not, treat it as a reference to an already declared internal class
|
166
165
|
if !element['type'].nil?
|
167
166
|
# profiles contains a list of profiles if the datatype is Reference or Extension
|
168
167
|
profiles = []
|
169
|
-
element['type'].select{|t|t['code']=='Reference' || t['code']=='Extension'}.each do |
|
170
|
-
profiles <<
|
168
|
+
element['type'].select{|t|t['code']=='Reference' || t['code']=='Extension'}.each do |data_type|
|
169
|
+
profiles << data_type['profile']
|
171
170
|
end
|
172
171
|
profiles.select!{|p|!p.nil?}
|
173
172
|
profiles.flatten!
|
174
173
|
|
175
174
|
# Calculate fields that have multiple data types
|
176
175
|
if element['type'].length > 1
|
177
|
-
fieldname = field_base_name.gsub('[x]','')
|
176
|
+
fieldname = field_base_name.gsub('[x]', '')
|
178
177
|
unique_types = element['type'].map{|t|t['code']}.uniq
|
179
|
-
|
178
|
+
multiple_data_types[fieldname] = unique_types if(unique_types.length>1)
|
180
179
|
end
|
181
180
|
|
182
181
|
# generate a field for each valid datatype... this is for things like Resource.attribute[x]
|
183
|
-
element['type'].map{|t|t['code']}.uniq.each do |
|
184
|
-
capitalized =
|
185
|
-
fieldname = field_base_name.gsub('[x]',capitalized)
|
182
|
+
element['type'].map{|t|t['code']}.uniq.each do |data_type|
|
183
|
+
capitalized = cap_first(data_type)
|
184
|
+
fieldname = field_base_name.gsub('[x]', capitalized)
|
186
185
|
field = FHIR::Field.new(fieldname)
|
187
|
-
field.path = element['path'].gsub(
|
188
|
-
field.type =
|
186
|
+
field.path = element['path'].gsub(path_type, type_name)
|
187
|
+
field.type = data_type
|
189
188
|
field.type = 'Extension' if field.path.end_with?('extension')
|
190
|
-
field.type_profiles = profiles if(
|
189
|
+
field.type_profiles = profiles if(data_type=='Reference' || data_type=='Extension')
|
191
190
|
field.min = element['min']
|
192
191
|
field.max = element['max']
|
193
192
|
field.max = field.max.to_i
|
194
193
|
field.max = '*' if element['max']=='*'
|
195
194
|
|
196
|
-
if ['code','Coding','CodeableConcept'].include?(
|
195
|
+
if ['code', 'Coding', 'CodeableConcept'].include?(data_type) && element['binding']
|
197
196
|
field.binding = element['binding']
|
198
197
|
field.binding['uri'] = field.binding['valueSetUri']
|
199
198
|
field.binding['uri'] = field.binding['valueSetReference'] if field.binding['uri'].nil?
|
@@ -206,16 +205,16 @@ module FHIR
|
|
206
205
|
codes = @defn.get_codes( field.binding['uri'] )
|
207
206
|
field.valid_codes = codes if !codes.nil?
|
208
207
|
FHIR.logger.warn " MISSING EXPANSION -- #{field.path} #{field.min}..#{field.max}: #{field.binding['uri']} (#{field.binding['strength']})" if field.valid_codes.empty? && field.binding['uri'] && !field.binding['uri'].end_with?('bcp47') && !field.binding['uri'].end_with?('bcp13.txt')
|
209
|
-
elsif ['Element','BackboneElement'].include?(
|
208
|
+
elsif ['Element', 'BackboneElement'].include?(data_type)
|
210
209
|
# This is a nested structure or class
|
211
|
-
field.type = "#{hierarchy.join('::')}::#{
|
210
|
+
field.type = "#{hierarchy.join('::')}::#{cap_first(field.name)}"
|
212
211
|
end
|
213
212
|
|
214
213
|
template.fields << field
|
215
214
|
end
|
216
215
|
else # If there is no data type, treat the type as a reference to an already declared internal class
|
217
216
|
field = FHIR::Field.new(field_base_name)
|
218
|
-
field.path = element['path'].gsub(
|
217
|
+
field.path = element['path'].gsub(path_type, type_name)
|
219
218
|
field.type = element['contentReference']
|
220
219
|
field.type = field.type[1..-1] if field.type[0]=='#'
|
221
220
|
if (hierarchy.last==field.type)
|
@@ -229,7 +228,7 @@ module FHIR
|
|
229
228
|
field.type = klass.hierarchy.join('::')
|
230
229
|
else
|
231
230
|
# the template/child is a direct ancester (it isn't in @templates yet because it is being defined now)
|
232
|
-
field.type = field.type.split('.').map{|x|
|
231
|
+
field.type = field.type.split('.').map{|x| cap_first(x) }.join('::')
|
233
232
|
end
|
234
233
|
end
|
235
234
|
field.min = element['min']
|
@@ -240,7 +239,7 @@ module FHIR
|
|
240
239
|
end
|
241
240
|
end
|
242
241
|
|
243
|
-
template.constants['MULTIPLE_TYPES'] =
|
242
|
+
template.constants['MULTIPLE_TYPES'] = multiple_data_types if !multiple_data_types.empty?
|
244
243
|
template
|
245
244
|
end
|
246
245
|
|