├── .github ├── ISSUE_TEMPLATE.md └── PULL_REQUEST_TEMPLATE.md ├── .gitignore ├── .travis.yml ├── LICENSE ├── Pipfile ├── Pipfile.lock ├── README.md ├── Tutorial.ipynb ├── __init__.py ├── graphql ├── Address.json ├── AllergyIntolerance.json ├── Annotation.json ├── Appointment.json ├── AppointmentResponse.json ├── Attachment.json ├── AuditEvent.json ├── Basic.json ├── Binary.json ├── BodySite.json ├── Bundle.json ├── CapabilityStatement.json ├── CarePlan.json ├── Claim.json ├── ClaimResponse.json ├── ClinicalImpression.json ├── CodeableConcept.json ├── Coding.json ├── Communication.json ├── CommunicationRequest.json ├── Composition.json ├── ConceptMap.json ├── Condition.json ├── ContactDetail.json ├── ContactPoint.json ├── Contract.json ├── Contributor.json ├── Coverage.json ├── DataElement.json ├── DataRequirement.json ├── DetectedIssue.json ├── Device.json ├── DeviceComponent.json ├── DeviceMetric.json ├── DeviceRequest.json ├── DeviceUseStatement.json ├── DiagnosticReport.json ├── DocumentManifest.json ├── DocumentReference.json ├── Dosage.json ├── ElementDefinition.json ├── EligibilityRequest.json ├── EligibilityResponse.json ├── Encounter.json ├── EnrollmentRequest.json ├── EnrollmentResponse.json ├── EpisodeOfCare.json ├── ExplanationOfBenefit.json ├── FamilyMemberHistory.json ├── Flag.json ├── Goal.json ├── Group.json ├── HealthcareService.json ├── HumanName.json ├── Identifier.json ├── ImagingManifest.json ├── ImagingStudy.json ├── Immunization.json ├── ImmunizationRecommendation.json ├── ImplementationGuide.json ├── List.json ├── Location.json ├── Media.json ├── Medication.json ├── MedicationAdministration.json ├── MedicationDispense.json ├── MedicationRequest.json ├── MedicationStatement.json ├── MessageHeader.json ├── NamingSystem.json ├── NutritionOrder.json ├── Observation.json ├── OperationDefinition.json ├── OperationOutcome.json ├── Organization.json ├── ParameterDefinition.json ├── Parameters.json ├── Patient.json ├── PaymentNotice.json ├── PaymentReconciliation.json ├── Period.json ├── Person.json ├── Practitioner.json ├── Procedure.json ├── ProcedureRequest.json ├── ProcessRequest.json ├── ProcessResponse.json ├── Provenance.json ├── Quantity.json ├── Questionnaire.json ├── QuestionnaireResponse.json ├── Range.json ├── Ratio.json ├── Reference.json ├── ReferralRequest.json ├── RelatedArtifact.json ├── RelatedPerson.json ├── RiskAssessment.json ├── SampledData.json ├── Schedule.json ├── SearchParameter.json ├── Signature.json ├── Slot.json ├── Specimen.json ├── StructureDefinition.json ├── Subscription.json ├── Substance.json ├── SupplyDelivery.json ├── SupplyRequest.json ├── Task.json ├── TestScript.json ├── Timing.json ├── TriggerDefinition.json ├── UsageContext.json ├── ValueSet.json └── VisionPrescription.json ├── json ├── Clinical │ ├── Care Provision │ │ ├── CarePlan.json │ │ ├── Goal.json │ │ ├── NutritionOrder.json │ │ ├── ProcedureRequest.json │ │ ├── ReferralRequest.json │ │ └── VisionPrescription.json │ ├── Diagnostics │ │ ├── BodySite.json │ │ ├── DiagnosticReport.json │ │ ├── ImagingManifest.json │ │ ├── ImagingStudy.json │ │ ├── Observation.json │ │ └── Specimen.json │ ├── General │ │ ├── AllergyIntolerance.json │ │ ├── ClinicalImpression.json │ │ ├── Condition.json │ │ ├── DetectedIssue.json │ │ ├── FamilyMemberHistory.json │ │ ├── Procedure.json │ │ └── RiskAssessment.json │ └── Medication & Immunization │ │ ├── Immunization.json │ │ ├── ImmunizationRecommendation.json │ │ ├── Medication.json │ │ ├── MedicationAdministration.json │ │ ├── MedicationDispense.json │ │ ├── MedicationRequest.json │ │ └── MedicationStatement.json ├── Conformance │ ├── Content │ │ ├── DataElement.json │ │ └── StructureDefinition.json │ ├── Misc │ │ ├── ImplementationGuide.json │ │ └── TestScript.json │ ├── Operations Control │ │ ├── CapabilityStatement.json │ │ ├── OperationDefinition.json │ │ └── SearchParameter.json │ └── Terminology │ │ ├── ConceptMap.json │ │ ├── NamingSystem.json │ │ └── ValueSet.json ├── DataTypes │ ├── Address.json │ ├── Annotation.json │ ├── Attachment.json │ ├── CodeableConcept.json │ ├── Coding.json │ ├── ContactDetail.json │ ├── ContactPoint.json │ ├── Contributor.json │ ├── DataRequirement.json │ ├── Dosage.json │ ├── ElementDefinition.json │ ├── HumanName.json │ ├── Identifier.json │ ├── ParameterDefinition.json │ ├── Period.json │ ├── Quantity.json │ ├── Range.json │ ├── Ratio.json │ ├── Reference.json │ ├── RelatedArtifact.json │ ├── SampledData.json │ ├── Signature.json │ ├── Timing.json │ ├── TriggerDefinition.json │ └── UsageContext.json ├── Financial │ ├── Billing │ │ ├── Claim.json │ │ └── ClaimResponse.json │ ├── Other │ │ └── ExplanationOfBenefit.json │ ├── Payment │ │ ├── PaymentNotice.json │ │ └── PaymentReconciliation.json │ └── Support │ │ ├── Coverage.json │ │ ├── EligibilityRequest.json │ │ ├── EligibilityResponse.json │ │ ├── EnrollmentRequest.json │ │ └── EnrollmentResponse.json ├── Identification │ ├── Devices │ │ ├── Device.json │ │ ├── DeviceComponent.json │ │ └── DeviceMetric.json │ ├── Entities │ │ ├── Contract.json │ │ ├── Location.json │ │ ├── Person.json │ │ └── Substance.json │ ├── Groups │ │ ├── Group.json │ │ ├── HealthcareService.json │ │ └── Organization.json │ └── Individuals │ │ ├── Patient.json │ │ ├── Practitioner.json │ │ └── RelatedPerson.json ├── Infrastructure │ ├── Documents & Lists │ │ ├── Composition.json │ │ ├── DocumentManifest.json │ │ ├── DocumentReference.json │ │ └── List.json │ ├── Exchange │ │ ├── MessageHeader.json │ │ ├── OperationOutcome.json │ │ ├── Parameters.json │ │ └── Subscription.json │ ├── Information Tracking │ │ ├── AuditEvent.json │ │ ├── Provenance.json │ │ ├── Questionnaire.json │ │ └── QuestionnaireResponse.json │ └── Structure │ │ ├── Basic.json │ │ ├── Binary.json │ │ ├── Bundle.json │ │ └── Media.json └── Workflow │ ├── Patient Management │ ├── Communication.json │ ├── Encounter.json │ ├── EpisodeOfCare.json │ └── Flag.json │ ├── Scheduling │ ├── Appointment.json │ ├── AppointmentResponse.json │ ├── Schedule.json │ └── Slot.json │ ├── Workflow #1 │ ├── CommunicationRequest.json │ ├── DeviceRequest.json │ ├── DeviceUseStatement.json │ └── Task.json │ └── Workflow #2 │ ├── ProcessRequest.json │ ├── ProcessResponse.json │ ├── SupplyDelivery.json │ └── SupplyRequest.json ├── process ├── __init__.py ├── clean │ ├── __init__.py │ └── hl7.py ├── convert │ ├── __init__.py │ └── yml.py ├── run.py ├── scrap │ ├── __init__.py │ ├── scrap │ │ ├── __init__.py │ │ ├── items.py │ │ ├── middlewares.py │ │ ├── pipelines.py │ │ ├── settings.py │ │ └── spiders │ │ │ ├── __init__.py │ │ │ └── hl7_spider.py │ └── scrapy.cfg └── write │ ├── __init__.py │ └── file.py ├── requirements.txt ├── resources ├── json │ ├── Clinical │ │ ├── Care Provision │ │ │ ├── CarePlan.json │ │ │ ├── Goal.json │ │ │ ├── NutritionOrder.json │ │ │ ├── ProcedureRequest.json │ │ │ ├── ReferralRequest.json │ │ │ └── VisionPrescription.json │ │ ├── Diagnostics │ │ │ ├── BodySite.json │ │ │ ├── DiagnosticReport.json │ │ │ ├── ImagingManifest.json │ │ │ ├── ImagingStudy.json │ │ │ ├── Observation.json │ │ │ └── Specimen.json │ │ ├── General │ │ │ ├── AllergyIntolerance.json │ │ │ ├── ClinicalImpression.json │ │ │ ├── Condition.json │ │ │ ├── DetectedIssue.json │ │ │ ├── FamilyMemberHistory.json │ │ │ ├── Procedure.json │ │ │ └── RiskAssessment.json │ │ └── Medication & Immunization │ │ │ ├── Immunization.json │ │ │ ├── ImmunizationRecommendation.json │ │ │ ├── Medication.json │ │ │ ├── MedicationAdministration.json │ │ │ ├── MedicationDispense.json │ │ │ ├── MedicationRequest.json │ │ │ └── MedicationStatement.json │ ├── Conformance │ │ ├── Content │ │ │ ├── DataElement.json │ │ │ └── StructureDefinition.json │ │ ├── Misc │ │ │ ├── ImplementationGuide.json │ │ │ └── TestScript.json │ │ ├── Operations Control │ │ │ ├── CapabilityStatement.json │ │ │ ├── OperationDefinition.json │ │ │ └── SearchParameter.json │ │ └── Terminology │ │ │ ├── ConceptMap.json │ │ │ ├── NamingSystem.json │ │ │ └── ValueSet.json │ ├── Datatypes │ │ ├── Address.json │ │ ├── Annotation.json │ │ ├── Attachment.json │ │ ├── CodeableConcept.json │ │ ├── Coding.json │ │ ├── ContactPoint.json │ │ ├── HumanName.json │ │ ├── Identifier.json │ │ ├── Period.json │ │ ├── Quantity.json │ │ ├── Range.json │ │ ├── Ratio.json │ │ ├── SampledData.json │ │ ├── Signature.json │ │ └── Timing.json │ ├── Financial │ │ ├── Billing │ │ │ ├── Claim.json │ │ │ └── ClaimResponse.json │ │ ├── Other │ │ │ └── ExplanationOfBenefit.json │ │ ├── Payment │ │ │ ├── PaymentNotice.json │ │ │ └── PaymentReconciliation.json │ │ └── Support │ │ │ ├── Coverage.json │ │ │ ├── EligibilityRequest.json │ │ │ ├── EligibilityResponse.json │ │ │ ├── EnrollmentRequest.json │ │ │ └── EnrollmentResponse.json │ ├── Identification │ │ ├── Devices │ │ │ ├── Device.json │ │ │ ├── DeviceComponent.json │ │ │ └── DeviceMetric.json │ │ ├── Entities │ │ │ ├── Contract.json │ │ │ ├── Location.json │ │ │ ├── Person.json │ │ │ └── Substance.json │ │ ├── Groups │ │ │ ├── Group.json │ │ │ ├── HealthcareService.json │ │ │ └── Organization.json │ │ └── Individuals │ │ │ ├── Patient.json │ │ │ ├── Practitioner.json │ │ │ └── RelatedPerson.json │ ├── Infrastructure │ │ ├── Documents & Lists │ │ │ ├── Composition.json │ │ │ ├── DocumentManifest.json │ │ │ ├── DocumentReference.json │ │ │ └── List.json │ │ ├── Exchange │ │ │ ├── MessageHeader.json │ │ │ ├── OperationOutcome.json │ │ │ ├── Parameters.json │ │ │ └── Subscription.json │ │ ├── Information Tracking │ │ │ ├── AuditEvent.json │ │ │ ├── Provenance.json │ │ │ ├── Questionnaire.json │ │ │ └── QuestionnaireResponse.json │ │ └── Structure │ │ │ ├── Basic.json │ │ │ ├── Binary.json │ │ │ ├── Bundle.json │ │ │ └── Media.json │ └── Workflow │ │ ├── Patient Management │ │ ├── Communication.json │ │ ├── Encounter.json │ │ ├── EpisodeOfCare.json │ │ └── Flag.json │ │ ├── Scheduling │ │ ├── Appointment.json │ │ ├── AppointmentResponse.json │ │ ├── Schedule.json │ │ └── Slot.json │ │ ├── Workflow #1 │ │ ├── CommunicationRequest.json │ │ ├── DeviceRequest.json │ │ ├── DeviceUseStatement.json │ │ └── Task.json │ │ └── Workflow #2 │ │ ├── ProcessRequest.json │ │ ├── ProcessResponse.json │ │ ├── SupplyDelivery.json │ │ └── SupplyRequest.json └── yml │ ├── Clinical │ ├── Care Provision │ │ ├── CarePlan.yml │ │ ├── Goal.yml │ │ ├── NutritionOrder.yml │ │ ├── ProcedureRequest.yml │ │ ├── ReferralRequest.yml │ │ └── VisionPrescription.yml │ ├── Diagnostics │ │ ├── BodySite.yml │ │ ├── DiagnosticReport.yml │ │ ├── ImagingManifest.yml │ │ ├── ImagingStudy.yml │ │ ├── Observation.yml │ │ └── Specimen.yml │ ├── General │ │ ├── AllergyIntolerance.yml │ │ ├── ClinicalImpression.yml │ │ ├── Condition.yml │ │ ├── DetectedIssue.yml │ │ ├── FamilyMemberHistory.yml │ │ ├── Procedure.yml │ │ └── RiskAssessment.yml │ └── Medication & Immunization │ │ ├── Immunization.yml │ │ ├── ImmunizationRecommendation.yml │ │ ├── Medication.yml │ │ ├── MedicationAdministration.yml │ │ ├── MedicationDispense.yml │ │ ├── MedicationRequest.yml │ │ └── MedicationStatement.yml │ ├── Conformance │ ├── Content │ │ ├── DataElement.yml │ │ └── StructureDefinition.yml │ ├── Misc │ │ ├── ImplementationGuide.yml │ │ └── TestScript.yml │ ├── Operations Control │ │ ├── CapabilityStatement.yml │ │ ├── OperationDefinition.yml │ │ └── SearchParameter.yml │ └── Terminology │ │ ├── ConceptMap.yml │ │ ├── NamingSystem.yml │ │ └── ValueSet.yml │ ├── Datatypes │ ├── Address.yml │ ├── Annotation.yml │ ├── Attachment.yml │ ├── CodeableConcept.yml │ ├── Coding.yml │ ├── ContactPoint.yml │ ├── HumanName.yml │ ├── Identifier.yml │ ├── Period.yml │ ├── Quantity.yml │ ├── Range.yml │ ├── Ratio.yml │ ├── SampledData.yml │ ├── Signature.yml │ └── Timing.yml │ ├── Financial │ ├── Billing │ │ ├── Claim.yml │ │ └── ClaimResponse.yml │ ├── Other │ │ └── ExplanationOfBenefit.yml │ ├── Payment │ │ ├── PaymentNotice.yml │ │ └── PaymentReconciliation.yml │ └── Support │ │ ├── Coverage.yml │ │ ├── EligibilityRequest.yml │ │ ├── EligibilityResponse.yml │ │ ├── EnrollmentRequest.yml │ │ └── EnrollmentResponse.yml │ ├── Identification │ ├── Devices │ │ ├── Device.yml │ │ ├── DeviceComponent.yml │ │ └── DeviceMetric.yml │ ├── Entities │ │ ├── Contract.yml │ │ ├── Location.yml │ │ ├── Person.yml │ │ └── Substance.yml │ ├── Groups │ │ ├── Group.yml │ │ ├── HealthcareService.yml │ │ └── Organization.yml │ └── Individuals │ │ ├── Patient.yml │ │ ├── Practitioner.yml │ │ └── RelatedPerson.yml │ ├── Infrastructure │ ├── Documents & Lists │ │ ├── Composition.yml │ │ ├── DocumentManifest.yml │ │ ├── DocumentReference.yml │ │ └── List.yml │ ├── Exchange │ │ ├── MessageHeader.yml │ │ ├── OperationOutcome.yml │ │ ├── Parameters.yml │ │ └── Subscription.yml │ ├── Information Tracking │ │ ├── AuditEvent.yml │ │ ├── Provenance.yml │ │ ├── Questionnaire.yml │ │ └── QuestionnaireResponse.yml │ └── Structure │ │ ├── Basic.yml │ │ ├── Binary.yml │ │ ├── Bundle.yml │ │ └── Media.yml │ ├── Workflow │ ├── Patient Management │ │ ├── Communication.yml │ │ ├── Encounter.yml │ │ ├── EpisodeOfCare.yml │ │ └── Flag.yml │ ├── Scheduling │ │ ├── Appointment.yml │ │ ├── AppointmentResponse.yml │ │ ├── Schedule.yml │ │ └── Slot.yml │ ├── Workflow #1 │ │ ├── CommunicationRequest.yml │ │ ├── DeviceRequest.yml │ │ ├── DeviceUseStatement.yml │ │ └── Task.yml │ └── Workflow #2 │ │ ├── ProcessRequest.yml │ │ ├── ProcessResponse.yml │ │ ├── SupplyDelivery.yml │ │ └── SupplyRequest.yml │ └── domain_test │ └── subdomain_test │ └── resource_test.yml ├── scrap_files ├── Clinical │ ├── Care Provision │ │ ├── CarePlan.json │ │ ├── Goal.json │ │ ├── NutritionOrder.json │ │ ├── ProcedureRequest.json │ │ ├── ReferralRequest.json │ │ └── VisionPrescription.json │ ├── Diagnostics │ │ ├── BodySite.json │ │ ├── DiagnosticReport.json │ │ ├── ImagingManifest.json │ │ ├── ImagingStudy.json │ │ ├── Observation.json │ │ └── Specimen.json │ ├── General │ │ ├── AllergyIntolerance.json │ │ ├── ClinicalImpression.json │ │ ├── Condition.json │ │ ├── DetectedIssue.json │ │ ├── FamilyMemberHistory.json │ │ ├── Procedure.json │ │ └── RiskAssessment.json │ └── Medication & Immunization │ │ ├── Immunization.json │ │ ├── ImmunizationRecommendation.json │ │ ├── Medication.json │ │ ├── MedicationAdministration.json │ │ ├── MedicationDispense.json │ │ ├── MedicationRequest.json │ │ └── MedicationStatement.json ├── Conformance │ ├── Content │ │ ├── DataElement.json │ │ └── StructureDefinition.json │ ├── Misc │ │ ├── ImplementationGuide.json │ │ └── TestScript.json │ ├── Operations Control │ │ ├── CapabilityStatement.json │ │ ├── OperationDefinition.json │ │ └── SearchParameter.json │ └── Terminology │ │ ├── ConceptMap.json │ │ ├── NamingSystem.json │ │ └── ValueSet.json ├── DataTypes │ ├── Address.json │ ├── Annotation.json │ ├── Attachment.json │ ├── CodeableConcept.json │ ├── Coding.json │ ├── ContactDetail.json │ ├── ContactPoint.json │ ├── Contributor.json │ ├── DataRequirement.json │ ├── Dosage.json │ ├── ElementDefinition.json │ ├── HumanName.json │ ├── Identifier.json │ ├── ParameterDefinition.json │ ├── Period.json │ ├── Quantity.json │ ├── Range.json │ ├── Ratio.json │ ├── Reference.json │ ├── RelatedArtifact.json │ ├── SampledData.json │ ├── Signature.json │ ├── Timing.json │ ├── TriggerDefinition.json │ └── UsageContext.json ├── Financial │ ├── Billing │ │ ├── Claim.json │ │ └── ClaimResponse.json │ ├── Other │ │ └── ExplanationOfBenefit.json │ ├── Payment │ │ ├── PaymentNotice.json │ │ └── PaymentReconciliation.json │ └── Support │ │ ├── Coverage.json │ │ ├── EligibilityRequest.json │ │ ├── EligibilityResponse.json │ │ ├── EnrollmentRequest.json │ │ └── EnrollmentResponse.json ├── Identification │ ├── Devices │ │ ├── Device.json │ │ ├── DeviceComponent.json │ │ └── DeviceMetric.json │ ├── Entities │ │ ├── Contract.json │ │ ├── Location.json │ │ ├── Person.json │ │ └── Substance.json │ ├── Groups │ │ ├── Group.json │ │ ├── HealthcareService.json │ │ └── Organization.json │ └── Individuals │ │ ├── Patient.json │ │ ├── Practitioner.json │ │ └── RelatedPerson.json ├── Infrastructure │ ├── Documents & Lists │ │ ├── Composition.json │ │ ├── DocumentManifest.json │ │ ├── DocumentReference.json │ │ └── List.json │ ├── Exchange │ │ ├── MessageHeader.json │ │ ├── OperationOutcome.json │ │ ├── Parameters.json │ │ └── Subscription.json │ ├── Information Tracking │ │ ├── AuditEvent.json │ │ ├── Provenance.json │ │ ├── Questionnaire.json │ │ └── QuestionnaireResponse.json │ └── Structure │ │ ├── Basic.json │ │ ├── Binary.json │ │ ├── Bundle.json │ │ └── Media.json └── Workflow │ ├── Patient Management │ ├── Communication.json │ ├── Encounter.json │ ├── EpisodeOfCare.json │ └── Flag.json │ ├── Scheduling │ ├── Appointment.json │ ├── AppointmentResponse.json │ ├── Schedule.json │ └── Slot.json │ ├── Workflow #1 │ ├── CommunicationRequest.json │ ├── DeviceRequest.json │ ├── DeviceUseStatement.json │ └── Task.json │ └── Workflow #2 │ ├── ProcessRequest.json │ ├── ProcessResponse.json │ ├── SupplyDelivery.json │ └── SupplyRequest.json ├── tests ├── __init__.py ├── conftest.py ├── data │ ├── clean │ │ └── patient.json │ └── corrupted │ │ └── patient.json ├── test_clean.py ├── test_convert.py └── test_write.py └── yml ├── Clinical ├── Care Provision │ ├── CarePlan.yml │ ├── Goal.yml │ ├── NutritionOrder.yml │ ├── ProcedureRequest.yml │ ├── ReferralRequest.yml │ └── VisionPrescription.yml ├── Diagnostics │ ├── BodySite.yml │ ├── DiagnosticReport.yml │ ├── ImagingManifest.yml │ ├── ImagingStudy.yml │ ├── Observation.yml │ └── Specimen.yml ├── General │ ├── AllergyIntolerance.yml │ ├── ClinicalImpression.yml │ ├── Condition.yml │ ├── DetectedIssue.yml │ ├── FamilyMemberHistory.yml │ ├── Procedure.yml │ └── RiskAssessment.yml └── Medication & Immunization │ ├── Immunization.yml │ ├── ImmunizationRecommendation.yml │ ├── Medication.yml │ ├── MedicationAdministration.yml │ ├── MedicationDispense.yml │ ├── MedicationRequest.yml │ └── MedicationStatement.yml ├── Conformance ├── Content │ ├── DataElement.yml │ └── StructureDefinition.yml ├── Misc │ ├── ImplementationGuide.yml │ └── TestScript.yml ├── Operations Control │ ├── CapabilityStatement.yml │ ├── OperationDefinition.yml │ └── SearchParameter.yml └── Terminology │ ├── ConceptMap.yml │ ├── NamingSystem.yml │ └── ValueSet.yml ├── DataTypes ├── Address.yml ├── Annotation.yml ├── Attachment.yml ├── CodeableConcept.yml ├── Coding.yml ├── ContactDetail.yml ├── ContactPoint.yml ├── Contributor.yml ├── DataRequirement.yml ├── Dosage.yml ├── ElementDefinition.yml ├── HumanName.yml ├── Identifier.yml ├── ParameterDefinition.yml ├── Period.yml ├── Quantity.yml ├── Range.yml ├── Ratio.yml ├── Reference.yml ├── RelatedArtifact.yml ├── SampledData.yml ├── Signature.yml ├── Timing.yml ├── TriggerDefinition.yml └── UsageContext.yml ├── Financial ├── Billing │ ├── Claim.yml │ └── ClaimResponse.yml ├── Other │ └── ExplanationOfBenefit.yml ├── Payment │ ├── PaymentNotice.yml │ └── PaymentReconciliation.yml └── Support │ ├── Coverage.yml │ ├── EligibilityRequest.yml │ ├── EligibilityResponse.yml │ ├── EnrollmentRequest.yml │ └── EnrollmentResponse.yml ├── Identification ├── Devices │ ├── Device.yml │ ├── DeviceComponent.yml │ └── DeviceMetric.yml ├── Entities │ ├── Contract.yml │ ├── Location.yml │ ├── Person.yml │ └── Substance.yml ├── Groups │ ├── Group.yml │ ├── HealthcareService.yml │ └── Organization.yml └── Individuals │ ├── Patient.yml │ ├── Practitioner.yml │ └── RelatedPerson.yml ├── Infrastructure ├── Documents & Lists │ ├── Composition.yml │ ├── DocumentManifest.yml │ ├── DocumentReference.yml │ └── List.yml ├── Exchange │ ├── MessageHeader.yml │ ├── OperationOutcome.yml │ ├── Parameters.yml │ └── Subscription.yml ├── Information Tracking │ ├── AuditEvent.yml │ ├── Provenance.yml │ ├── Questionnaire.yml │ └── QuestionnaireResponse.yml └── Structure │ ├── Basic.yml │ ├── Binary.yml │ ├── Bundle.yml │ └── Media.yml └── Workflow ├── Patient Management ├── Communication.yml ├── Encounter.yml ├── EpisodeOfCare.yml └── Flag.yml ├── Scheduling ├── Appointment.yml ├── AppointmentResponse.yml ├── Schedule.yml └── Slot.yml ├── Workflow #1 ├── CommunicationRequest.yml ├── DeviceRequest.yml ├── DeviceUseStatement.yml └── Task.yml └── Workflow #2 ├── ProcessRequest.yml ├── ProcessResponse.yml ├── SupplyDelivery.yml └── SupplyRequest.yml /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 2 | ### Context of the Issue 3 | 4 | ### Expected & current behavior 5 | 6 | Please describe the behavior you are expecting. What is the current behavior? 7 | 8 | ### Failure Information (for bugs) 9 | 10 | Please help provide information about the failure if this is a bug. 11 | 12 | ### Steps to Reproduce (for bugs) 13 | 14 | Please provide detailed steps for reproducing the issue. (for bugs) 15 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | ## Description 2 | 3 | Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. 4 | 5 | Fixes # (issue) 6 | 7 | ### Type of change 8 | 9 | Please delete options that are not relevant. 10 | 11 | - [ ] Bug fix (non-breaking change which fixes an issue) 12 | - [ ] New feature (non-breaking change which adds functionality) 13 | - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) 14 | - [ ] This change requires a documentation update 15 | 16 | 17 | 18 | ## Checklist: 19 | 20 | - [ ] My code follows the style guidelines of this project 21 | - [ ] I have performed a self-review of my own code 22 | - [ ] I have commented my code, particularly in hard-to-understand areas 23 | - [ ] I have made corresponding changes to the documentation if any 24 | - [ ] My changes generate no new warnings 25 | - [ ] I have added tests that prove my fix is effective, if unittests are enabled 26 | - [ ] New and existing unit tests pass locally with my changes, if any 27 | 28 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: python 2 | python: 3 | - "3.6" 4 | # command to install dependencies 5 | install: 6 | - pip install --upgrade pip 7 | - pip install -r requirements.txt 8 | # command to run tests 9 | script: 10 | - pytest 11 | -------------------------------------------------------------------------------- /Pipfile: -------------------------------------------------------------------------------- 1 | [[source]] 2 | url = "https://pypi.org/simple" 3 | verify_ssl = true 4 | name = "pypi" 5 | 6 | [dev-packages] 7 | ipdb = "*" 8 | "flake8" = "*" 9 | yapf = "*" 10 | pytest = "*" 11 | ipython = "*" 12 | 13 | [packages] 14 | "beautifulsoup4" = "*" 15 | scrapy = "*" 16 | inscriptis = "*" 17 | 18 | -------------------------------------------------------------------------------- /Pipfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arkhn/fhir-store/fb9cad03af20823399d95319ff55ece56fc79ca4/Pipfile.lock -------------------------------------------------------------------------------- /__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arkhn/fhir-store/fb9cad03af20823399d95319ff55ece56fc79ca4/__init__.py -------------------------------------------------------------------------------- /graphql/Coding.json: -------------------------------------------------------------------------------- 1 | { 2 | "attributes": { 3 | "create": [ 4 | { 5 | "depth": 1, 6 | "comment": "Identity of the terminology system", 7 | "name": "system", 8 | "type": "uri" 9 | }, 10 | { 11 | "depth": 1, 12 | "comment": "Version of the system - if relevant", 13 | "name": "version", 14 | "type": "string" 15 | }, 16 | { 17 | "depth": 1, 18 | "comment": "Symbol in syntax defined by the system", 19 | "name": "code", 20 | "type": "code" 21 | }, 22 | { 23 | "depth": 1, 24 | "comment": "Representation defined by the system", 25 | "name": "display", 26 | "type": "string" 27 | }, 28 | { 29 | "depth": 1, 30 | "comment": "If this coding was chosen directly by the user", 31 | "name": "userSelected", 32 | "type": "boolean" 33 | } 34 | ] 35 | } 36 | } -------------------------------------------------------------------------------- /graphql/Period.json: -------------------------------------------------------------------------------- 1 | { 2 | "attributes": { 3 | "create": [ 4 | { 5 | "depth": 1, 6 | "comment": "C? Starting time with inclusive boundary", 7 | "name": "start", 8 | "type": "dateTime" 9 | }, 10 | { 11 | "depth": 1, 12 | "comment": "C? End time with inclusive boundary if not ongoing", 13 | "name": "end", 14 | "type": "dateTime" 15 | } 16 | ] 17 | } 18 | } -------------------------------------------------------------------------------- /graphql/Quantity.json: -------------------------------------------------------------------------------- 1 | { 2 | "attributes": { 3 | "create": [ 4 | { 5 | "depth": 1, 6 | "comment": "Numerical value (with implicit precision)", 7 | "name": "value", 8 | "type": "decimal" 9 | }, 10 | { 11 | "depth": 1, 12 | "comment": "< | <= | >= | > - how to understand the value", 13 | "name": "comparator", 14 | "type": "code" 15 | }, 16 | { 17 | "depth": 1, 18 | "comment": "Unit representation", 19 | "name": "unit", 20 | "type": "string" 21 | }, 22 | { 23 | "depth": 1, 24 | "comment": "C? System that defines coded unit form", 25 | "name": "system", 26 | "type": "uri" 27 | }, 28 | { 29 | "depth": 1, 30 | "comment": "Coded form of the unit", 31 | "name": "code", 32 | "type": "code" 33 | } 34 | ] 35 | } 36 | } -------------------------------------------------------------------------------- /graphql/Range.json: -------------------------------------------------------------------------------- 1 | { 2 | "attributes": { 3 | "create": [ 4 | { 5 | "depth": 1, 6 | "comment": "C? Low limit", 7 | "name": "low", 8 | "type": "Quantity(SimpleQuantity)" 9 | }, 10 | { 11 | "depth": 1, 12 | "comment": "C? High limit", 13 | "name": "high", 14 | "type": "Quantity(SimpleQuantity)" 15 | } 16 | ] 17 | } 18 | } -------------------------------------------------------------------------------- /json/Clinical/Diagnostics/BodySite.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "BodySite", 3 | "identifier$(Bodysite identifier$)": null, 4 | "active$(Whether this body site record is in active use$)": null, 5 | "code$(Named anatomical location$)": null, 6 | "qualifier$(Modification to location code$)": null, 7 | "description$(Anatomical location description$)": null, 8 | "image$(Attached images$)": null, 9 | "patient$(R! Who this is about$)": null 10 | } -------------------------------------------------------------------------------- /json/Clinical/General/DetectedIssue.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "DetectedIssue", 3 | "identifier$(Unique id for the detected issue$)": null, 4 | "status$(R! registered | preliminary | final | amended +$)": null, 5 | "category$(Issue Category, e.g. drug-drug, duplicate therapy, etc.$)": null, 6 | "severity$(high | moderate | low$)": null, 7 | "patient$(Associated patient$)": null, 8 | "date$(When identified$)": null, 9 | "author$(The provider or device that identified the issue$)": null, 10 | "implicated$(Problem resource$)": null, 11 | "detail$(Description and context$)": null, 12 | "reference$(Authority for issue$)": null, 13 | "mitigation$(Step taken to address$)": [{ 14 | "action$(R! What mitigation?$)": null, 15 | "date$(Date committed$)": null, 16 | "author$(Who is committing?$)": null 17 | }] 18 | } -------------------------------------------------------------------------------- /json/DataTypes/Address.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "Address", 3 | "use$(home | work | temp | old - purpose of this address$)": null, 4 | "type$(postal | physical | both$)": null, 5 | "text$(Text representation of the address$)": null, 6 | "line$(Street name, number, direction & P.O. Box etc.$)": null, 7 | "city$(Name of city, town etc.$)": null, 8 | "district$(District name (aka county)$)": null, 9 | "state$(Sub-unit of country (abbreviations ok)$)": null, 10 | "postalCode$(Postal code for area$)": null, 11 | "country$(Country (e.g. can be ISO 3166 2 or 3 letter code)$)": null, 12 | "period$(Time period when address was/is in use$)": null 13 | } -------------------------------------------------------------------------------- /json/DataTypes/Annotation.json: -------------------------------------------------------------------------------- 1 | { 2 | "authorReference$($)": null, 3 | "authorString$($)": null, 4 | "time$(When the annotation was made$)": null, 5 | "text$(R! The annotation - text content$)": null 6 | } -------------------------------------------------------------------------------- /json/DataTypes/Attachment.json: -------------------------------------------------------------------------------- 1 | { 2 | "contentType$(Mime type of the content, with charset etc.$)": null, 3 | "language$(Human language of the content (BCP-47)$)": null, 4 | "data$(Data inline, base64ed$)": null, 5 | "url$(Uri where the data can be found$)": null, 6 | "size$(Number of bytes of content (if url provided)$)": null, 7 | "hash$(Hash of the data (sha-1, base64ed)$)": null, 8 | "title$(Label to display in place of the data$)": null, 9 | "creation$(Date attachment was first created$)": null 10 | } -------------------------------------------------------------------------------- /json/DataTypes/CodeableConcept.json: -------------------------------------------------------------------------------- 1 | { 2 | "coding$(Code defined by a terminology system$)": null, 3 | "text$(Plain text representation of the concept$)": null 4 | } -------------------------------------------------------------------------------- /json/DataTypes/Coding.json: -------------------------------------------------------------------------------- 1 | { 2 | "system$(Identity of the terminology system$)": null, 3 | "version$(Version of the system - if relevant$)": null, 4 | "code$(Symbol in syntax defined by the system$)": null, 5 | "display$(Representation defined by the system$)": null, 6 | "userSelected$(If this coding was chosen directly by the user$)": null 7 | } -------------------------------------------------------------------------------- /json/DataTypes/ContactDetail.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "ContactDetail", 3 | "name$(Name of an individual to contact$)": null, 4 | "telecom$(Contact details for individual or organization$)": null 5 | } -------------------------------------------------------------------------------- /json/DataTypes/ContactPoint.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "ContactPoint", 3 | "system$(C? phone | fax | email | pager | url | sms | other$)": null, 4 | "value$(The actual contact point details$)": null, 5 | "use$(home | work | temp | old | mobile - purpose of this contact point$)": null, 6 | "rank$(Specify preferred order of use (1 = highest)$)": null, 7 | "period$(Time period when the contact point was/is in use$)": null 8 | } -------------------------------------------------------------------------------- /json/DataTypes/Contributor.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "Contributor", 3 | "type$(R! author | editor | reviewer | endorser$)": null, 4 | "name$(R! Who contributed the content$)": null, 5 | "contact$(Contact details of the contributor$)": null 6 | } -------------------------------------------------------------------------------- /json/DataTypes/DataRequirement.json: -------------------------------------------------------------------------------- 1 | { 2 | "type$(R! The type of the required data$)": null, 3 | "profile$(The profile of the required data$)": null, 4 | "mustSupport$(Indicates that specific structure elements are referenced by the knowledge module$)": null, 5 | "codeFilter$(What codes are expected$)": [{ 6 | "path$(R! The code-valued attribute of the filter$)": null, 7 | "valueSetString$($)": null, 8 | "valueSetReference$($)": null, 9 | "valueCode$(What code is expected$)": null, 10 | "valueCoding$(What Coding is expected$)": null, 11 | "valueCodeableConcept$(What CodeableConcept is expected$)": null 12 | }], 13 | "dateFilter$(What dates/date ranges are expected$)": [{ 14 | "path$(R! The date-valued attribute of the filter$)": null, 15 | "valueDateTime$($)": null, 16 | "valuePeriod$($)": null, 17 | "valueDuration$($)": null 18 | }] 19 | } -------------------------------------------------------------------------------- /json/DataTypes/HumanName.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "HumanName", 3 | "use$(usual | official | temp | nickname | anonymous | old | maiden$)": null, 4 | "text$(Text representation of the full name$)": null, 5 | "family$(Family name (often called 'Surname')$)": null, 6 | "given$(Given names (not always 'first'). Includes middle names$)": null, 7 | "prefix$(Parts that come before the name$)": null, 8 | "suffix$(Parts that come after the name$)": null, 9 | "period$(Time period when name was/is in use$)": null 10 | } -------------------------------------------------------------------------------- /json/DataTypes/Identifier.json: -------------------------------------------------------------------------------- 1 | { 2 | "use$(usual | official | temp | secondary (If known)$)": null, 3 | "type$(Description of identifier$)": null, 4 | "system$(The namespace for the identifier value$)": null, 5 | "value$(The value that is unique$)": null, 6 | "period$(Time period when id is/was valid for use$)": null, 7 | "assigner$(Organization that issued id (may be just text)$)": null 8 | } -------------------------------------------------------------------------------- /json/DataTypes/ParameterDefinition.json: -------------------------------------------------------------------------------- 1 | { 2 | "name$(Name used to access the parameter value$)": null, 3 | "use$(R! in | out$)": null, 4 | "min$(Minimum cardinality$)": null, 5 | "max$(Maximum cardinality (a number of *)$)": null, 6 | "documentation$(A brief description of the parameter$)": null, 7 | "type$(R! What type of value$)": null, 8 | "profile$(What profile the value is expected to be$)": null 9 | } -------------------------------------------------------------------------------- /json/DataTypes/Period.json: -------------------------------------------------------------------------------- 1 | { 2 | "start$(C? Starting time with inclusive boundary$)": null, 3 | "end$(C? End time with inclusive boundary if not ongoing$)": null 4 | } -------------------------------------------------------------------------------- /json/DataTypes/Quantity.json: -------------------------------------------------------------------------------- 1 | { 2 | "value$(Numerical value (with implicit precision)$)": null, 3 | "comparator$(< | <= | >= | > - how to understand the value$)": null, 4 | "unit$(Unit representation$)": null, 5 | "system$(C? System that defines coded unit form$)": null, 6 | "code$(Coded form of the unit$)": null 7 | } -------------------------------------------------------------------------------- /json/DataTypes/Range.json: -------------------------------------------------------------------------------- 1 | { 2 | "low$(C? Low limit$)": null, 3 | "high$(C? High limit$)": null 4 | } -------------------------------------------------------------------------------- /json/DataTypes/Ratio.json: -------------------------------------------------------------------------------- 1 | { 2 | "numerator$(Numerator value$)": null, 3 | "denominator$(Denominator value$)": null 4 | } -------------------------------------------------------------------------------- /json/DataTypes/Reference.json: -------------------------------------------------------------------------------- 1 | { 2 | "reference$(C? Literal reference, Relative, internal or absolute URL$)": null, 3 | "identifier$(Logical reference, when literal reference is not known$)": null, 4 | "display$(Text alternative for the resource$)": null 5 | } -------------------------------------------------------------------------------- /json/DataTypes/RelatedArtifact.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "RelatedArtifact", 3 | "type$(R! documentation | justification | citation | predecessor | successor | derived-from | depends-on | composed-of$)": null, 4 | "display$(Brief description of the related artifact$)": null, 5 | "citation$(Bibliographic citation for the artifact$)": null, 6 | "url$(Where the artifact can be accessed$)": null, 7 | "document$(What document is being referenced$)": null, 8 | "resource$(What resource is being referenced$)": null 9 | } -------------------------------------------------------------------------------- /json/DataTypes/SampledData.json: -------------------------------------------------------------------------------- 1 | { 2 | "origin$(R! Zero value and units$)": null, 3 | "period$(R! Number of milliseconds between samples$)": null, 4 | "factor$(Multiply data by this before adding to origin$)": null, 5 | "lowerLimit$(Lower limit of detection$)": null, 6 | "upperLimit$(Upper limit of detection$)": null, 7 | "dimensions$(R! Number of sample points at each time point$)": null, 8 | "data$(R! Decimal values with spaces or \"E\" | \"U\" | \"L\"$)": null 9 | } -------------------------------------------------------------------------------- /json/DataTypes/Signature.json: -------------------------------------------------------------------------------- 1 | { 2 | "type$(R! Indication of the reason the entity signed the object(s)$)": null, 3 | "when$(R! When the signature was created$)": null, 4 | "whoUri$($)": null, 5 | "whoReference$($)": null, 6 | "onBehalfOfUri$($)": null, 7 | "onBehalfOfReference$($)": null, 8 | "contentType$($)": null, 9 | "blob$($)": null 10 | } -------------------------------------------------------------------------------- /json/DataTypes/TriggerDefinition.json: -------------------------------------------------------------------------------- 1 | { 2 | "type$(R! named-event | periodic | data-added | data-modified | data-removed | data-accessed | data-access-ended$)": null, 3 | "eventName$(Triggering event name$)": null, 4 | "eventTimingTiming$($)": null, 5 | "eventTimingReference$($)": null, 6 | "eventTimingDate$($)": null, 7 | "eventTimingDateTime$($)": null, 8 | "eventData$(Triggering data of the event$)": null 9 | } -------------------------------------------------------------------------------- /json/DataTypes/UsageContext.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "UsageContext", 3 | "code$(R! Type of context being specified$)": null, 4 | "valueCodeableConcept$($)": null, 5 | "valueQuantity$($)": null, 6 | "valueRange$($)": null 7 | } -------------------------------------------------------------------------------- /json/Financial/Payment/PaymentNotice.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "PaymentNotice", 3 | "identifier$(Business Identifier$)": null, 4 | "status$(active | cancelled | draft | entered-in-error$)": null, 5 | "request$(Request reference$)": null, 6 | "response$(Response reference$)": null, 7 | "statusDate$(Payment or clearing date$)": null, 8 | "created$(Creation date$)": null, 9 | "target$(Insurer or Regulatory body$)": null, 10 | "provider$(Responsible practitioner$)": null, 11 | "organization$(Responsible organization$)": null, 12 | "paymentStatus$(Whether payment has been sent or cleared$)": null 13 | } -------------------------------------------------------------------------------- /json/Financial/Support/EligibilityRequest.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "EligibilityRequest", 3 | "identifier$(Business Identifier$)": null, 4 | "status$(active | cancelled | draft | entered-in-error$)": null, 5 | "priority$(Desired processing priority$)": null, 6 | "patient$(The subject of the Products and Services$)": null, 7 | "servicedDate$($)": null, 8 | "servicedPeriod$($)": null, 9 | "created$(Creation date$)": null, 10 | "enterer$(Author$)": null, 11 | "provider$(Responsible practitioner$)": null, 12 | "organization$(Responsible organization$)": null, 13 | "insurer$(Target$)": null, 14 | "facility$(Servicing Facility$)": null, 15 | "coverage$(Insurance or medical plan$)": null, 16 | "businessArrangement$(Business agreement$)": null, 17 | "benefitCategory$(Type of services covered$)": null, 18 | "benefitSubCategory$(Detailed services covered within the type$)": null 19 | } -------------------------------------------------------------------------------- /json/Financial/Support/EnrollmentRequest.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "EnrollmentRequest", 3 | "identifier$(Business Identifier$)": null, 4 | "status$(active | cancelled | draft | entered-in-error$)": null, 5 | "created$(Creation date$)": null, 6 | "insurer$(Target$)": null, 7 | "provider$(Responsible practitioner$)": null, 8 | "organization$(Responsible organization$)": null, 9 | "subject$(The subject of the Products and Services$)": null, 10 | "coverage$(Insurance information$)": null 11 | } -------------------------------------------------------------------------------- /json/Financial/Support/EnrollmentResponse.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "EnrollmentResponse", 3 | "identifier$(Business Identifier$)": null, 4 | "status$(active | cancelled | draft | entered-in-error$)": null, 5 | "request$(Claim reference$)": null, 6 | "outcome$(complete | error | partial$)": null, 7 | "disposition$(Disposition Message$)": null, 8 | "created$(Creation date$)": null, 9 | "organization$(Insurer$)": null, 10 | "requestProvider$(Responsible practitioner$)": null, 11 | "requestOrganization$(Responsible organization$)": null 12 | } -------------------------------------------------------------------------------- /json/Identification/Entities/Person.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "Person", 3 | "identifier$(A human identifier for this person$)": null, 4 | "name$(A name associated with the person$)": null, 5 | "telecom$(A contact detail for the person$)": null, 6 | "gender$(male | female | other | unknown$)": null, 7 | "birthDate$(The date on which the person was born$)": null, 8 | "address$(One or more addresses for the person$)": null, 9 | "photo$(Image of the person$)": null, 10 | "managingOrganization$(The organization that is the custodian of the person record$)": null, 11 | "active$(This person's record is in active use$)": null, 12 | "link$(Link to a resource that concerns the same actual person$)": [{ 13 | "target$(R! The resource to which this actual person is associated$)": null, 14 | "assurance$(level1 | level2 | level3 | level4$)": null 15 | }] 16 | } -------------------------------------------------------------------------------- /json/Identification/Entities/Substance.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "Substance", 3 | "identifier$(Unique identifier$)": null, 4 | "status$(active | inactive | entered-in-error$)": null, 5 | "category$(What class/type of substance this is$)": null, 6 | "code$(R! What substance this is$)": null, 7 | "description$(Textual description of the substance, comments$)": null, 8 | "instance$(If this describes a specific package/container of the substance$)": [{ 9 | "identifier$(Identifier of the package/container$)": null, 10 | "expiry$(When no longer valid to use$)": null, 11 | "quantity$(Amount of substance in the package$)": null 12 | }], 13 | "ingredient$(Composition information about the substance$)": [{ 14 | "quantity$(Optional amount (concentration)$)": null, 15 | "substanceCodeableConcept$($)": null, 16 | "substanceReference$($)": null 17 | }] 18 | } -------------------------------------------------------------------------------- /json/Identification/Individuals/RelatedPerson.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "RelatedPerson", 3 | "identifier$(A human identifier for this person$)": null, 4 | "active$(Whether this related person's record is in active use$)": null, 5 | "patient$(R! The patient this person is related to$)": null, 6 | "relationship$(The nature of the relationship$)": null, 7 | "name$(A name associated with the person$)": null, 8 | "telecom$(A contact detail for the person$)": null, 9 | "gender$(male | female | other | unknown$)": null, 10 | "birthDate$(The date on which the related person was born$)": null, 11 | "address$(Address where the related person can be contacted or visited$)": null, 12 | "photo$(Image of the person$)": null, 13 | "period$(Period of time that this relationship is considered valid$)": null 14 | } -------------------------------------------------------------------------------- /json/Infrastructure/Exchange/OperationOutcome.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "OperationOutcome", 3 | "issue$(R! A single issue associated with the action$)": [{ 4 | "severity$(R! fatal | error | warning | information$)": null, 5 | "code$(R! Error or warning code$)": null, 6 | "details$(Additional details about the error$)": null, 7 | "diagnostics$(Additional diagnostic information about the issue$)": null, 8 | "location$(Path of element(s) related to issue$)": null, 9 | "expression$(FHIRPath of element(s) related to issue$)": null 10 | }] 11 | } -------------------------------------------------------------------------------- /json/Infrastructure/Exchange/Subscription.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "Subscription", 3 | "status$(R! requested | active | error | off$)": null, 4 | "contact$(Contact details for source (e.g. troubleshooting)$)": null, 5 | "end$(When to automatically delete the subscription$)": null, 6 | "reason$(R! Description of why this subscription was created$)": null, 7 | "criteria$(R! Rule for server push criteria$)": null, 8 | "error$(Latest error note$)": null, 9 | "channel" : { 10 | "type$(R! rest-hook | websocket | email | sms | message$)": null, 11 | "endpoint$(Where the channel points to$)": null, 12 | "payload$(Mimetype to send, or omit for no payload$)": null, 13 | "header$(Usage depends on the channel type$)": null 14 | }, 15 | "tag$(A tag to add to matching resources$)": null 16 | } -------------------------------------------------------------------------------- /json/Infrastructure/Structure/Basic.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "Basic", 3 | "identifier$(Business identifier$)": null, 4 | "code$(R! Kind of Resource$)": null, 5 | "subject$(Identifies the focus of this resource$)": null, 6 | "created$(When created$)": null, 7 | "author$(Who created$)": null 8 | } -------------------------------------------------------------------------------- /json/Infrastructure/Structure/Binary.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "Binary", 3 | "contentType$(R! MimeType of the binary content$)": null, 4 | "securityContext$(Access Control Management$)": null, 5 | "content$(R! The actual content$)": null 6 | } -------------------------------------------------------------------------------- /json/Workflow/Patient Management/Flag.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "Flag", 3 | "identifier$(Business identifier$)": null, 4 | "status$(R! active | inactive | entered-in-error$)": null, 5 | "category$(Clinical, administrative, etc.$)": null, 6 | "code$(R! Coded or textual message to display to user$)": null, 7 | "subject$(R! Who/What is flag about?$)": null, 8 | "period$(Time period when flag is active$)": null, 9 | "encounter$(Alert relevant during encounter$)": null, 10 | "author$(Flag creator$)": null 11 | } -------------------------------------------------------------------------------- /json/Workflow/Scheduling/AppointmentResponse.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "AppointmentResponse", 3 | "identifier$(External Ids for this item$)": null, 4 | "appointment$(R! Appointment this response relates to$)": null, 5 | "start$(Time from appointment, or requested new start time$)": null, 6 | "end$(Time from appointment, or requested new end time$)": null, 7 | "participantType$(Role of participant in the appointment$)": null, 8 | "actor$(Person, Location/HealthcareService or Device$)": null, 9 | "participantStatus$(Person, Location/HealthcareService or Device$)": null, 10 | "comment$(R! accepted | declined | tentative | in-process | completed | needs-action | entered-in-error$)": null 11 | } -------------------------------------------------------------------------------- /json/Workflow/Workflow #1/DeviceUseStatement.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "DeviceUseStatement", 3 | "identifier$(External identifier for this record$)": null, 4 | "status$(R! active | completed | entered-in-error +$)": null, 5 | "subject$(R! Patient using device$)": null, 6 | "whenUsed$(Period device was used$)": null, 7 | "timingTiming$($)": null, 8 | "timingPeriod$($)": null, 9 | "timingDateTime$($)": null, 10 | "recordedOn$(When statement was recorded$)": null, 11 | "source$(Who made the statement$)": null, 12 | "device$(R! Reference to device used$)": null, 13 | "indication$(Why device was used$)": null, 14 | "bodySite$(Target body site$)": null, 15 | "note$(Addition details (comments instructions)$)": null 16 | } -------------------------------------------------------------------------------- /json/Workflow/Workflow #2/ProcessRequest.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "ProcessRequest", 3 | "identifier$(Business Identifier$)": null, 4 | "status$(active | cancelled | draft | entered-in-error$)": null, 5 | "action$(cancel | poll | reprocess | status$)": null, 6 | "target$(Party which is the target of the request$)": null, 7 | "created$(Creation date$)": null, 8 | "provider$(Responsible practitioner$)": null, 9 | "organization$(Responsible organization$)": null, 10 | "request$(Reference to the Request resource$)": null, 11 | "response$(Reference to the Response resource$)": null, 12 | "nullify$(Remove history$)": null, 13 | "reference$(Reference number/string$)": null, 14 | "item$(Items to re-adjudicate$)": [{ 15 | "sequenceLinkId$(R! Service instance$)": null 16 | }], 17 | "include$(Resource type(s) to include$)": null, 18 | "exclude$(Resource type(s) to exclude$)": null, 19 | "period$(Selection period$)": null 20 | } -------------------------------------------------------------------------------- /json/Workflow/Workflow #2/ProcessResponse.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "ProcessResponse", 3 | "identifier$(Business Identifier$)": null, 4 | "status$(active | cancelled | draft | entered-in-error$)": null, 5 | "created$(Creation date$)": null, 6 | "organization$(Authoring Organization$)": null, 7 | "request$(Request reference$)": null, 8 | "outcome$(Processing outcome$)": null, 9 | "disposition$(Disposition Message$)": null, 10 | "requestProvider$(Responsible Practitioner$)": null, 11 | "requestOrganization$(Responsible organization$)": null, 12 | "form$(Printed Form Identifier$)": null, 13 | "processNote$(Processing comments or additional requirements$)": [{ 14 | "type$(display | print | printoper$)": null, 15 | "text$(Comment on the processing$)": null 16 | }], 17 | "error$(Error code$)": null, 18 | "communicationRequest$(Request for additional information$)": null 19 | } -------------------------------------------------------------------------------- /json/Workflow/Workflow #2/SupplyDelivery.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "SupplyDelivery", 3 | "identifier$(External identifier$)": null, 4 | "basedOn$(Fulfills plan, proposal or order$)": null, 5 | "partOf$(Part of referenced event$)": null, 6 | "status$(in-progress | completed | abandoned | entered-in-error$)": null, 7 | "patient$(Patient for whom the item is supplied$)": null, 8 | "type$(Category of dispense event$)": null, 9 | "suppliedItem" : { 10 | "quantity$(Amount dispensed$)": null, 11 | "itemCodeableConcept$($)": null, 12 | "itemReference$($)": null 13 | }, 14 | "occurrenceDateTime$($)": null, 15 | "occurrencePeriod$($)": null, 16 | "occurrenceTiming$($)": null, 17 | "supplier$(Dispenser$)": null, 18 | "destination$(Where the Supply was sent$)": null, 19 | "receiver$(Who collected the Supply$)": null 20 | } -------------------------------------------------------------------------------- /process/__init__.py: -------------------------------------------------------------------------------- 1 | from process.clean.hl7 import Clean 2 | from process.convert.yml import json_to_yml 3 | from process.write.file import write 4 | from process.scrap.scrap.spiders import hl7_spider 5 | from process.scrap.scrap.spiders.hl7_spider import Hl7Spider 6 | -------------------------------------------------------------------------------- /process/clean/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arkhn/fhir-store/fb9cad03af20823399d95319ff55ece56fc79ca4/process/clean/__init__.py -------------------------------------------------------------------------------- /process/convert/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arkhn/fhir-store/fb9cad03af20823399d95319ff55ece56fc79ca4/process/convert/__init__.py -------------------------------------------------------------------------------- /process/convert/yml.py: -------------------------------------------------------------------------------- 1 | 2 | 3 | def json_to_yml(dict_obj, indent=0, is_in_list=False, head=True): 4 | lines = [] 5 | for key, obj in dict_obj.items(): 6 | if not is_in_list: 7 | str_indent = ' '*4*indent 8 | else: 9 | assert indent > 0 10 | str_indent = ' '*4*(indent - 1) + ' - ' 11 | is_in_list = False 12 | 13 | if obj is None: 14 | lines += ['{}{}:'.format(str_indent, key)] 15 | elif isinstance(obj, str): 16 | lines += ['{}{}: "{}"'.format(' '*4*indent, key, obj)] 17 | elif isinstance(obj, list): 18 | lines += ['{}{}:'.format(str_indent, key)] 19 | for o in obj: 20 | lines += json_to_yml(o, indent+1, is_in_list=True, head=False) 21 | elif isinstance(obj, dict): 22 | lines += ['{}{}:'.format(str_indent, key)] 23 | lines += json_to_yml(obj, indent+1, head=False) 24 | if head: 25 | return '\n'.join(lines) 26 | else: 27 | return lines 28 | -------------------------------------------------------------------------------- /process/scrap/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arkhn/fhir-store/fb9cad03af20823399d95319ff55ece56fc79ca4/process/scrap/__init__.py -------------------------------------------------------------------------------- /process/scrap/scrap/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arkhn/fhir-store/fb9cad03af20823399d95319ff55ece56fc79ca4/process/scrap/scrap/__init__.py -------------------------------------------------------------------------------- /process/scrap/scrap/items.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | # Define here the models for your scraped items 4 | # 5 | # See documentation in: 6 | # https://doc.scrapy.org/en/latest/topics/items.html 7 | 8 | import scrapy 9 | 10 | 11 | class ScrapItem(scrapy.Item): 12 | # define the fields for your item here like: 13 | # name = scrapy.Field() 14 | pass 15 | -------------------------------------------------------------------------------- /process/scrap/scrap/pipelines.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | 3 | # Define your item pipelines here 4 | # 5 | # Don't forget to add your pipeline to the ITEM_PIPELINES setting 6 | # See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html 7 | 8 | 9 | class ScrapPipeline(object): 10 | def process_item(self, item, spider): 11 | return item 12 | -------------------------------------------------------------------------------- /process/scrap/scrap/spiders/__init__.py: -------------------------------------------------------------------------------- 1 | # This package will contain the spiders of your Scrapy project 2 | # 3 | # Please refer to the documentation for information on how to create and manage 4 | # your spiders. 5 | -------------------------------------------------------------------------------- /process/scrap/scrapy.cfg: -------------------------------------------------------------------------------- 1 | # Automatically created by: scrapy startproject 2 | # 3 | # For more information about the [deploy] section see: 4 | # https://scrapyd.readthedocs.io/en/latest/deploy.html 5 | 6 | [settings] 7 | default = scrap.settings 8 | 9 | [deploy] 10 | #url = http://localhost:6800/ 11 | project = scrap 12 | -------------------------------------------------------------------------------- /process/write/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arkhn/fhir-store/fb9cad03af20823399d95319ff55ece56fc79ca4/process/write/__init__.py -------------------------------------------------------------------------------- /process/write/file.py: -------------------------------------------------------------------------------- 1 | import os 2 | import errno 3 | 4 | 5 | def write(domain, subdomain, resource, file_data, format): 6 | supporter_formats = ('yml', 'json') 7 | if format not in ('yml', 'json'): 8 | raise NotImplementedError('FHIR Store only supports formats', supporter_formats) 9 | 10 | filename = '{}/{}/{}/{}.{}'.format(format, domain, subdomain, resource, format) 11 | if not os.path.exists(os.path.dirname(filename)): 12 | try: 13 | os.makedirs(os.path.dirname(filename)) 14 | except OSError as exc: 15 | if exc.errno != errno.EEXIST: 16 | raise 17 | 18 | with open(filename, "w") as f: 19 | f.write(file_data) 20 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | inscriptis==0.0.3.2 2 | Scrapy==1.5.1 3 | pytest==3.3.2 4 | beautifulsoup4==4.6.3 5 | attrs==17.4.0 6 | -------------------------------------------------------------------------------- /resources/json/Clinical/Care Provision/VisionPrescription.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "VisionPrescription", 3 | "identifier": null, 4 | "status": null, 5 | "patient": null, 6 | "encounter": null, 7 | "dateWritten": null, 8 | "prescriber": null, 9 | "reasonCodeableConcept": null, 10 | "reasonReference": null, 11 | "dispense": [{ 12 | "product": null, 13 | "eye": null, 14 | "sphere": null, 15 | "cylinder": null, 16 | "axis": null, 17 | "prism": null, 18 | "base": null, 19 | "add": null, 20 | "power": null, 21 | "backCurve": null, 22 | "diameter": null, 23 | "duration": null, 24 | "color": null, 25 | "brand": null, 26 | "note": null 27 | }] 28 | } -------------------------------------------------------------------------------- /resources/json/Clinical/Diagnostics/BodySite.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "BodySite", 3 | "identifier": null, 4 | "active": null, 5 | "code": null, 6 | "qualifier": null, 7 | "description": null, 8 | "image": null, 9 | "patient": null 10 | } -------------------------------------------------------------------------------- /resources/json/Clinical/Diagnostics/DiagnosticReport.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "DiagnosticReport", 3 | "identifier": null, 4 | "basedOn": null, 5 | "status": null, 6 | "category": null, 7 | "code": null, 8 | "subject": null, 9 | "context": null, 10 | "effectiveDateTime": null, 11 | "effectivePeriod": null, 12 | "issued": null, 13 | "performer": [{ 14 | "role": null, 15 | "actor": null 16 | }], 17 | "specimen": null, 18 | "result": null, 19 | "imagingStudy": null, 20 | "image": [{ 21 | "comment": null, 22 | "link": null 23 | }], 24 | "conclusion": null, 25 | "codedDiagnosis": null, 26 | "presentedForm": null 27 | } -------------------------------------------------------------------------------- /resources/json/Clinical/Diagnostics/ImagingManifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "ImagingManifest", 3 | "identifier": null, 4 | "patient": null, 5 | "authoringTime": null, 6 | "author": null, 7 | "description": null, 8 | "study": [{ 9 | "uid": null, 10 | "imagingStudy": null, 11 | "endpoint": null, 12 | "series": [{ 13 | "uid": null, 14 | "endpoint": null, 15 | "instance": [{ 16 | "sopClass": null, 17 | "uid": null 18 | }] 19 | }] 20 | }] 21 | } -------------------------------------------------------------------------------- /resources/json/Clinical/General/DetectedIssue.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "DetectedIssue", 3 | "identifier": null, 4 | "status": null, 5 | "category": null, 6 | "severity": null, 7 | "patient": null, 8 | "date": null, 9 | "author": null, 10 | "implicated": null, 11 | "detail": null, 12 | "reference": null, 13 | "mitigation": [{ 14 | "action": null, 15 | "date": null, 16 | "author": null 17 | }] 18 | } -------------------------------------------------------------------------------- /resources/json/Clinical/General/RiskAssessment.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "RiskAssessment", 3 | "identifier": null, 4 | "basedOn": null, 5 | "parent": null, 6 | "status": null, 7 | "method": null, 8 | "code": null, 9 | "subject": null, 10 | "context": null, 11 | "occurrenceDateTime": null, 12 | "occurrencePeriod": null, 13 | "condition": null, 14 | "performer": null, 15 | "reasonCodeableConcept": null, 16 | "reasonReference": null, 17 | "basis": null, 18 | "prediction": [{ 19 | "outcome": null, 20 | "probabilityDecimal": null, 21 | "probabilityRange": null, 22 | "qualitativeRisk": null, 23 | "relativeRisk": null, 24 | "whenPeriod": null, 25 | "whenRange": null, 26 | "rationale": null 27 | }], 28 | "mitigation": null, 29 | "comment": null 30 | } -------------------------------------------------------------------------------- /resources/json/Clinical/Medication & Immunization/ImmunizationRecommendation.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "ImmunizationRecommendation", 3 | "identifier": null, 4 | "patient": null, 5 | "recommendation": [{ 6 | "date": null, 7 | "vaccineCode": null, 8 | "targetDisease": null, 9 | "doseNumber": null, 10 | "forecastStatus": null, 11 | "dateCriterion": [{ 12 | "code": null, 13 | "value": null 14 | }], 15 | "protocol" : { 16 | "doseSequence": null, 17 | "description": null, 18 | "authority": null, 19 | "series": null 20 | }, 21 | "supportingImmunization": null, 22 | "supportingPatientInformation": null 23 | }] 24 | } -------------------------------------------------------------------------------- /resources/json/Clinical/Medication & Immunization/Medication.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "Medication", 3 | "code": null, 4 | "status": null, 5 | "isBrand": null, 6 | "isOverTheCounter": null, 7 | "manufacturer": null, 8 | "form": null, 9 | "ingredient": [{ 10 | "itemCodeableConcept": null, 11 | "itemReference": null, 12 | "isActive": null, 13 | "amount": null 14 | }], 15 | "package" : { 16 | "container": null, 17 | "content": [{ 18 | "itemCodeableConcept": null, 19 | "itemReference": null, 20 | "amount": null 21 | }], 22 | "batch": [{ 23 | "lotNumber": null, 24 | "expirationDate": null 25 | }] 26 | }, 27 | "image": null 28 | } -------------------------------------------------------------------------------- /resources/json/Conformance/Content/DataElement.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "DataElement", 3 | "url": null, 4 | "identifier": null, 5 | "version": null, 6 | "status": null, 7 | "experimental": null, 8 | "date": null, 9 | "publisher": null, 10 | "name": null, 11 | "title": null, 12 | "contact": null, 13 | "useContext": null, 14 | "jurisdiction": null, 15 | "copyright": null, 16 | "stringency": null, 17 | "mapping": [{ 18 | "identity": null, 19 | "uri": null, 20 | "name": null, 21 | "comment": null 22 | }], 23 | "element": null 24 | } -------------------------------------------------------------------------------- /resources/json/Conformance/Operations Control/SearchParameter.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "SearchParameter", 3 | "url": null, 4 | "version": null, 5 | "name": null, 6 | "status": null, 7 | "experimental": null, 8 | "date": null, 9 | "publisher": null, 10 | "contact": null, 11 | "useContext": null, 12 | "jurisdiction": null, 13 | "purpose": null, 14 | "code": null, 15 | "base": null, 16 | "type": null, 17 | "derivedFrom": null, 18 | "description": null, 19 | "expression": null, 20 | "xpath": null, 21 | "xpathUsage": null, 22 | "target": null, 23 | "comparator": null, 24 | "modifier": null, 25 | "chain": null, 26 | "component": [{ 27 | "definition": null, 28 | "expression": null 29 | }] 30 | } -------------------------------------------------------------------------------- /resources/json/Conformance/Terminology/NamingSystem.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "NamingSystem", 3 | "name": null, 4 | "status": null, 5 | "kind": null, 6 | "date": null, 7 | "publisher": null, 8 | "contact": null, 9 | "responsible": null, 10 | "type": null, 11 | "description": null, 12 | "useContext": null, 13 | "jurisdiction": null, 14 | "usage": null, 15 | "uniqueId": [{ 16 | "type": null, 17 | "value": null, 18 | "preferred": null, 19 | "comment": null, 20 | "period": null 21 | }], 22 | "replacedBy": null 23 | } -------------------------------------------------------------------------------- /resources/json/Datatypes/Address.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "Address", 3 | "use": null, 4 | "type": null, 5 | "text": null, 6 | "line": null, 7 | "city": null, 8 | "district": null, 9 | "state": null, 10 | "postalCode": null, 11 | "country": null, 12 | "period": null 13 | } -------------------------------------------------------------------------------- /resources/json/Datatypes/Annotation.json: -------------------------------------------------------------------------------- 1 | { 2 | "authorReference": null, 3 | "authorString": null, 4 | "time": null, 5 | "text": null 6 | } -------------------------------------------------------------------------------- /resources/json/Datatypes/Attachment.json: -------------------------------------------------------------------------------- 1 | { 2 | "contentType": null, 3 | "language": null, 4 | "data": null, 5 | "url": null, 6 | "size": null, 7 | "hash": null, 8 | "title": null, 9 | "creation": null 10 | } -------------------------------------------------------------------------------- /resources/json/Datatypes/CodeableConcept.json: -------------------------------------------------------------------------------- 1 | { 2 | "coding": null, 3 | "text": null 4 | } -------------------------------------------------------------------------------- /resources/json/Datatypes/Coding.json: -------------------------------------------------------------------------------- 1 | { 2 | "system": null, 3 | "version": null, 4 | "code": null, 5 | "display": null, 6 | "userSelected": null 7 | } -------------------------------------------------------------------------------- /resources/json/Datatypes/ContactPoint.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "ContactPoint", 3 | "system": null, 4 | "value": null, 5 | "use": null, 6 | "rank": null, 7 | "period": null 8 | } -------------------------------------------------------------------------------- /resources/json/Datatypes/HumanName.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "HumanName", 3 | "use": null, 4 | "text": null, 5 | "family": null, 6 | "given": null, 7 | "prefix": null, 8 | "suffix": null, 9 | "period": null 10 | } -------------------------------------------------------------------------------- /resources/json/Datatypes/Identifier.json: -------------------------------------------------------------------------------- 1 | { 2 | "use": null, 3 | "type": null, 4 | "system": null, 5 | "value": null, 6 | "period": null, 7 | "assigner": null 8 | } -------------------------------------------------------------------------------- /resources/json/Datatypes/Period.json: -------------------------------------------------------------------------------- 1 | { 2 | "start": null, 3 | "end": null 4 | } -------------------------------------------------------------------------------- /resources/json/Datatypes/Quantity.json: -------------------------------------------------------------------------------- 1 | { 2 | "value": null, 3 | "comparator": null, 4 | "unit": null, 5 | "system": null, 6 | "code": null 7 | } -------------------------------------------------------------------------------- /resources/json/Datatypes/Range.json: -------------------------------------------------------------------------------- 1 | { 2 | "low": null, 3 | "high": null 4 | } -------------------------------------------------------------------------------- /resources/json/Datatypes/Ratio.json: -------------------------------------------------------------------------------- 1 | { 2 | "numerator": null, 3 | "denominator": null 4 | } -------------------------------------------------------------------------------- /resources/json/Datatypes/SampledData.json: -------------------------------------------------------------------------------- 1 | { 2 | "origin": null, 3 | "period": null, 4 | "factor": null, 5 | "lowerLimit": null, 6 | "upperLimit": null, 7 | "dimensions": null, 8 | "data": null 9 | } -------------------------------------------------------------------------------- /resources/json/Datatypes/Signature.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": null, 3 | "when": null, 4 | "whoUri": null, 5 | "whoReference": null, 6 | "onBehalfOfUri": null, 7 | "onBehalfOfReference": null, 8 | "contentType": null, 9 | "blob": null 10 | } -------------------------------------------------------------------------------- /resources/json/Datatypes/Timing.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "Timing", 3 | "event": null, 4 | "repeat" : { 5 | "boundsDuration": null, 6 | "boundsRange": null, 7 | "boundsPeriod": null, 8 | "count": null, 9 | "countMax": null, 10 | "duration": null, 11 | "durationMax": null, 12 | "durationUnit": null, 13 | "frequency": null, 14 | "frequencyMax": null, 15 | "period": null, 16 | "periodMax": null, 17 | "periodUnit": null, 18 | "dayOfWeek": null, 19 | "timeOfDay": null, 20 | "when": null, 21 | "offset": null 22 | }, 23 | "code": null 24 | } -------------------------------------------------------------------------------- /resources/json/Financial/Payment/PaymentNotice.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "PaymentNotice", 3 | "identifier": null, 4 | "status": null, 5 | "request": null, 6 | "response": null, 7 | "statusDate": null, 8 | "created": null, 9 | "target": null, 10 | "provider": null, 11 | "organization": null, 12 | "paymentStatus": null 13 | } -------------------------------------------------------------------------------- /resources/json/Financial/Payment/PaymentReconciliation.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "PaymentReconciliation", 3 | "identifier": null, 4 | "status": null, 5 | "period": null, 6 | "created": null, 7 | "organization": null, 8 | "request": null, 9 | "outcome": null, 10 | "disposition": null, 11 | "requestProvider": null, 12 | "requestOrganization": null, 13 | "detail": [{ 14 | "type": null, 15 | "request": null, 16 | "response": null, 17 | "submitter": null, 18 | "payee": null, 19 | "date": null, 20 | "amount": null 21 | }], 22 | "form": null, 23 | "total": null, 24 | "processNote": [{ 25 | "type": null, 26 | "text": null 27 | }] 28 | } -------------------------------------------------------------------------------- /resources/json/Financial/Support/EligibilityRequest.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "EligibilityRequest", 3 | "identifier": null, 4 | "status": null, 5 | "priority": null, 6 | "patient": null, 7 | "servicedDate": null, 8 | "servicedPeriod": null, 9 | "created": null, 10 | "enterer": null, 11 | "provider": null, 12 | "organization": null, 13 | "insurer": null, 14 | "facility": null, 15 | "coverage": null, 16 | "businessArrangement": null, 17 | "benefitCategory": null, 18 | "benefitSubCategory": null 19 | } -------------------------------------------------------------------------------- /resources/json/Financial/Support/EnrollmentRequest.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "EnrollmentRequest", 3 | "identifier": null, 4 | "status": null, 5 | "created": null, 6 | "insurer": null, 7 | "provider": null, 8 | "organization": null, 9 | "subject": null, 10 | "coverage": null 11 | } -------------------------------------------------------------------------------- /resources/json/Financial/Support/EnrollmentResponse.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "EnrollmentResponse", 3 | "identifier": null, 4 | "status": null, 5 | "request": null, 6 | "outcome": null, 7 | "disposition": null, 8 | "created": null, 9 | "organization": null, 10 | "requestProvider": null, 11 | "requestOrganization": null 12 | } -------------------------------------------------------------------------------- /resources/json/Identification/Devices/Device.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "Device", 3 | "identifier": null, 4 | "udi" : { 5 | "deviceIdentifier": null, 6 | "name": null, 7 | "jurisdiction": null, 8 | "carrierHRF": null, 9 | "carrierAIDC": null, 10 | "issuer": null, 11 | "entryType": null 12 | }, 13 | "status": null, 14 | "type": null, 15 | "lotNumber": null, 16 | "manufacturer": null, 17 | "manufactureDate": null, 18 | "expirationDate": null, 19 | "model": null, 20 | "version": null, 21 | "patient": null, 22 | "owner": null, 23 | "contact": null, 24 | "location": null, 25 | "url": null, 26 | "note": null, 27 | "safety": null 28 | } -------------------------------------------------------------------------------- /resources/json/Identification/Devices/DeviceComponent.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "DeviceComponent", 3 | "identifier": null, 4 | "type": null, 5 | "lastSystemChange": null, 6 | "source": null, 7 | "parent": null, 8 | "operationalStatus": null, 9 | "parameterGroup": null, 10 | "measurementPrinciple": null, 11 | "productionSpecification": [{ 12 | "specType": null, 13 | "componentId": null, 14 | "productionSpec": null 15 | }], 16 | "languageCode": null 17 | } -------------------------------------------------------------------------------- /resources/json/Identification/Devices/DeviceMetric.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "DeviceMetric", 3 | "identifier": null, 4 | "type": null, 5 | "unit": null, 6 | "source": null, 7 | "parent": null, 8 | "operationalStatus": null, 9 | "color": null, 10 | "category": null, 11 | "measurementPeriod": null, 12 | "calibration": [{ 13 | "type": null, 14 | "state": null, 15 | "time": null 16 | }] 17 | } -------------------------------------------------------------------------------- /resources/json/Identification/Entities/Location.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "Location", 3 | "identifier": null, 4 | "status": null, 5 | "operationalStatus": null, 6 | "name": null, 7 | "alias": null, 8 | "description": null, 9 | "mode": null, 10 | "type": null, 11 | "telecom": null, 12 | "address
": null, 13 | "physicalType": null, 14 | "position" : { 15 | "longitude": null, 16 | "latitude": null, 17 | "altitude": null 18 | }, 19 | "managingOrganization": null, 20 | "partOf": null, 21 | "endpoint": null 22 | } -------------------------------------------------------------------------------- /resources/json/Identification/Entities/Person.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "Person", 3 | "identifier": null, 4 | "name": null, 5 | "telecom": null, 6 | "gender": null, 7 | "birthDate": null, 8 | "address": null, 9 | "photo": null, 10 | "managingOrganization": null, 11 | "active": null, 12 | "link": [{ 13 | "target": null, 14 | "assurance": null 15 | }] 16 | } -------------------------------------------------------------------------------- /resources/json/Identification/Entities/Substance.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "Substance", 3 | "identifier": null, 4 | "status": null, 5 | "category": null, 6 | "code": null, 7 | "description": null, 8 | "instance": [{ 9 | "identifier": null, 10 | "expiry": null, 11 | "quantity": null 12 | }], 13 | "ingredient": [{ 14 | "quantity": null, 15 | "substanceCodeableConcept": null, 16 | "substanceReference": null 17 | }] 18 | } -------------------------------------------------------------------------------- /resources/json/Identification/Groups/Group.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "Group", 3 | "identifier": null, 4 | "active": null, 5 | "type": null, 6 | "actual": null, 7 | "code": null, 8 | "name": null, 9 | "quantity": null, 10 | "characteristic": [{ 11 | "code": null, 12 | "valueCodeableConcept": null, 13 | "valueBoolean": null, 14 | "valueQuantity": null, 15 | "valueRange": null, 16 | "exclude": null, 17 | "period": null 18 | }], 19 | "member": [{ 20 | "entity": null, 21 | "period": null, 22 | "inactive": null 23 | }] 24 | } -------------------------------------------------------------------------------- /resources/json/Identification/Groups/Organization.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "Organization", 3 | "identifier": null, 4 | "active": null, 5 | "type": null, 6 | "name": null, 7 | "alias": null, 8 | "telecom": null, 9 | "address": null, 10 | "partOf": null, 11 | "contact": [{ 12 | "purpose": null, 13 | "name": null, 14 | "telecom": null, 15 | "address
": null 16 | }], 17 | "endpoint": null 18 | } -------------------------------------------------------------------------------- /resources/json/Identification/Individuals/Practitioner.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "Practitioner", 3 | "identifier": null, 4 | "active": null, 5 | "name": null, 6 | "telecom": null, 7 | "address": null, 8 | "gender": null, 9 | "birthDate": null, 10 | "photo": null, 11 | "qualification": [{ 12 | "identifier": null, 13 | "code": null, 14 | "period": null, 15 | "issuer": null 16 | }], 17 | "communication": null 18 | } -------------------------------------------------------------------------------- /resources/json/Identification/Individuals/RelatedPerson.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "RelatedPerson", 3 | "identifier": null, 4 | "active": null, 5 | "patient": null, 6 | "relationship": null, 7 | "name": null, 8 | "telecom": null, 9 | "gender": null, 10 | "birthDate": null, 11 | "address": null, 12 | "photo": null, 13 | "period": null 14 | } -------------------------------------------------------------------------------- /resources/json/Infrastructure/Documents & Lists/DocumentManifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "DocumentManifest", 3 | "masterIdentifier": null, 4 | "identifier": null, 5 | "status": null, 6 | "type": null, 7 | "subject": null, 8 | "created": null, 9 | "author": null, 10 | "recipient": null, 11 | "source": null, 12 | "description": null, 13 | "content": [{ 14 | "pAttachment": null, 15 | "pReference": null 16 | }], 17 | "related": [{ 18 | "identifier": null, 19 | "ref": null 20 | }] 21 | } -------------------------------------------------------------------------------- /resources/json/Infrastructure/Documents & Lists/List.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "List", 3 | "identifier": null, 4 | "status": null, 5 | "mode": null, 6 | "title": null, 7 | "code": null, 8 | "subject": null, 9 | "encounter": null, 10 | "date": null, 11 | "source": null, 12 | "orderedBy": null, 13 | "note": null, 14 | "entry": [{ 15 | "flag": null, 16 | "deleted": null, 17 | "date": null, 18 | "item": null 19 | }], 20 | "emptyReason": null 21 | } -------------------------------------------------------------------------------- /resources/json/Infrastructure/Exchange/MessageHeader.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "MessageHeader", 3 | "event": null, 4 | "destination": [{ 5 | "name": null, 6 | "target": null, 7 | "endpoint": null 8 | }], 9 | "receiver": null, 10 | "sender": null, 11 | "timestamp": null, 12 | "enterer": null, 13 | "author": null, 14 | "source" : { 15 | "name": null, 16 | "software": null, 17 | "version": null, 18 | "contact": null, 19 | "endpoint": null 20 | }, 21 | "responsible": null, 22 | "reason": null, 23 | "response" : { 24 | "identifier": null, 25 | "code": null, 26 | "details": null 27 | }, 28 | "focus": null 29 | } -------------------------------------------------------------------------------- /resources/json/Infrastructure/Exchange/OperationOutcome.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "OperationOutcome", 3 | "issue": [{ 4 | "severity": null, 5 | "code": null, 6 | "details": null, 7 | "diagnostics": null, 8 | "location": null, 9 | "expression": null 10 | }] 11 | } -------------------------------------------------------------------------------- /resources/json/Infrastructure/Exchange/Parameters.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "Parameters", 3 | "parameter": [{ 4 | "name": null, 5 | "valueInteger": null, 6 | "valueDecimal": null, 7 | "valueDateTime": null, 8 | "valueDate": null, 9 | "valueInstant": null, 10 | "valueString": null, 11 | "valueUri": null, 12 | "valueBoolean": null, 13 | "valueCode": null, 14 | "valueBase64Binary": null, 15 | "valueCoding": null, 16 | "valueCodeableConcept": null, 17 | "valueAttachment": null, 18 | "valueIdentifier": null, 19 | "valueQuantity": null, 20 | "valueRange": null, 21 | "valuePeriod": null, 22 | "valueRatio": null, 23 | "valueHumanName": null, 24 | "valueAddress
": null, 25 | "valueContactPoint": null, 26 | "valueSchedule": null, 27 | "valueReference": null, 28 | "resource": null, 29 | "part": null 30 | }] 31 | } -------------------------------------------------------------------------------- /resources/json/Infrastructure/Exchange/Subscription.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "Subscription", 3 | "status": null, 4 | "contact": null, 5 | "end": null, 6 | "reason": null, 7 | "criteria": null, 8 | "error": null, 9 | "channel" : { 10 | "type": null, 11 | "endpoint": null, 12 | "payload": null, 13 | "header": null 14 | }, 15 | "tag": null 16 | } -------------------------------------------------------------------------------- /resources/json/Infrastructure/Information Tracking/Provenance.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "Provenance", 3 | "target": null, 4 | "period": null, 5 | "recorded": null, 6 | "policy": null, 7 | "location": null, 8 | "reason": null, 9 | "activity": null, 10 | "agent": [{ 11 | "role": null, 12 | "whoUri": null, 13 | "whoReference": null, 14 | "onBehalfOfUri": null, 15 | "onBehalfOfReference": null, 16 | "relatedAgentType": null 17 | }], 18 | "entity": [{ 19 | "role": null, 20 | "whatUri": null, 21 | "whatReference": null, 22 | "whatIdentifier": null, 23 | "agent": null 24 | }], 25 | "signature": null 26 | } -------------------------------------------------------------------------------- /resources/json/Infrastructure/Structure/Basic.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "Basic", 3 | "identifier": null, 4 | "code": null, 5 | "subject": null, 6 | "created": null, 7 | "author": null 8 | } -------------------------------------------------------------------------------- /resources/json/Infrastructure/Structure/Binary.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "Binary", 3 | "contentType": null, 4 | "securityContext": null, 5 | "content": null 6 | } -------------------------------------------------------------------------------- /resources/json/Infrastructure/Structure/Bundle.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "Bundle", 3 | "identifier": null, 4 | "type": null, 5 | "total": null, 6 | "link": [{ 7 | "relation": null, 8 | "url": null 9 | }], 10 | "entry": [{ 11 | "link": null, 12 | "fullUrl": null, 13 | "resource": null, 14 | "search" : { 15 | "mode": null, 16 | "score": null 17 | }, 18 | "request" : { 19 | "method": null, 20 | "url": null, 21 | "ifNoneMatch": null, 22 | "ifModifiedSince": null, 23 | "ifMatch": null, 24 | "ifNoneExist": null 25 | }, 26 | "response" : { 27 | "status": null, 28 | "location": null, 29 | "etag": null, 30 | "lastModified": null, 31 | "outcome": null 32 | } 33 | }], 34 | "signature": null 35 | } -------------------------------------------------------------------------------- /resources/json/Infrastructure/Structure/Media.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "Media", 3 | "identifier": null, 4 | "basedOn": null, 5 | "type": null, 6 | "subtype": null, 7 | "view": null, 8 | "subject": null, 9 | "context": null, 10 | "occurrenceDateTime": null, 11 | "occurrencePeriod": null, 12 | "operator": null, 13 | "reasonCode": null, 14 | "bodySite": null, 15 | "device": null, 16 | "height": null, 17 | "width": null, 18 | "frames": null, 19 | "duration": null, 20 | "content": null, 21 | "note": null 22 | } -------------------------------------------------------------------------------- /resources/json/Workflow/Patient Management/EpisodeOfCare.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "EpisodeOfCare", 3 | "identifier": null, 4 | "status": null, 5 | "statusHistory": [{ 6 | "status": null, 7 | "period": null 8 | }], 9 | "type": null, 10 | "diagnosis": [{ 11 | "condition": null, 12 | "role": null, 13 | "rank": null 14 | }], 15 | "patient": null, 16 | "managingOrganization": null, 17 | "period": null, 18 | "referralRequest": null, 19 | "careManager": null, 20 | "team": null, 21 | "account": null 22 | } -------------------------------------------------------------------------------- /resources/json/Workflow/Patient Management/Flag.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "Flag", 3 | "identifier": null, 4 | "status": null, 5 | "category": null, 6 | "code": null, 7 | "subject": null, 8 | "period": null, 9 | "encounter": null, 10 | "author": null 11 | } -------------------------------------------------------------------------------- /resources/json/Workflow/Scheduling/AppointmentResponse.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "AppointmentResponse", 3 | "identifier": null, 4 | "appointment": null, 5 | "start": null, 6 | "end": null, 7 | "participantType": null, 8 | "actor": null, 9 | "participantStatus": null, 10 | "comment": null 11 | } -------------------------------------------------------------------------------- /resources/json/Workflow/Scheduling/Schedule.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "Schedule", 3 | "identifier": null, 4 | "active": null, 5 | "serviceCategory": null, 6 | "serviceType": null, 7 | "specialty": null, 8 | "actor": null, 9 | "planningHorizon": null, 10 | "comment": null 11 | } -------------------------------------------------------------------------------- /resources/json/Workflow/Scheduling/Slot.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "Slot", 3 | "identifier": null, 4 | "serviceCategory": null, 5 | "serviceType": null, 6 | "specialty": null, 7 | "appointmentType": null, 8 | "schedule": null, 9 | "status": null, 10 | "start": null, 11 | "end": null, 12 | "overbooked": null, 13 | "comment": null 14 | } -------------------------------------------------------------------------------- /resources/json/Workflow/Workflow #1/DeviceUseStatement.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "DeviceUseStatement", 3 | "identifier": null, 4 | "status": null, 5 | "subject": null, 6 | "whenUsed": null, 7 | "timingTiming": null, 8 | "timingPeriod": null, 9 | "timingDateTime": null, 10 | "recordedOn": null, 11 | "source": null, 12 | "device": null, 13 | "indication": null, 14 | "bodySite": null, 15 | "note": null 16 | } -------------------------------------------------------------------------------- /resources/json/Workflow/Workflow #2/ProcessRequest.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "ProcessRequest", 3 | "identifier": null, 4 | "status": null, 5 | "action": null, 6 | "target": null, 7 | "created": null, 8 | "provider": null, 9 | "organization": null, 10 | "request": null, 11 | "response": null, 12 | "nullify": null, 13 | "reference": null, 14 | "item": [{ 15 | "sequenceLinkId": null 16 | }], 17 | "include": null, 18 | "exclude": null, 19 | "period": null 20 | } -------------------------------------------------------------------------------- /resources/json/Workflow/Workflow #2/ProcessResponse.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "ProcessResponse", 3 | "identifier": null, 4 | "status": null, 5 | "created": null, 6 | "organization": null, 7 | "request": null, 8 | "outcome": null, 9 | "disposition": null, 10 | "requestProvider": null, 11 | "requestOrganization": null, 12 | "form": null, 13 | "processNote": [{ 14 | "type": null, 15 | "text": null 16 | }], 17 | "error": null, 18 | "communicationRequest": null 19 | } -------------------------------------------------------------------------------- /resources/json/Workflow/Workflow #2/SupplyDelivery.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "SupplyDelivery", 3 | "identifier": null, 4 | "basedOn": null, 5 | "partOf": null, 6 | "status": null, 7 | "patient": null, 8 | "type": null, 9 | "suppliedItem" : { 10 | "quantity": null, 11 | "itemCodeableConcept": null, 12 | "itemReference": null 13 | }, 14 | "occurrenceDateTime": null, 15 | "occurrencePeriod": null, 16 | "occurrenceTiming": null, 17 | "supplier": null, 18 | "destination": null, 19 | "receiver": null 20 | } -------------------------------------------------------------------------------- /resources/json/Workflow/Workflow #2/SupplyRequest.json: -------------------------------------------------------------------------------- 1 | { 2 | "resourceType" : "SupplyRequest", 3 | "identifier": null, 4 | "status": null, 5 | "category": null, 6 | "priority": null, 7 | "orderedItem" : { 8 | "quantity": null, 9 | "itemCodeableConcept": null, 10 | "itemReference": null 11 | }, 12 | "occurrenceDateTime": null, 13 | "occurrencePeriod": null, 14 | "occurrenceTiming": null, 15 | "authoredOn": null, 16 | "requester" : { 17 | "agent": null, 18 | "onBehalfOf": null 19 | }, 20 | "supplier": null, 21 | "reasonCodeableConcept": null, 22 | "reasonReference": null, 23 | "deliverFrom": null, 24 | "deliverTo": null 25 | } -------------------------------------------------------------------------------- /resources/yml/Clinical/Care Provision/Goal.yml: -------------------------------------------------------------------------------- 1 | resourceType: "Goal" 2 | identifier: 3 | status: 4 | category: 5 | priority: 6 | description: 7 | subject: 8 | startDate: 9 | startCodeableConcept: 10 | target: 11 | measure: 12 | detailQuantity: 13 | detailRange: 14 | detailCodeableConcept: 15 | dueDate: 16 | dueDuration: 17 | statusDate: 18 | statusReason: 19 | expressedBy: 20 | addresses: 21 | note: 22 | outcomeCode: 23 | outcomeReference: -------------------------------------------------------------------------------- /resources/yml/Clinical/Care Provision/ReferralRequest.yml: -------------------------------------------------------------------------------- 1 | resourceType: "ReferralRequest" 2 | identifier: 3 | definition: 4 | basedOn: 5 | replaces: 6 | groupIdentifier: 7 | status: 8 | intent: 9 | type: 10 | priority: 11 | serviceRequested: 12 | subject: 13 | context: 14 | occurrenceDateTime: 15 | occurrencePeriod: 16 | authoredOn: 17 | requester: 18 | agent: 19 | onBehalfOf: 20 | specialty: 21 | recipient: 22 | reasonCode: 23 | reasonReference: 24 | description: 25 | supportingInfo: 26 | note: 27 | relevantHistory: -------------------------------------------------------------------------------- /resources/yml/Clinical/Care Provision/VisionPrescription.yml: -------------------------------------------------------------------------------- 1 | resourceType: "VisionPrescription" 2 | identifier: 3 | status: 4 | patient: 5 | encounter: 6 | dateWritten: 7 | prescriber: 8 | reasonCodeableConcept: 9 | reasonReference: 10 | dispense: 11 | - product: 12 | eye: 13 | sphere: 14 | cylinder: 15 | axis: 16 | prism: 17 | base: 18 | add: 19 | power: 20 | backCurve: 21 | diameter: 22 | duration: 23 | color: 24 | brand: 25 | note: -------------------------------------------------------------------------------- /resources/yml/Clinical/Diagnostics/BodySite.yml: -------------------------------------------------------------------------------- 1 | resourceType: "BodySite" 2 | identifier: 3 | active: 4 | code: 5 | qualifier: 6 | description: 7 | image: 8 | patient: -------------------------------------------------------------------------------- /resources/yml/Clinical/Diagnostics/DiagnosticReport.yml: -------------------------------------------------------------------------------- 1 | resourceType: "DiagnosticReport" 2 | identifier: 3 | basedOn: 4 | status: 5 | category: 6 | code: 7 | subject: 8 | context: 9 | effectiveDateTime: 10 | effectivePeriod: 11 | issued: 12 | performer: 13 | - role: 14 | actor: 15 | specimen: 16 | result: 17 | imagingStudy: 18 | image: 19 | - comment: 20 | link: 21 | conclusion: 22 | codedDiagnosis: 23 | presentedForm: -------------------------------------------------------------------------------- /resources/yml/Clinical/Diagnostics/ImagingManifest.yml: -------------------------------------------------------------------------------- 1 | resourceType: "ImagingManifest" 2 | identifier: 3 | patient: 4 | authoringTime: 5 | author: 6 | description: 7 | study: 8 | - uid: 9 | imagingStudy: 10 | endpoint: 11 | series: 12 | - uid: 13 | endpoint: 14 | instance: 15 | - sopClass: 16 | uid: -------------------------------------------------------------------------------- /resources/yml/Clinical/Diagnostics/Specimen.yml: -------------------------------------------------------------------------------- 1 | resourceType: "Specimen" 2 | identifier: 3 | accessionIdentifier: 4 | status: 5 | type: 6 | subject: 7 | receivedTime: 8 | parent: 9 | request: 10 | collection: 11 | collector: 12 | collectedDateTime: 13 | collectedPeriod: 14 | quantity: 15 | method: 16 | bodySite: 17 | processing: 18 | - description: 19 | procedure: 20 | additive: 21 | timeDateTime: 22 | timePeriod: 23 | container: 24 | - identifier: 25 | description: 26 | type: 27 | capacity: 28 | specimenQuantity: 29 | additiveCodeableConcept: 30 | additiveReference: 31 | note: -------------------------------------------------------------------------------- /resources/yml/Clinical/General/AllergyIntolerance.yml: -------------------------------------------------------------------------------- 1 | resourceType: "AllergyIntolerance" 2 | identifier: 3 | clinicalStatus: 4 | verificationStatus: 5 | type: 6 | category: 7 | criticality: 8 | code: 9 | patient: 10 | onsetDateTime: 11 | onsetAge: 12 | onsetPeriod: 13 | onsetRange: 14 | onsetString: 15 | assertedDate: 16 | recorder: 17 | asserter: 18 | lastOccurrence: 19 | note: 20 | reaction: 21 | - substance: 22 | manifestation: 23 | description: 24 | onset: 25 | severity: 26 | exposureRoute: 27 | note: -------------------------------------------------------------------------------- /resources/yml/Clinical/General/ClinicalImpression.yml: -------------------------------------------------------------------------------- 1 | resourceType: "ClinicalImpression" 2 | identifier: 3 | status: 4 | code: 5 | description: 6 | subject: 7 | context: 8 | effectiveDateTime: 9 | effectivePeriod: 10 | date: 11 | assessor: 12 | previous: 13 | problem: 14 | investigation: 15 | - code: 16 | item: 17 | protocol: 18 | summary: 19 | finding: 20 | - itemCodeableConcept: 21 | itemReference: 22 | basis: 23 | prognosisCodeableConcept: 24 | prognosisReference: 25 | action: 26 | note: -------------------------------------------------------------------------------- /resources/yml/Clinical/General/Condition.yml: -------------------------------------------------------------------------------- 1 | resourceType: "Condition" 2 | identifier: 3 | clinicalStatus: 4 | verificationStatus: 5 | category: 6 | severity: 7 | code: 8 | bodySite: 9 | subject: 10 | context: 11 | onsetDateTime: 12 | onsetAge: 13 | onsetPeriod: 14 | onsetRange: 15 | onsetString: 16 | abatementDateTime: 17 | abatementAge: 18 | abatementBoolean: 19 | abatementPeriod: 20 | abatementRange: 21 | abatementString: 22 | assertedDate: 23 | asserter: 24 | stage: 25 | summary: 26 | assessment: 27 | evidence: 28 | - code: 29 | detail: 30 | note: -------------------------------------------------------------------------------- /resources/yml/Clinical/General/DetectedIssue.yml: -------------------------------------------------------------------------------- 1 | resourceType: "DetectedIssue" 2 | identifier: 3 | status: 4 | category: 5 | severity: 6 | patient: 7 | date: 8 | author: 9 | implicated: 10 | detail: 11 | reference: 12 | mitigation: 13 | - action: 14 | date: 15 | author: -------------------------------------------------------------------------------- /resources/yml/Clinical/General/FamilyMemberHistory.yml: -------------------------------------------------------------------------------- 1 | resourceType: "FamilyMemberHistory" 2 | identifier: 3 | definition: 4 | status: 5 | notDone: 6 | notDoneReason: 7 | patient: 8 | date: 9 | name: 10 | relationship: 11 | gender: 12 | bornPeriod: 13 | bornDate: 14 | bornString: 15 | ageAge: 16 | ageRange: 17 | ageString: 18 | estimatedAge: 19 | deceasedBoolean: 20 | deceasedAge: 21 | deceasedRange: 22 | deceasedDate: 23 | deceasedString: 24 | reasonCode: 25 | reasonReference: 26 | note: 27 | condition: 28 | - code: 29 | outcome: 30 | onsetAge: 31 | onsetRange: 32 | onsetPeriod: 33 | onsetString: 34 | note: -------------------------------------------------------------------------------- /resources/yml/Clinical/General/RiskAssessment.yml: -------------------------------------------------------------------------------- 1 | resourceType: "RiskAssessment" 2 | identifier: 3 | basedOn: 4 | parent: 5 | status: 6 | method: 7 | code: 8 | subject: 9 | context: 10 | occurrenceDateTime: 11 | occurrencePeriod: 12 | condition: 13 | performer: 14 | reasonCodeableConcept: 15 | reasonReference: 16 | basis: 17 | prediction: 18 | - outcome: 19 | probabilityDecimal: 20 | probabilityRange: 21 | qualitativeRisk: 22 | relativeRisk: 23 | whenPeriod: 24 | whenRange: 25 | rationale: 26 | mitigation: 27 | comment: -------------------------------------------------------------------------------- /resources/yml/Clinical/Medication & Immunization/ImmunizationRecommendation.yml: -------------------------------------------------------------------------------- 1 | resourceType: "ImmunizationRecommendation" 2 | identifier: 3 | patient: 4 | recommendation: 5 | - date: 6 | vaccineCode: 7 | targetDisease: 8 | doseNumber: 9 | forecastStatus: 10 | dateCriterion: 11 | - code: 12 | value: 13 | protocol: 14 | doseSequence: 15 | description: 16 | authority: 17 | series: 18 | supportingImmunization: 19 | supportingPatientInformation: -------------------------------------------------------------------------------- /resources/yml/Clinical/Medication & Immunization/Medication.yml: -------------------------------------------------------------------------------- 1 | resourceType: "Medication" 2 | code: 3 | status: 4 | isBrand: 5 | isOverTheCounter: 6 | manufacturer: 7 | form: 8 | ingredient: 9 | - itemCodeableConcept: 10 | itemReference: 11 | isActive: 12 | amount: 13 | package: 14 | container: 15 | content: 16 | - itemCodeableConcept: 17 | itemReference: 18 | amount: 19 | batch: 20 | - lotNumber: 21 | expirationDate: 22 | image: -------------------------------------------------------------------------------- /resources/yml/Clinical/Medication & Immunization/MedicationStatement.yml: -------------------------------------------------------------------------------- 1 | resourceType: "MedicationStatement" 2 | identifier: 3 | basedOn: 4 | partOf: 5 | context: 6 | status: 7 | category: 8 | medicationCodeableConcept: 9 | medicationReference: 10 | effectiveDateTime: 11 | effectivePeriod: 12 | dateAsserted: 13 | informationSource: 14 | subject: 15 | derivedFrom: 16 | taken: 17 | reasonNotTaken: 18 | reasonCode: 19 | reasonReference: 20 | note: 21 | dosage: -------------------------------------------------------------------------------- /resources/yml/Conformance/Content/DataElement.yml: -------------------------------------------------------------------------------- 1 | resourceType: "DataElement" 2 | url: 3 | identifier: 4 | version: 5 | status: 6 | experimental: 7 | date: 8 | publisher: 9 | name: 10 | title: 11 | contact: 12 | useContext: 13 | jurisdiction: 14 | copyright: 15 | stringency: 16 | mapping: 17 | - identity: 18 | uri: 19 | name: 20 | comment: 21 | element: -------------------------------------------------------------------------------- /resources/yml/Conformance/Content/StructureDefinition.yml: -------------------------------------------------------------------------------- 1 | resourceType: "StructureDefinition" 2 | url: 3 | identifier: 4 | version: 5 | name: 6 | title: 7 | status: 8 | experimental: 9 | date: 10 | publisher: 11 | contact: 12 | description: 13 | useContext: 14 | jurisdiction: 15 | purpose: 16 | copyright: 17 | keyword: 18 | fhirVersion: 19 | mapping: 20 | - identity: 21 | uri: 22 | name: 23 | comment: 24 | kind: 25 | abstract: 26 | contextType: 27 | context: 28 | contextInvariant: 29 | type: 30 | baseDefinition: 31 | derivation: 32 | snapshot: 33 | element: 34 | differential: 35 | element: -------------------------------------------------------------------------------- /resources/yml/Conformance/Operations Control/SearchParameter.yml: -------------------------------------------------------------------------------- 1 | resourceType: "SearchParameter" 2 | url: 3 | version: 4 | name: 5 | status: 6 | experimental: 7 | date: 8 | publisher: 9 | contact: 10 | useContext: 11 | jurisdiction: 12 | purpose: 13 | code: 14 | base: 15 | type: 16 | derivedFrom: 17 | description: 18 | expression: 19 | xpath: 20 | xpathUsage: 21 | target: 22 | comparator: 23 | modifier: 24 | chain: 25 | component: 26 | - definition: 27 | expression: -------------------------------------------------------------------------------- /resources/yml/Conformance/Terminology/NamingSystem.yml: -------------------------------------------------------------------------------- 1 | resourceType: "NamingSystem" 2 | name: 3 | status: 4 | kind: 5 | date: 6 | publisher: 7 | contact: 8 | responsible: 9 | type: 10 | description: 11 | useContext: 12 | jurisdiction: 13 | usage: 14 | uniqueId: 15 | - type: 16 | value: 17 | preferred: 18 | comment: 19 | period: 20 | replacedBy: -------------------------------------------------------------------------------- /resources/yml/Datatypes/Address.yml: -------------------------------------------------------------------------------- 1 | resourceType: "Address" 2 | use: 3 | type: 4 | text: 5 | line: 6 | city: 7 | district: 8 | state: 9 | postalCode: 10 | country: 11 | period: -------------------------------------------------------------------------------- /resources/yml/Datatypes/Annotation.yml: -------------------------------------------------------------------------------- 1 | authorReference: 2 | authorString: 3 | time: 4 | text: -------------------------------------------------------------------------------- /resources/yml/Datatypes/Attachment.yml: -------------------------------------------------------------------------------- 1 | contentType: 2 | language: 3 | data: 4 | url: 5 | size: 6 | hash: 7 | title: 8 | creation: -------------------------------------------------------------------------------- /resources/yml/Datatypes/CodeableConcept.yml: -------------------------------------------------------------------------------- 1 | coding: 2 | text: -------------------------------------------------------------------------------- /resources/yml/Datatypes/Coding.yml: -------------------------------------------------------------------------------- 1 | system: 2 | version: 3 | code: 4 | display: 5 | userSelected: -------------------------------------------------------------------------------- /resources/yml/Datatypes/ContactPoint.yml: -------------------------------------------------------------------------------- 1 | resourceType: "ContactPoint" 2 | system: 3 | value: 4 | use: 5 | rank: 6 | period: -------------------------------------------------------------------------------- /resources/yml/Datatypes/HumanName.yml: -------------------------------------------------------------------------------- 1 | resourceType: "HumanName" 2 | use: 3 | text: 4 | family: 5 | given: 6 | prefix: 7 | suffix: 8 | period: -------------------------------------------------------------------------------- /resources/yml/Datatypes/Identifier.yml: -------------------------------------------------------------------------------- 1 | use: 2 | type: 3 | system: 4 | value: 5 | period: 6 | assigner: -------------------------------------------------------------------------------- /resources/yml/Datatypes/Period.yml: -------------------------------------------------------------------------------- 1 | start: 2 | end: -------------------------------------------------------------------------------- /resources/yml/Datatypes/Quantity.yml: -------------------------------------------------------------------------------- 1 | value: 2 | comparator: 3 | unit: 4 | system: 5 | code: -------------------------------------------------------------------------------- /resources/yml/Datatypes/Range.yml: -------------------------------------------------------------------------------- 1 | low: 2 | high: -------------------------------------------------------------------------------- /resources/yml/Datatypes/Ratio.yml: -------------------------------------------------------------------------------- 1 | numerator: 2 | denominator: -------------------------------------------------------------------------------- /resources/yml/Datatypes/SampledData.yml: -------------------------------------------------------------------------------- 1 | origin: 2 | period: 3 | factor: 4 | lowerLimit: 5 | upperLimit: 6 | dimensions: 7 | data: -------------------------------------------------------------------------------- /resources/yml/Datatypes/Signature.yml: -------------------------------------------------------------------------------- 1 | type: 2 | when: 3 | whoUri: 4 | whoReference: 5 | onBehalfOfUri: 6 | onBehalfOfReference: 7 | contentType: 8 | blob: -------------------------------------------------------------------------------- /resources/yml/Datatypes/Timing.yml: -------------------------------------------------------------------------------- 1 | resourceType: "Timing" 2 | event: 3 | repeat: 4 | boundsDuration: 5 | boundsRange: 6 | boundsPeriod: 7 | count: 8 | countMax: 9 | duration: 10 | durationMax: 11 | durationUnit: 12 | frequency: 13 | frequencyMax: 14 | period: 15 | periodMax: 16 | periodUnit: 17 | dayOfWeek: 18 | timeOfDay: 19 | when: 20 | offset: 21 | code: -------------------------------------------------------------------------------- /resources/yml/Financial/Payment/PaymentNotice.yml: -------------------------------------------------------------------------------- 1 | resourceType: "PaymentNotice" 2 | identifier: 3 | status: 4 | request: 5 | response: 6 | statusDate: 7 | created: 8 | target: 9 | provider: 10 | organization: 11 | paymentStatus: -------------------------------------------------------------------------------- /resources/yml/Financial/Payment/PaymentReconciliation.yml: -------------------------------------------------------------------------------- 1 | resourceType: "PaymentReconciliation" 2 | identifier: 3 | status: 4 | period: 5 | created: 6 | organization: 7 | request: 8 | outcome: 9 | disposition: 10 | requestProvider: 11 | requestOrganization: 12 | detail: 13 | - type: 14 | request: 15 | response: 16 | submitter: 17 | payee: 18 | date: 19 | amount: 20 | form: 21 | total: 22 | processNote: 23 | - type: 24 | text: -------------------------------------------------------------------------------- /resources/yml/Financial/Support/Coverage.yml: -------------------------------------------------------------------------------- 1 | resourceType: "Coverage" 2 | identifier: 3 | status: 4 | type: 5 | policyHolder: 6 | subscriber: 7 | subscriberId: 8 | beneficiary: 9 | relationship: 10 | period: 11 | payor: 12 | grouping: 13 | group: 14 | groupDisplay: 15 | subGroup: 16 | subGroupDisplay: 17 | plan: 18 | planDisplay: 19 | subPlan: 20 | subPlanDisplay: 21 | class: 22 | classDisplay: 23 | subClass: 24 | subClassDisplay: 25 | dependent: 26 | sequence: 27 | order: 28 | network: 29 | contract: -------------------------------------------------------------------------------- /resources/yml/Financial/Support/EligibilityRequest.yml: -------------------------------------------------------------------------------- 1 | resourceType: "EligibilityRequest" 2 | identifier: 3 | status: 4 | priority: 5 | patient: 6 | servicedDate: 7 | servicedPeriod: 8 | created: 9 | enterer: 10 | provider: 11 | organization: 12 | insurer: 13 | facility: 14 | coverage: 15 | businessArrangement: 16 | benefitCategory: 17 | benefitSubCategory: -------------------------------------------------------------------------------- /resources/yml/Financial/Support/EligibilityResponse.yml: -------------------------------------------------------------------------------- 1 | resourceType: "EligibilityResponse" 2 | identifier: 3 | status: 4 | created: 5 | requestProvider: 6 | requestOrganization: 7 | request: 8 | outcome: 9 | disposition: 10 | insurer: 11 | inforce: 12 | insurance: 13 | - coverage: 14 | contract: 15 | benefitBalance: 16 | - category: 17 | subCategory: 18 | excluded: 19 | name: 20 | description: 21 | network: 22 | unit: 23 | term: 24 | financial: 25 | - type: 26 | allowedUnsignedInt: 27 | allowedString: 28 | allowedMoney: 29 | usedUnsignedInt: 30 | usedMoney: 31 | form: 32 | error: 33 | - code: -------------------------------------------------------------------------------- /resources/yml/Financial/Support/EnrollmentRequest.yml: -------------------------------------------------------------------------------- 1 | resourceType: "EnrollmentRequest" 2 | identifier: 3 | status: 4 | created: 5 | insurer: 6 | provider: 7 | organization: 8 | subject: 9 | coverage: -------------------------------------------------------------------------------- /resources/yml/Financial/Support/EnrollmentResponse.yml: -------------------------------------------------------------------------------- 1 | resourceType: "EnrollmentResponse" 2 | identifier: 3 | status: 4 | request: 5 | outcome: 6 | disposition: 7 | created: 8 | organization: 9 | requestProvider: 10 | requestOrganization: -------------------------------------------------------------------------------- /resources/yml/Identification/Devices/Device.yml: -------------------------------------------------------------------------------- 1 | resourceType: "Device" 2 | identifier: 3 | udi: 4 | deviceIdentifier: 5 | name: 6 | jurisdiction: 7 | carrierHRF: 8 | carrierAIDC: 9 | issuer: 10 | entryType: 11 | status: 12 | type: 13 | lotNumber: 14 | manufacturer: 15 | manufactureDate: 16 | expirationDate: 17 | model: 18 | version: 19 | patient: 20 | owner: 21 | contact: 22 | location: 23 | url: 24 | note: 25 | safety: -------------------------------------------------------------------------------- /resources/yml/Identification/Devices/DeviceComponent.yml: -------------------------------------------------------------------------------- 1 | resourceType: "DeviceComponent" 2 | identifier: 3 | type: 4 | lastSystemChange: 5 | source: 6 | parent: 7 | operationalStatus: 8 | parameterGroup: 9 | measurementPrinciple: 10 | productionSpecification: 11 | - specType: 12 | componentId: 13 | productionSpec: 14 | languageCode: -------------------------------------------------------------------------------- /resources/yml/Identification/Devices/DeviceMetric.yml: -------------------------------------------------------------------------------- 1 | resourceType: "DeviceMetric" 2 | identifier: 3 | type: 4 | unit: 5 | source: 6 | parent: 7 | operationalStatus: 8 | color: 9 | category: 10 | measurementPeriod: 11 | calibration: 12 | - type: 13 | state: 14 | time: -------------------------------------------------------------------------------- /resources/yml/Identification/Entities/Location.yml: -------------------------------------------------------------------------------- 1 | resourceType: "Location" 2 | identifier: 3 | status: 4 | operationalStatus: 5 | name: 6 | alias: 7 | description: 8 | mode: 9 | type: 10 | telecom: 11 | address
: 12 | physicalType: 13 | position: 14 | longitude: 15 | latitude: 16 | altitude: 17 | managingOrganization: 18 | partOf: 19 | endpoint: -------------------------------------------------------------------------------- /resources/yml/Identification/Entities/Person.yml: -------------------------------------------------------------------------------- 1 | resourceType: "Person" 2 | identifier: 3 | name: 4 | telecom: 5 | gender: 6 | birthDate: 7 | address: 8 | photo: 9 | managingOrganization: 10 | active: 11 | link: 12 | - target: 13 | assurance: -------------------------------------------------------------------------------- /resources/yml/Identification/Entities/Substance.yml: -------------------------------------------------------------------------------- 1 | resourceType: "Substance" 2 | identifier: 3 | status: 4 | category: 5 | code: 6 | description: 7 | instance: 8 | - identifier: 9 | expiry: 10 | quantity: 11 | ingredient: 12 | - quantity: 13 | substanceCodeableConcept: 14 | substanceReference: -------------------------------------------------------------------------------- /resources/yml/Identification/Groups/Group.yml: -------------------------------------------------------------------------------- 1 | resourceType: "Group" 2 | identifier: 3 | active: 4 | type: 5 | actual: 6 | code: 7 | name: 8 | quantity: 9 | characteristic: 10 | - code: 11 | valueCodeableConcept: 12 | valueBoolean: 13 | valueQuantity: 14 | valueRange: 15 | exclude: 16 | period: 17 | member: 18 | - entity: 19 | period: 20 | inactive: -------------------------------------------------------------------------------- /resources/yml/Identification/Groups/HealthcareService.yml: -------------------------------------------------------------------------------- 1 | resourceType: "HealthcareService" 2 | identifier: 3 | active: 4 | providedBy: 5 | category: 6 | type: 7 | specialty: 8 | location: 9 | name: 10 | comment: 11 | extraDetails: 12 | photo: 13 | telecom: 14 | coverageArea: 15 | serviceProvisionCode: 16 | eligibility: 17 | eligibilityNote: 18 | programName: 19 | characteristic: 20 | referralMethod: 21 | appointmentRequired: 22 | availableTime: 23 | - daysOfWeek: 24 | allDay: 25 | availableStartTime