@openhi/types 0.0.17 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +79 -0
- package/lib/control/constants.d.ts +8 -0
- package/lib/control/constants.js +17 -0
- package/lib/control/index.d.ts +1 -4
- package/lib/control/index.js +4 -5
- package/lib/control/membership.d.ts +3 -14
- package/lib/control/membership.js +17 -1
- package/lib/control/role.d.ts +4 -16
- package/lib/control/role.js +15 -1
- package/lib/control/roleassignment.d.ts +3 -14
- package/lib/control/roleassignment.js +18 -1
- package/lib/control/tenant.d.ts +2 -2
- package/lib/control/tenant.js +38 -1
- package/lib/control/user.d.ts +2 -13
- package/lib/control/user.js +42 -1
- package/lib/control/workspace.d.ts +2 -6
- package/lib/control/workspace.js +39 -1
- package/lib/data/account.d.ts +4 -38
- package/lib/data/account.js +29 -17
- package/lib/data/account_coverage.d.ts +21 -8
- package/lib/data/account_coverage.js +16 -1
- package/lib/data/account_guarantor.d.ts +24 -11
- package/lib/data/account_guarantor.js +18 -1
- package/lib/data/activitydefinition.d.ts +7 -65
- package/lib/data/activitydefinition.js +80 -1
- package/lib/data/activitydefinition_dynamicvalue.d.ts +21 -8
- package/lib/data/activitydefinition_dynamicvalue.js +16 -1
- package/lib/data/activitydefinition_participant.d.ts +21 -20
- package/lib/data/activitydefinition_participant.js +17 -15
- package/lib/data/address.d.ts +4 -35
- package/lib/data/address.js +24 -26
- package/lib/data/adverseevent.d.ts +4 -51
- package/lib/data/adverseevent.js +36 -16
- package/lib/data/adverseevent_suspectentity.d.ts +93 -9
- package/lib/data/adverseevent_suspectentity.js +17 -1
- package/lib/data/adverseevent_suspectentity_causality.d.ts +27 -14
- package/lib/data/adverseevent_suspectentity_causality.js +19 -1
- package/lib/data/age.d.ts +2 -1
- package/lib/data/age.js +18 -1
- package/lib/data/allergyintolerance.d.ts +6 -76
- package/lib/data/allergyintolerance.js +40 -51
- package/lib/data/allergyintolerance_reaction.d.ts +36 -29
- package/lib/data/allergyintolerance_reaction.js +23 -13
- package/lib/data/annotation.d.ts +3 -5
- package/lib/data/annotation.js +17 -1
- package/lib/data/appointment.d.ts +4 -48
- package/lib/data/appointment.js +39 -27
- package/lib/data/appointment_participant.d.ts +30 -38
- package/lib/data/appointment_participant.js +22 -24
- package/lib/data/appointmentresponse.d.ts +5 -25
- package/lib/data/appointmentresponse.js +23 -17
- package/lib/data/attachment.d.ts +3 -9
- package/lib/data/attachment.js +20 -1
- package/lib/data/auditevent.d.ts +4 -40
- package/lib/data/auditevent.js +29 -28
- package/lib/data/auditevent_agent.d.ts +102 -34
- package/lib/data/auditevent_agent.js +28 -1
- package/lib/data/auditevent_agent_network.d.ts +21 -0
- package/lib/data/auditevent_agent_network.js +18 -0
- package/lib/data/auditevent_entity.d.ts +105 -30
- package/lib/data/auditevent_entity.js +25 -1
- package/lib/data/auditevent_entity_detail.d.ts +24 -0
- package/lib/data/auditevent_entity_detail.js +18 -0
- package/lib/data/auditevent_source.d.ts +24 -12
- package/lib/data/auditevent_source.js +18 -1
- package/lib/data/backboneelement.d.ts +7 -0
- package/lib/data/backboneelement.js +15 -0
- package/lib/data/base64binary.d.ts +3 -0
- package/lib/data/base64binary.js +8 -0
- package/lib/data/basic.d.ts +3 -8
- package/lib/data/basic.js +19 -1
- package/lib/data/binary.d.ts +3 -6
- package/lib/data/binary.js +15 -1
- package/lib/data/biologicallyderivedproduct.d.ts +12 -41
- package/lib/data/biologicallyderivedproduct.js +32 -24
- package/lib/data/biologicallyderivedproduct_collection.d.ts +27 -0
- package/lib/data/biologicallyderivedproduct_collection.js +21 -0
- package/lib/data/biologicallyderivedproduct_manipulation.d.ts +24 -0
- package/lib/data/biologicallyderivedproduct_manipulation.js +19 -0
- package/lib/data/biologicallyderivedproduct_processing.d.ts +30 -0
- package/lib/data/biologicallyderivedproduct_processing.js +23 -0
- package/lib/data/biologicallyderivedproduct_storage.d.ts +27 -0
- package/lib/data/biologicallyderivedproduct_storage.js +21 -0
- package/lib/data/bodystructure.d.ts +3 -11
- package/lib/data/bodystructure.js +23 -1
- package/lib/data/bundle.d.ts +4 -32
- package/lib/data/bundle.js +23 -25
- package/lib/data/bundle_entry.d.ts +492 -21
- package/lib/data/bundle_entry.js +24 -1
- package/lib/data/bundle_entry_request.d.ts +33 -0
- package/lib/data/bundle_entry_request.js +22 -0
- package/lib/data/bundle_entry_response.d.ts +75 -0
- package/lib/data/bundle_entry_response.js +21 -0
- package/lib/data/bundle_entry_search.d.ts +21 -0
- package/lib/data/bundle_entry_search.js +18 -0
- package/lib/data/bundle_link.d.ts +21 -8
- package/lib/data/bundle_link.js +15 -1
- package/lib/data/canonical.d.ts +3 -0
- package/lib/data/canonical.js +8 -0
- package/lib/data/capabilitystatement.d.ts +5 -52
- package/lib/data/capabilitystatement.js +46 -24
- package/lib/data/capabilitystatement_document.d.ts +24 -18
- package/lib/data/capabilitystatement_document.js +17 -11
- package/lib/data/capabilitystatement_implementation.d.ts +24 -11
- package/lib/data/capabilitystatement_implementation.js +17 -1
- package/lib/data/capabilitystatement_messaging.d.ts +135 -20
- package/lib/data/capabilitystatement_messaging.js +21 -1
- package/lib/data/capabilitystatement_messaging_endpoint.d.ts +21 -0
- package/lib/data/capabilitystatement_messaging_endpoint.js +18 -0
- package/lib/data/capabilitystatement_messaging_supportedmessage.d.ts +21 -0
- package/lib/data/capabilitystatement_messaging_supportedmessage.js +18 -0
- package/lib/data/capabilitystatement_rest.d.ts +1047 -33
- package/lib/data/capabilitystatement_rest.js +31 -11
- package/lib/data/capabilitystatement_rest_interaction.d.ts +21 -0
- package/lib/data/capabilitystatement_rest_interaction.js +18 -0
- package/lib/data/capabilitystatement_rest_resource.d.ts +255 -0
- package/lib/data/capabilitystatement_rest_resource.js +42 -0
- package/lib/data/capabilitystatement_rest_resource_interaction.d.ts +21 -0
- package/lib/data/capabilitystatement_rest_resource_interaction.js +18 -0
- package/lib/data/capabilitystatement_rest_resource_operation.d.ts +24 -0
- package/lib/data/capabilitystatement_rest_resource_operation.js +18 -0
- package/lib/data/capabilitystatement_rest_resource_searchparam.d.ts +27 -0
- package/lib/data/capabilitystatement_rest_resource_searchparam.js +20 -0
- package/lib/data/capabilitystatement_rest_security.d.ts +24 -0
- package/lib/data/capabilitystatement_rest_security.js +19 -0
- package/lib/data/capabilitystatement_software.d.ts +24 -10
- package/lib/data/capabilitystatement_software.js +16 -1
- package/lib/data/careplan.d.ts +5 -62
- package/lib/data/careplan.js +41 -36
- package/lib/data/careplan_activity.d.ts +246 -21
- package/lib/data/careplan_activity.js +22 -1
- package/lib/data/careplan_activity_detail.d.ts +75 -0
- package/lib/data/careplan_activity_detail.js +41 -0
- package/lib/data/careteam.d.ts +4 -29
- package/lib/data/careteam.js +32 -17
- package/lib/data/careteam_participant.d.ts +27 -14
- package/lib/data/careteam_participant.js +20 -1
- package/lib/data/catalogentry.d.ts +3 -15
- package/lib/data/catalogentry.js +30 -1
- package/lib/data/catalogentry_relatedentry.d.ts +21 -16
- package/lib/data/catalogentry_relatedentry.js +17 -11
- package/lib/data/chargeitem.d.ts +4 -49
- package/lib/data/chargeitem.js +50 -21
- package/lib/data/chargeitem_performer.d.ts +21 -9
- package/lib/data/chargeitem_performer.js +17 -1
- package/lib/data/chargeitemdefinition.d.ts +3 -25
- package/lib/data/chargeitemdefinition.js +47 -1
- package/lib/data/chargeitemdefinition_applicability.d.ts +24 -9
- package/lib/data/chargeitemdefinition_applicability.js +16 -1
- package/lib/data/chargeitemdefinition_propertygroup.d.ts +156 -9
- package/lib/data/chargeitemdefinition_propertygroup.js +19 -1
- package/lib/data/chargeitemdefinition_propertygroup_pricecomponent.d.ts +27 -30
- package/lib/data/chargeitemdefinition_propertygroup_pricecomponent.js +20 -19
- package/lib/data/claim.d.ts +7 -46
- package/lib/data/claim.js +53 -13
- package/lib/data/claim_accident.d.ts +27 -14
- package/lib/data/claim_accident.js +20 -1
- package/lib/data/claim_careteam.d.ts +30 -15
- package/lib/data/claim_careteam.js +20 -1
- package/lib/data/claim_diagnosis.d.ts +33 -17
- package/lib/data/claim_diagnosis.js +21 -1
- package/lib/data/claim_insurance.d.ts +36 -19
- package/lib/data/claim_insurance.js +22 -1
- package/lib/data/claim_item.d.ts +636 -58
- package/lib/data/claim_item.js +44 -1
- package/lib/data/claim_item_detail.d.ts +186 -0
- package/lib/data/claim_item_detail.js +32 -0
- package/lib/data/claim_item_detail_subdetail.d.ts +48 -0
- package/lib/data/claim_item_detail_subdetail.js +30 -0
- package/lib/data/claim_payee.d.ts +21 -9
- package/lib/data/claim_payee.js +17 -1
- package/lib/data/claim_procedure.d.ts +33 -17
- package/lib/data/claim_procedure.js +21 -1
- package/lib/data/claim_related.d.ts +24 -12
- package/lib/data/claim_related.js +19 -1
- package/lib/data/claim_supportinginfo.d.ts +48 -30
- package/lib/data/claim_supportinginfo.js +29 -1
- package/lib/data/claimresponse.d.ts +13 -65
- package/lib/data/claimresponse.js +52 -26
- package/lib/data/claimresponse_additem.d.ts +1455 -53
- package/lib/data/claimresponse_additem.js +42 -1
- package/lib/data/claimresponse_additem_detail.d.ts +438 -0
- package/lib/data/claimresponse_additem_detail.js +29 -0
- package/lib/data/claimresponse_additem_detail_subdetail.d.ts +111 -0
- package/lib/data/claimresponse_additem_detail_subdetail.js +27 -0
- package/lib/data/claimresponse_error.d.ts +27 -12
- package/lib/data/claimresponse_error.js +18 -1
- package/lib/data/claimresponse_insurance.d.ts +30 -15
- package/lib/data/claimresponse_insurance.js +19 -1
- package/lib/data/claimresponse_item.d.ts +1224 -14
- package/lib/data/claimresponse_item.js +19 -1
- package/lib/data/claimresponse_item_adjudication.d.ts +27 -0
- package/lib/data/claimresponse_item_adjudication.js +21 -0
- package/lib/data/claimresponse_item_detail.d.ts +378 -0
- package/lib/data/claimresponse_item_detail.js +21 -0
- package/lib/data/claimresponse_item_detail_subdetail.d.ts +96 -0
- package/lib/data/claimresponse_item_detail_subdetail.js +19 -0
- package/lib/data/claimresponse_payment.d.ts +33 -18
- package/lib/data/claimresponse_payment.js +22 -1
- package/lib/data/claimresponse_processnote.d.ts +27 -12
- package/lib/data/claimresponse_processnote.js +19 -1
- package/lib/data/claimresponse_total.d.ts +21 -9
- package/lib/data/claimresponse_total.js +17 -1
- package/lib/data/clinicalimpression.d.ts +4 -35
- package/lib/data/clinicalimpression.js +40 -15
- package/lib/data/clinicalimpression_finding.d.ts +24 -11
- package/lib/data/clinicalimpression_finding.js +18 -1
- package/lib/data/clinicalimpression_investigation.d.ts +21 -9
- package/lib/data/clinicalimpression_investigation.js +17 -1
- package/lib/data/code.d.ts +3 -0
- package/lib/data/code.js +8 -0
- package/lib/data/codeableconcept.d.ts +3 -3
- package/lib/data/codeableconcept.js +15 -1
- package/lib/data/codesystem.d.ts +5 -56
- package/lib/data/codesystem.js +45 -28
- package/lib/data/codesystem_concept.d.ts +7 -11
- package/lib/data/codesystem_concept.js +21 -1
- package/lib/data/codesystem_concept_designation.d.ts +24 -0
- package/lib/data/codesystem_concept_designation.js +19 -0
- package/lib/data/codesystem_concept_property.d.ts +39 -0
- package/lib/data/codesystem_concept_property.js +24 -0
- package/lib/data/codesystem_filter.d.ts +27 -11
- package/lib/data/codesystem_filter.js +18 -1
- package/lib/data/codesystem_property.d.ts +27 -29
- package/lib/data/codesystem_property.js +18 -21
- package/lib/data/coding.d.ts +3 -6
- package/lib/data/coding.js +17 -1
- package/lib/data/communication.d.ts +6 -57
- package/lib/data/communication.js +40 -32
- package/lib/data/communication_payload.d.ts +24 -11
- package/lib/data/communication_payload.js +18 -1
- package/lib/data/communicationrequest.d.ts +6 -56
- package/lib/data/communicationrequest.js +41 -31
- package/lib/data/communicationrequest_payload.d.ts +24 -11
- package/lib/data/communicationrequest_payload.js +18 -1
- package/lib/data/compartmentdefinition.d.ts +5 -32
- package/lib/data/compartmentdefinition.js +29 -17
- package/lib/data/compartmentdefinition_resource.d.ts +24 -9
- package/lib/data/compartmentdefinition_resource.js +17 -1
- package/lib/data/composition.d.ts +5 -30
- package/lib/data/composition.js +34 -15
- package/lib/data/composition_attester.d.ts +24 -22
- package/lib/data/composition_attester.js +18 -15
- package/lib/data/composition_event.d.ts +24 -12
- package/lib/data/composition_event.js +19 -1
- package/lib/data/composition_relatesto.d.ts +24 -23
- package/lib/data/composition_relatesto.js +19 -15
- package/lib/data/composition_section.d.ts +4 -12
- package/lib/data/composition_section.js +27 -1
- package/lib/data/conceptmap.d.ts +3 -22
- package/lib/data/conceptmap.js +37 -1
- package/lib/data/conceptmap_group.d.ts +1734 -17
- package/lib/data/conceptmap_group.js +21 -1
- package/lib/data/conceptmap_group_element.d.ts +546 -0
- package/lib/data/conceptmap_group_element.js +19 -0
- package/lib/data/conceptmap_group_element_target.d.ts +177 -0
- package/lib/data/conceptmap_group_element_target.js +23 -0
- package/lib/data/conceptmap_group_element_target_dependson.d.ts +27 -0
- package/lib/data/conceptmap_group_element_target_dependson.js +19 -0
- package/lib/data/conceptmap_group_unmapped.d.ts +27 -0
- package/lib/data/conceptmap_group_unmapped.js +20 -0
- package/lib/data/condition.d.ts +3 -61
- package/lib/data/condition.js +45 -36
- package/lib/data/condition_evidence.d.ts +21 -9
- package/lib/data/condition_evidence.js +17 -1
- package/lib/data/condition_stage.d.ts +24 -11
- package/lib/data/condition_stage.js +18 -1
- package/lib/data/consent.d.ts +5 -33
- package/lib/data/consent.js +33 -19
- package/lib/data/consent_policy.d.ts +21 -7
- package/lib/data/consent_policy.js +15 -1
- package/lib/data/consent_provision.d.ts +8 -24
- package/lib/data/consent_provision.js +30 -11
- package/lib/data/consent_provision_actor.d.ts +21 -0
- package/lib/data/consent_provision_actor.js +19 -0
- package/lib/data/consent_provision_data.d.ts +21 -0
- package/lib/data/consent_provision_data.js +19 -0
- package/lib/data/consent_verification.d.ts +24 -10
- package/lib/data/consent_verification.js +17 -1
- package/lib/data/constants.d.ts +4042 -68
- package/lib/data/constants.js +6847 -58
- package/lib/data/contactdetail.d.ts +3 -3
- package/lib/data/contactdetail.js +15 -1
- package/lib/data/contactpoint.d.ts +4 -38
- package/lib/data/contactpoint.js +19 -34
- package/lib/data/contract.d.ts +7 -55
- package/lib/data/contract.js +58 -1
- package/lib/data/contract_contentdefinition.d.ts +33 -17
- package/lib/data/contract_contentdefinition.js +22 -1
- package/lib/data/contract_friendly.d.ts +21 -9
- package/lib/data/contract_friendly.js +17 -1
- package/lib/data/contract_legal.d.ts +21 -9
- package/lib/data/contract_legal.js +17 -1
- package/lib/data/contract_rule.d.ts +21 -9
- package/lib/data/contract_rule.js +17 -1
- package/lib/data/contract_signer.d.ts +24 -12
- package/lib/data/contract_signer.js +19 -1
- package/lib/data/contract_term.d.ts +11 -23
- package/lib/data/contract_term.js +34 -1
- package/lib/data/contract_term_action.d.ts +138 -0
- package/lib/data/contract_term_action.js +44 -0
- package/lib/data/contract_term_action_subject.d.ts +21 -0
- package/lib/data/contract_term_action_subject.js +19 -0
- package/lib/data/contract_term_asset.d.ts +438 -0
- package/lib/data/contract_term_asset.js +37 -0
- package/lib/data/contract_term_asset_context.d.ts +24 -0
- package/lib/data/contract_term_asset_context.js +20 -0
- package/lib/data/contract_term_asset_valueditem.d.ts +60 -0
- package/lib/data/contract_term_asset_valueditem.js +35 -0
- package/lib/data/contract_term_offer.d.ts +243 -0
- package/lib/data/contract_term_offer.js +30 -0
- package/lib/data/contract_term_offer_answer.d.ts +51 -0
- package/lib/data/contract_term_offer_answer.js +31 -0
- package/lib/data/contract_term_offer_party.d.ts +21 -0
- package/lib/data/contract_term_offer_party.js +19 -0
- package/lib/data/contract_term_securitylabel.d.ts +27 -0
- package/lib/data/contract_term_securitylabel.js +20 -0
- package/lib/data/contributor.d.ts +4 -16
- package/lib/data/contributor.js +17 -15
- package/lib/data/count.d.ts +2 -1
- package/lib/data/count.js +18 -1
- package/lib/data/coverage.d.ts +5 -43
- package/lib/data/coverage.js +35 -15
- package/lib/data/coverage_class.d.ts +24 -10
- package/lib/data/coverage_class.js +17 -1
- package/lib/data/coverage_costtobeneficiary.d.ts +81 -15
- package/lib/data/coverage_costtobeneficiary.js +21 -1
- package/lib/data/coverage_costtobeneficiary_exception.d.ts +21 -9
- package/lib/data/coverage_costtobeneficiary_exception.js +17 -1
- package/lib/data/coverageeligibilityrequest.d.ts +12 -41
- package/lib/data/coverageeligibilityrequest.js +36 -1
- package/lib/data/coverageeligibilityrequest_insurance.d.ts +24 -0
- package/lib/data/coverageeligibilityrequest_insurance.js +19 -0
- package/lib/data/coverageeligibilityrequest_item.d.ts +99 -0
- package/lib/data/coverageeligibilityrequest_item.js +32 -0
- package/lib/data/coverageeligibilityrequest_item_diagnosis.d.ts +21 -0
- package/lib/data/coverageeligibilityrequest_item_diagnosis.js +19 -0
- package/lib/data/coverageeligibilityrequest_supportinginfo.d.ts +24 -0
- package/lib/data/coverageeligibilityrequest_supportinginfo.js +19 -0
- package/lib/data/coverageeligibilityresponse.d.ts +8 -35
- package/lib/data/coverageeligibilityresponse.js +34 -1
- package/lib/data/coverageeligibilityresponse_error.d.ts +18 -7
- package/lib/data/coverageeligibilityresponse_error.js +15 -1
- package/lib/data/coverageeligibilityresponse_insurance.d.ts +486 -17
- package/lib/data/coverageeligibilityresponse_insurance.js +20 -1
- package/lib/data/coverageeligibilityresponse_insurance_item.d.ts +156 -0
- package/lib/data/coverageeligibilityresponse_insurance_item.js +34 -0
- package/lib/data/coverageeligibilityresponse_insurance_item_benefit.d.ts +36 -0
- package/lib/data/coverageeligibilityresponse_insurance_item_benefit.js +24 -0
- package/lib/data/datarequirement.d.ts +5 -11
- package/lib/data/datarequirement.js +27 -1
- package/lib/data/datarequirement_codefilter.d.ts +4 -6
- package/lib/data/datarequirement_codefilter.js +17 -1
- package/lib/data/datarequirement_datefilter.d.ts +4 -7
- package/lib/data/datarequirement_datefilter.js +19 -1
- package/lib/data/datarequirement_sort.d.ts +4 -11
- package/lib/data/datarequirement_sort.js +15 -11
- package/lib/data/date.d.ts +3 -0
- package/lib/data/date.js +8 -0
- package/lib/data/datetime.d.ts +3 -0
- package/lib/data/datetime.js +8 -0
- package/lib/data/definition.d.ts +78 -0
- package/lib/data/definition.js +42 -0
- package/lib/data/detectedissue.d.ts +5 -46
- package/lib/data/detectedissue.js +31 -32
- package/lib/data/detectedissue_evidence.d.ts +21 -10
- package/lib/data/detectedissue_evidence.js +17 -1
- package/lib/data/detectedissue_mitigation.d.ts +24 -12
- package/lib/data/detectedissue_mitigation.js +18 -1
- package/lib/data/device.d.ts +15 -34
- package/lib/data/device.js +48 -1
- package/lib/data/device_devicename.d.ts +21 -0
- package/lib/data/device_devicename.js +18 -0
- package/lib/data/device_property.d.ts +24 -0
- package/lib/data/device_property.js +20 -0
- package/lib/data/device_specialization.d.ts +21 -0
- package/lib/data/device_specialization.js +18 -0
- package/lib/data/device_udicarrier.d.ts +33 -0
- package/lib/data/device_udicarrier.js +22 -0
- package/lib/data/device_version.d.ts +24 -0
- package/lib/data/device_version.js +20 -0
- package/lib/data/devicedefinition.d.ts +19 -37
- package/lib/data/devicedefinition.js +50 -1
- package/lib/data/devicedefinition_capability.d.ts +21 -0
- package/lib/data/devicedefinition_capability.js +18 -0
- package/lib/data/devicedefinition_devicename.d.ts +21 -0
- package/lib/data/devicedefinition_devicename.js +18 -0
- package/lib/data/devicedefinition_material.d.ts +24 -0
- package/lib/data/devicedefinition_material.js +19 -0
- package/lib/data/devicedefinition_property.d.ts +24 -0
- package/lib/data/devicedefinition_property.js +20 -0
- package/lib/data/devicedefinition_specialization.d.ts +21 -0
- package/lib/data/devicedefinition_specialization.js +17 -0
- package/lib/data/devicedefinition_udideviceidentifier.d.ts +24 -0
- package/lib/data/devicedefinition_udideviceidentifier.js +18 -0
- package/lib/data/devicemetric.d.ts +4 -60
- package/lib/data/devicemetric.js +27 -45
- package/lib/data/devicemetric_calibration.d.ts +24 -36
- package/lib/data/devicemetric_calibration.js +17 -26
- package/lib/data/devicerequest.d.ts +11 -39
- package/lib/data/devicerequest.js +46 -1
- package/lib/data/devicerequest_parameter.d.ts +30 -0
- package/lib/data/devicerequest_parameter.js +23 -0
- package/lib/data/deviceusestatement.d.ts +4 -37
- package/lib/data/deviceusestatement.js +33 -19
- package/lib/data/diagnosticreport.d.ts +4 -49
- package/lib/data/diagnosticreport.js +37 -27
- package/lib/data/diagnosticreport_media.d.ts +21 -12
- package/lib/data/diagnosticreport_media.js +16 -1
- package/lib/data/distance.d.ts +2 -0
- package/lib/data/distance.js +18 -1
- package/lib/data/documentmanifest.d.ts +6 -18
- package/lib/data/documentmanifest.js +28 -1
- package/lib/data/documentmanifest_related.d.ts +21 -9
- package/lib/data/documentmanifest_related.js +17 -1
- package/lib/data/documentreference.d.ts +6 -21
- package/lib/data/documentreference.js +34 -1
- package/lib/data/documentreference_content.d.ts +21 -9
- package/lib/data/documentreference_content.js +17 -1
- package/lib/data/documentreference_context.d.ts +36 -21
- package/lib/data/documentreference_context.js +23 -1
- package/lib/data/documentreference_relatesto.d.ts +21 -20
- package/lib/data/documentreference_relatesto.js +17 -15
- package/lib/data/domainresource.d.ts +123 -0
- package/lib/data/domainresource.js +18 -0
- package/lib/data/dosage.d.ts +3 -15
- package/lib/data/dosage.js +32 -1
- package/lib/data/dosage_doseandrate.d.ts +3 -8
- package/lib/data/dosage_doseandrate.js +22 -1
- package/lib/data/duration.d.ts +2 -1
- package/lib/data/duration.js +18 -1
- package/lib/data/effectevidencesynthesis.d.ts +11 -39
- package/lib/data/effectevidencesynthesis.js +61 -1
- package/lib/data/effectevidencesynthesis_certainty.d.ts +87 -0
- package/lib/data/effectevidencesynthesis_certainty.js +23 -0
- package/lib/data/effectevidencesynthesis_certainty_certaintysubcomponent.d.ts +24 -0
- package/lib/data/effectevidencesynthesis_certainty_certaintysubcomponent.js +20 -0
- package/lib/data/effectevidencesynthesis_effectestimate.d.ts +105 -0
- package/lib/data/effectevidencesynthesis_effectestimate.js +25 -0
- package/lib/data/effectevidencesynthesis_effectestimate_precisionestimate.d.ts +27 -0
- package/lib/data/effectevidencesynthesis_effectestimate_precisionestimate.js +20 -0
- package/lib/data/effectevidencesynthesis_resultsbyexposure.d.ts +27 -0
- package/lib/data/effectevidencesynthesis_resultsbyexposure.js +22 -0
- package/lib/data/effectevidencesynthesis_samplesize.d.ts +24 -0
- package/lib/data/effectevidencesynthesis_samplesize.js +18 -0
- package/lib/data/element.d.ts +7 -0
- package/lib/data/element.js +14 -0
- package/lib/data/elementdefinition.d.ts +1623 -464
- package/lib/data/elementdefinition.js +249 -12
- package/lib/data/elementdefinition_base.d.ts +21 -9
- package/lib/data/elementdefinition_base.js +15 -1
- package/lib/data/elementdefinition_binding.d.ts +21 -21
- package/lib/data/elementdefinition_binding.js +16 -15
- package/lib/data/elementdefinition_constraint.d.ts +33 -25
- package/lib/data/elementdefinition_constraint.js +20 -11
- package/lib/data/elementdefinition_example.d.ts +165 -145
- package/lib/data/elementdefinition_example.js +94 -1
- package/lib/data/elementdefinition_mapping.d.ts +24 -11
- package/lib/data/elementdefinition_mapping.js +16 -1
- package/lib/data/elementdefinition_slicing.d.ts +69 -22
- package/lib/data/elementdefinition_slicing.js +20 -13
- package/lib/data/elementdefinition_slicing_discriminator.d.ts +18 -0
- package/lib/data/elementdefinition_slicing_discriminator.js +17 -0
- package/lib/data/elementdefinition_type.d.ts +27 -33
- package/lib/data/elementdefinition_type.js +18 -22
- package/lib/data/encounter.d.ts +8 -30
- package/lib/data/encounter.js +47 -1
- package/lib/data/encounter_classhistory.d.ts +21 -9
- package/lib/data/encounter_classhistory.js +17 -1
- package/lib/data/encounter_diagnosis.d.ts +24 -11
- package/lib/data/encounter_diagnosis.js +18 -1
- package/lib/data/encounter_hospitalization.d.ts +42 -24
- package/lib/data/encounter_hospitalization.js +25 -1
- package/lib/data/encounter_location.d.ts +27 -23
- package/lib/data/encounter_location.js +21 -15
- package/lib/data/encounter_participant.d.ts +24 -12
- package/lib/data/encounter_participant.js +19 -1
- package/lib/data/encounter_statushistory.d.ts +21 -30
- package/lib/data/encounter_statushistory.js +17 -25
- package/lib/data/endpoint.d.ts +4 -29
- package/lib/data/endpoint.js +29 -19
- package/lib/data/enrollmentrequest.d.ts +5 -12
- package/lib/data/enrollmentrequest.js +21 -1
- package/lib/data/enrollmentresponse.d.ts +6 -14
- package/lib/data/enrollmentresponse.js +22 -1
- package/lib/data/episodeofcare.d.ts +5 -16
- package/lib/data/episodeofcare.js +30 -1
- package/lib/data/episodeofcare_diagnosis.d.ts +24 -11
- package/lib/data/episodeofcare_diagnosis.js +18 -1
- package/lib/data/episodeofcare_statushistory.d.ts +21 -26
- package/lib/data/episodeofcare_statushistory.js +17 -21
- package/lib/data/event.d.ts +117 -0
- package/lib/data/event.js +41 -0
- package/lib/data/event_performer.d.ts +18 -0
- package/lib/data/event_performer.js +18 -0
- package/lib/data/eventdefinition.d.ts +3 -31
- package/lib/data/eventdefinition.js +49 -1
- package/lib/data/evidence.d.ts +3 -30
- package/lib/data/evidence.js +48 -1
- package/lib/data/evidencevariable.d.ts +4 -40
- package/lib/data/evidencevariable.js +47 -13
- package/lib/data/evidencevariable_characteristic.d.ts +60 -58
- package/lib/data/evidencevariable_characteristic.js +38 -19
- package/lib/data/examplescenario.d.ts +3 -19
- package/lib/data/examplescenario.js +36 -1
- package/lib/data/examplescenario_actor.d.ts +27 -19
- package/lib/data/examplescenario_actor.js +18 -11
- package/lib/data/examplescenario_instance.d.ts +141 -17
- package/lib/data/examplescenario_instance.js +24 -1
- package/lib/data/examplescenario_instance_containedinstance.d.ts +21 -7
- package/lib/data/examplescenario_instance_containedinstance.js +15 -1
- package/lib/data/examplescenario_instance_version.d.ts +21 -7
- package/lib/data/examplescenario_instance_version.js +15 -1
- package/lib/data/examplescenario_process.d.ts +4 -47
- package/lib/data/examplescenario_process.js +19 -1
- package/lib/data/examplescenario_process_step.d.ts +12 -0
- package/lib/data/examplescenario_process_step.js +24 -0
- package/lib/data/examplescenario_process_step_alternative.d.ts +9 -0
- package/lib/data/examplescenario_process_step_alternative.js +19 -0
- package/lib/data/examplescenario_process_step_operation.d.ts +153 -0
- package/lib/data/examplescenario_process_step_operation.js +26 -0
- package/lib/data/explanationofbenefit.d.ts +19 -77
- package/lib/data/explanationofbenefit.js +81 -20
- package/lib/data/explanationofbenefit_accident.d.ts +27 -14
- package/lib/data/explanationofbenefit_accident.js +20 -1
- package/lib/data/explanationofbenefit_additem.d.ts +1455 -53
- package/lib/data/explanationofbenefit_additem.js +44 -1
- package/lib/data/explanationofbenefit_additem_detail.d.ts +438 -0
- package/lib/data/explanationofbenefit_additem_detail.js +33 -0
- package/lib/data/explanationofbenefit_additem_detail_subdetail.d.ts +111 -0
- package/lib/data/explanationofbenefit_additem_detail_subdetail.js +29 -0
- package/lib/data/explanationofbenefit_benefitbalance.d.ts +129 -21
- package/lib/data/explanationofbenefit_benefitbalance.js +25 -1
- package/lib/data/explanationofbenefit_benefitbalance_financial.d.ts +33 -0
- package/lib/data/explanationofbenefit_benefitbalance_financial.js +23 -0
- package/lib/data/explanationofbenefit_careteam.d.ts +30 -15
- package/lib/data/explanationofbenefit_careteam.js +20 -1
- package/lib/data/explanationofbenefit_diagnosis.d.ts +33 -17
- package/lib/data/explanationofbenefit_diagnosis.js +21 -1
- package/lib/data/explanationofbenefit_insurance.d.ts +24 -10
- package/lib/data/explanationofbenefit_insurance.js +17 -1
- package/lib/data/explanationofbenefit_item.d.ts +1650 -63
- package/lib/data/explanationofbenefit_item.js +49 -1
- package/lib/data/explanationofbenefit_item_adjudication.d.ts +27 -0
- package/lib/data/explanationofbenefit_item_adjudication.js +21 -0
- package/lib/data/explanationofbenefit_item_detail.d.ts +498 -0
- package/lib/data/explanationofbenefit_item_detail.js +39 -0
- package/lib/data/explanationofbenefit_item_detail_subdetail.d.ts +126 -0
- package/lib/data/explanationofbenefit_item_detail_subdetail.js +35 -0
- package/lib/data/explanationofbenefit_payee.d.ts +21 -9
- package/lib/data/explanationofbenefit_payee.js +17 -1
- package/lib/data/explanationofbenefit_payment.d.ts +33 -18
- package/lib/data/explanationofbenefit_payment.js +22 -1
- package/lib/data/explanationofbenefit_procedure.d.ts +33 -17
- package/lib/data/explanationofbenefit_procedure.js +21 -1
- package/lib/data/explanationofbenefit_processnote.d.ts +27 -12
- package/lib/data/explanationofbenefit_processnote.js +19 -1
- package/lib/data/explanationofbenefit_related.d.ts +24 -12
- package/lib/data/explanationofbenefit_related.js +19 -1
- package/lib/data/explanationofbenefit_supportinginfo.d.ts +48 -0
- package/lib/data/explanationofbenefit_supportinginfo.js +32 -0
- package/lib/data/explanationofbenefit_total.d.ts +21 -9
- package/lib/data/explanationofbenefit_total.js +17 -1
- package/lib/data/expression.d.ts +5 -7
- package/lib/data/expression.js +18 -1
- package/lib/data/extension.d.ts +3 -52
- package/lib/data/extension.js +93 -1
- package/lib/data/extensions/openhi/preferred-pronouns.d.ts +23 -0
- package/lib/data/extensions/openhi/preferred-pronouns.js +37 -0
- package/lib/data/familymemberhistory.d.ts +5 -41
- package/lib/data/familymemberhistory.js +46 -15
- package/lib/data/familymemberhistory_condition.d.ts +39 -21
- package/lib/data/familymemberhistory_condition.js +26 -1
- package/lib/data/fivews.d.ts +78 -0
- package/lib/data/fivews.js +41 -0
- package/lib/data/flag.d.ts +5 -12
- package/lib/data/flag.js +24 -1
- package/lib/data/goal.d.ts +4 -63
- package/lib/data/goal.js +34 -46
- package/lib/data/goal_target.d.ts +45 -28
- package/lib/data/goal_target.js +28 -1
- package/lib/data/graphdefinition.d.ts +5 -19
- package/lib/data/graphdefinition.js +31 -1
- package/lib/data/graphdefinition_link.d.ts +5 -9
- package/lib/data/graphdefinition_link.js +20 -1
- package/lib/data/graphdefinition_link_target.d.ts +13 -0
- package/lib/data/graphdefinition_link_target.js +25 -0
- package/lib/data/graphdefinition_link_target_compartment.d.ts +30 -0
- package/lib/data/graphdefinition_link_target_compartment.js +21 -0
- package/lib/data/group.d.ts +4 -28
- package/lib/data/group.js +27 -19
- package/lib/data/group_characteristic.d.ts +39 -24
- package/lib/data/group_characteristic.js +26 -1
- package/lib/data/group_member.d.ts +24 -11
- package/lib/data/group_member.js +18 -1
- package/lib/data/guidanceresponse.d.ts +7 -38
- package/lib/data/guidanceresponse.js +34 -19
- package/lib/data/healthcareservice.d.ts +4 -27
- package/lib/data/healthcareservice.js +43 -1
- package/lib/data/healthcareservice_availabletime.d.ts +27 -29
- package/lib/data/healthcareservice_availabletime.js +18 -21
- package/lib/data/healthcareservice_eligibility.d.ts +21 -8
- package/lib/data/healthcareservice_eligibility.js +16 -1
- package/lib/data/healthcareservice_notavailable.d.ts +21 -8
- package/lib/data/healthcareservice_notavailable.js +16 -1
- package/lib/data/humanname.d.ts +5 -27
- package/lib/data/humanname.js +21 -21
- package/lib/data/id.d.ts +3 -0
- package/lib/data/id.js +8 -0
- package/lib/data/identifier.d.ts +4 -21
- package/lib/data/identifier.js +22 -17
- package/lib/data/imagingstudy.d.ts +4 -23
- package/lib/data/imagingstudy.js +38 -1
- package/lib/data/imagingstudy_series.d.ts +177 -31
- package/lib/data/imagingstudy_series.js +29 -1
- package/lib/data/imagingstudy_series_instance.d.ts +27 -0
- package/lib/data/imagingstudy_series_instance.js +20 -0
- package/lib/data/imagingstudy_series_performer.d.ts +21 -9
- package/lib/data/imagingstudy_series_performer.js +17 -1
- package/lib/data/immunization.d.ts +7 -44
- package/lib/data/immunization.js +50 -13
- package/lib/data/immunization_education.d.ts +27 -11
- package/lib/data/immunization_education.js +17 -1
- package/lib/data/immunization_performer.d.ts +21 -9
- package/lib/data/immunization_performer.js +17 -1
- package/lib/data/immunization_protocolapplied.d.ts +36 -20
- package/lib/data/immunization_protocolapplied.js +22 -1
- package/lib/data/immunization_reaction.d.ts +24 -10
- package/lib/data/immunization_reaction.js +17 -1
- package/lib/data/immunizationevaluation.d.ts +5 -24
- package/lib/data/immunizationevaluation.js +30 -9
- package/lib/data/immunizationrecommendation.d.ts +3 -7
- package/lib/data/immunizationrecommendation.js +19 -1
- package/lib/data/immunizationrecommendation_recommendation.d.ts +111 -34
- package/lib/data/immunizationrecommendation_recommendation.js +32 -1
- package/lib/data/immunizationrecommendation_recommendation_datecriterion.d.ts +21 -0
- package/lib/data/immunizationrecommendation_recommendation_datecriterion.js +18 -0
- package/lib/data/implementationguide.d.ts +15 -44
- package/lib/data/implementationguide.js +39 -1
- package/lib/data/implementationguide_definition.d.ts +300 -0
- package/lib/data/implementationguide_definition.js +25 -0
- package/lib/data/implementationguide_definition_grouping.d.ts +21 -0
- package/lib/data/implementationguide_definition_grouping.js +17 -0
- package/lib/data/implementationguide_definition_page.d.ts +12 -0
- package/lib/data/implementationguide_definition_page.js +22 -0
- package/lib/data/implementationguide_definition_parameter.d.ts +21 -0
- package/lib/data/implementationguide_definition_parameter.js +18 -0
- package/lib/data/implementationguide_definition_resource.d.ts +36 -0
- package/lib/data/implementationguide_definition_resource.js +24 -0
- package/lib/data/implementationguide_definition_template.d.ts +24 -0
- package/lib/data/implementationguide_definition_template.js +18 -0
- package/lib/data/implementationguide_dependson.d.ts +24 -0
- package/lib/data/implementationguide_dependson.js +18 -0
- package/lib/data/implementationguide_global.d.ts +21 -7
- package/lib/data/implementationguide_global.js +16 -1
- package/lib/data/implementationguide_manifest.d.ts +165 -0
- package/lib/data/implementationguide_manifest.js +22 -0
- package/lib/data/implementationguide_manifest_page.d.ts +24 -0
- package/lib/data/implementationguide_manifest_page.js +18 -0
- package/lib/data/implementationguide_manifest_resource.d.ts +27 -0
- package/lib/data/implementationguide_manifest_resource.js +20 -0
- package/lib/data/index.d.ts +299 -188
- package/lib/data/index.js +302 -189
- package/lib/data/instant.d.ts +3 -0
- package/lib/data/instant.js +8 -0
- package/lib/data/insuranceplan.d.ts +9 -19
- package/lib/data/insuranceplan.js +33 -1
- package/lib/data/insuranceplan_contact.d.ts +27 -0
- package/lib/data/insuranceplan_contact.js +23 -0
- package/lib/data/insuranceplan_coverage.d.ts +249 -0
- package/lib/data/insuranceplan_coverage.js +21 -0
- package/lib/data/insuranceplan_coverage_benefit.d.ts +78 -0
- package/lib/data/insuranceplan_coverage_benefit.js +20 -0
- package/lib/data/insuranceplan_coverage_benefit_limit.d.ts +21 -0
- package/lib/data/insuranceplan_coverage_benefit_limit.js +19 -0
- package/lib/data/insuranceplan_plan.d.ts +969 -0
- package/lib/data/insuranceplan_plan.js +26 -0
- package/lib/data/insuranceplan_plan_generalcost.d.ts +27 -0
- package/lib/data/insuranceplan_plan_generalcost.js +21 -0
- package/lib/data/insuranceplan_plan_specificcost.d.ts +291 -0
- package/lib/data/insuranceplan_plan_specificcost.js +19 -0
- package/lib/data/insuranceplan_plan_specificcost_benefit.d.ts +93 -0
- package/lib/data/insuranceplan_plan_specificcost_benefit.js +19 -0
- package/lib/data/insuranceplan_plan_specificcost_benefit_cost.d.ts +27 -0
- package/lib/data/insuranceplan_plan_specificcost_benefit_cost.js +21 -0
- package/lib/data/invoice.d.ts +10 -35
- package/lib/data/invoice.js +38 -17
- package/lib/data/invoice_lineitem.d.ts +99 -0
- package/lib/data/invoice_lineitem.js +22 -0
- package/lib/data/invoice_lineitem_pricecomponent.d.ts +27 -0
- package/lib/data/invoice_lineitem_pricecomponent.js +22 -0
- package/lib/data/invoice_participant.d.ts +21 -0
- package/lib/data/invoice_participant.js +19 -0
- package/lib/data/library.d.ts +7 -33
- package/lib/data/library.js +54 -1
- package/lib/data/linkage.d.ts +3 -5
- package/lib/data/linkage.js +16 -1
- package/lib/data/linkage_item.d.ts +21 -18
- package/lib/data/linkage_item.js +17 -13
- package/lib/data/list.d.ts +6 -37
- package/lib/data/list.js +30 -22
- package/lib/data/list_entry.d.ts +27 -13
- package/lib/data/list_entry.js +19 -1
- package/lib/data/location.d.ts +5 -38
- package/lib/data/location.js +37 -20
- package/lib/data/location_hoursofoperation.d.ts +27 -11
- package/lib/data/location_hoursofoperation.js +18 -1
- package/lib/data/location_position.d.ts +24 -9
- package/lib/data/location_position.js +16 -1
- package/lib/data/markdown.d.ts +3 -0
- package/lib/data/markdown.js +8 -0
- package/lib/data/marketingstatus.d.ts +30 -16
- package/lib/data/marketingstatus.js +20 -1
- package/lib/data/measure.d.ts +5 -46
- package/lib/data/measure.js +63 -1
- package/lib/data/measure_group.d.ts +351 -14
- package/lib/data/measure_group.js +20 -1
- package/lib/data/measure_group_population.d.ts +24 -0
- package/lib/data/measure_group_population.js +20 -0
- package/lib/data/measure_group_stratifier.d.ts +90 -0
- package/lib/data/measure_group_stratifier.js +22 -0
- package/lib/data/measure_group_stratifier_component.d.ts +24 -0
- package/lib/data/measure_group_stratifier_component.js +20 -0
- package/lib/data/measure_supplementaldata.d.ts +27 -13
- package/lib/data/measure_supplementaldata.js +19 -1
- package/lib/data/measurereport.d.ts +5 -44
- package/lib/data/measurereport.js +28 -31
- package/lib/data/measurereport_group.d.ts +1413 -15
- package/lib/data/measurereport_group.js +21 -1
- package/lib/data/measurereport_group_population.d.ts +24 -0
- package/lib/data/measurereport_group_population.js +20 -0
- package/lib/data/measurereport_group_stratifier.d.ts +444 -0
- package/lib/data/measurereport_group_stratifier.js +19 -0
- package/lib/data/measurereport_group_stratifier_stratum.d.ts +144 -0
- package/lib/data/measurereport_group_stratifier_stratum.js +27 -0
- package/lib/data/measurereport_group_stratifier_stratum_component.d.ts +21 -0
- package/lib/data/measurereport_group_stratifier_stratum_component.js +18 -0
- package/lib/data/measurereport_group_stratifier_stratum_population.d.ts +24 -0
- package/lib/data/measurereport_group_stratifier_stratum_population.js +20 -0
- package/lib/data/media.d.ts +5 -53
- package/lib/data/media.js +41 -29
- package/lib/data/medication.d.ts +5 -34
- package/lib/data/medication.js +26 -1
- package/lib/data/medication_batch.d.ts +21 -7
- package/lib/data/medication_batch.js +15 -1
- package/lib/data/medication_ingredient.d.ts +27 -14
- package/lib/data/medication_ingredient.js +20 -1
- package/lib/data/medicationadministration.d.ts +9 -46
- package/lib/data/medicationadministration.js +40 -21
- package/lib/data/medicationadministration_dosage.d.ts +36 -21
- package/lib/data/medicationadministration_dosage.js +23 -1
- package/lib/data/medicationadministration_performer.d.ts +21 -10
- package/lib/data/medicationadministration_performer.js +17 -1
- package/lib/data/medicationdispense.d.ts +7 -53
- package/lib/data/medicationdispense.js +46 -25
- package/lib/data/medicationdispense_performer.d.ts +21 -10
- package/lib/data/medicationdispense_performer.js +17 -1
- package/lib/data/medicationdispense_substitution.d.ts +27 -14
- package/lib/data/medicationdispense_substitution.js +19 -1
- package/lib/data/medicationknowledge.d.ts +27 -37
- package/lib/data/medicationknowledge.js +58 -1
- package/lib/data/medicationknowledge_administrationguidelines.d.ts +144 -0
- package/lib/data/medicationknowledge_administrationguidelines.js +27 -0
- package/lib/data/medicationknowledge_administrationguidelines_dosage.d.ts +21 -0
- package/lib/data/medicationknowledge_administrationguidelines_dosage.js +19 -0
- package/lib/data/medicationknowledge_administrationguidelines_patientcharacteristics.d.ts +24 -0
- package/lib/data/medicationknowledge_administrationguidelines_patientcharacteristics.js +20 -0
- package/lib/data/medicationknowledge_cost.d.ts +24 -0
- package/lib/data/medicationknowledge_cost.js +20 -0
- package/lib/data/medicationknowledge_drugcharacteristic.d.ts +30 -0
- package/lib/data/medicationknowledge_drugcharacteristic.js +22 -0
- package/lib/data/medicationknowledge_ingredient.d.ts +27 -0
- package/lib/data/medicationknowledge_ingredient.js +22 -0
- package/lib/data/medicationknowledge_kinetics.d.ts +24 -0
- package/lib/data/medicationknowledge_kinetics.js +20 -0
- package/lib/data/medicationknowledge_medicineclassification.d.ts +21 -0
- package/lib/data/medicationknowledge_medicineclassification.js +18 -0
- package/lib/data/medicationknowledge_monitoringprogram.d.ts +21 -0
- package/lib/data/medicationknowledge_monitoringprogram.js +18 -0
- package/lib/data/medicationknowledge_monograph.d.ts +21 -0
- package/lib/data/medicationknowledge_monograph.js +19 -0
- package/lib/data/medicationknowledge_packaging.d.ts +21 -0
- package/lib/data/medicationknowledge_packaging.js +19 -0
- package/lib/data/medicationknowledge_regulatory.d.ts +180 -0
- package/lib/data/medicationknowledge_regulatory.js +25 -0
- package/lib/data/medicationknowledge_regulatory_maxdispense.d.ts +21 -0
- package/lib/data/medicationknowledge_regulatory_maxdispense.js +19 -0
- package/lib/data/medicationknowledge_regulatory_schedule.d.ts +18 -0
- package/lib/data/medicationknowledge_regulatory_schedule.js +17 -0
- package/lib/data/medicationknowledge_regulatory_substitution.d.ts +21 -0
- package/lib/data/medicationknowledge_regulatory_substitution.js +18 -0
- package/lib/data/medicationknowledge_relatedmedicationknowledge.d.ts +21 -0
- package/lib/data/medicationknowledge_relatedmedicationknowledge.js +19 -0
- package/lib/data/medicationrequest.d.ts +9 -93
- package/lib/data/medicationrequest.js +53 -53
- package/lib/data/medicationrequest_dispenserequest.d.ts +90 -22
- package/lib/data/medicationrequest_dispenserequest.js +25 -1
- package/lib/data/medicationrequest_dispenserequest_initialfill.d.ts +21 -10
- package/lib/data/medicationrequest_dispenserequest_initialfill.js +17 -1
- package/lib/data/medicationrequest_substitution.d.ts +24 -11
- package/lib/data/medicationrequest_substitution.js +17 -1
- package/lib/data/medicationstatement.d.ts +7 -44
- package/lib/data/medicationstatement.js +37 -23
- package/lib/data/medicinalproduct.d.ts +3 -22
- package/lib/data/medicinalproduct.js +43 -1
- package/lib/data/medicinalproduct_manufacturingbusinessoperation.d.ts +33 -19
- package/lib/data/medicinalproduct_manufacturingbusinessoperation.js +22 -1
- package/lib/data/medicinalproduct_name.d.ts +141 -12
- package/lib/data/medicinalproduct_name.js +20 -1
- package/lib/data/medicinalproduct_name_countrylanguage.d.ts +24 -11
- package/lib/data/medicinalproduct_name_countrylanguage.js +17 -1
- package/lib/data/medicinalproduct_name_namepart.d.ts +21 -9
- package/lib/data/medicinalproduct_name_namepart.js +16 -1
- package/lib/data/medicinalproduct_specialdesignation.d.ts +39 -23
- package/lib/data/medicinalproduct_specialdesignation.js +24 -1
- package/lib/data/medicinalproductauthorization.d.ts +3 -18
- package/lib/data/medicinalproductauthorization.js +35 -1
- package/lib/data/medicinalproductauthorization_jurisdictionalauthorization.d.ts +30 -17
- package/lib/data/medicinalproductauthorization_jurisdictionalauthorization.js +21 -1
- package/lib/data/medicinalproductauthorization_procedure.d.ts +3 -7
- package/lib/data/medicinalproductauthorization_procedure.js +23 -1
- package/lib/data/medicinalproductcontraindication.d.ts +5 -11
- package/lib/data/medicinalproductcontraindication.js +24 -1
- package/lib/data/medicinalproductcontraindication_othertherapy.d.ts +24 -0
- package/lib/data/medicinalproductcontraindication_othertherapy.js +20 -0
- package/lib/data/medicinalproductindication.d.ts +3 -11
- package/lib/data/medicinalproductindication.js +27 -1
- package/lib/data/medicinalproductindication_othertherapy.d.ts +24 -12
- package/lib/data/medicinalproductindication_othertherapy.js +18 -1
- package/lib/data/medicinalproductingredient.d.ts +3 -8
- package/lib/data/medicinalproductingredient.js +24 -1
- package/lib/data/medicinalproductingredient_specifiedsubstance.d.ts +369 -14
- package/lib/data/medicinalproductingredient_specifiedsubstance.js +21 -1
- package/lib/data/medicinalproductingredient_specifiedsubstance_strength.d.ts +117 -21
- package/lib/data/medicinalproductingredient_specifiedsubstance_strength.js +25 -1
- package/lib/data/medicinalproductingredient_specifiedsubstance_strength_referencestrength.d.ts +30 -16
- package/lib/data/medicinalproductingredient_specifiedsubstance_strength_referencestrength.js +20 -1
- package/lib/data/medicinalproductingredient_substance.d.ts +363 -10
- package/lib/data/medicinalproductingredient_substance.js +19 -1
- package/lib/data/medicinalproductinteraction.d.ts +3 -9
- package/lib/data/medicinalproductinteraction.js +23 -1
- package/lib/data/medicinalproductinteraction_interactant.d.ts +21 -10
- package/lib/data/medicinalproductinteraction_interactant.js +17 -1
- package/lib/data/medicinalproductmanufactured.d.ts +3 -9
- package/lib/data/medicinalproductmanufactured.js +22 -1
- package/lib/data/medicinalproductpackaged.d.ts +3 -11
- package/lib/data/medicinalproductpackaged.js +28 -1
- package/lib/data/medicinalproductpackaged_batchidentifier.d.ts +21 -9
- package/lib/data/medicinalproductpackaged_batchidentifier.js +16 -1
- package/lib/data/medicinalproductpackaged_packageitem.d.ts +3 -14
- package/lib/data/medicinalproductpackaged_packageitem.js +33 -1
- package/lib/data/medicinalproductpharmaceutical.d.ts +3 -9
- package/lib/data/medicinalproductpharmaceutical.js +25 -1
- package/lib/data/medicinalproductpharmaceutical_characteristics.d.ts +21 -9
- package/lib/data/medicinalproductpharmaceutical_characteristics.js +16 -1
- package/lib/data/medicinalproductpharmaceutical_routeofadministration.d.ts +279 -23
- package/lib/data/medicinalproductpharmaceutical_routeofadministration.js +27 -1
- package/lib/data/medicinalproductpharmaceutical_routeofadministration_targetspecies.d.ts +84 -10
- package/lib/data/medicinalproductpharmaceutical_routeofadministration_targetspecies.js +19 -1
- package/lib/data/medicinalproductpharmaceutical_routeofadministration_targetspecies_withdrawalperiod.d.ts +24 -12
- package/lib/data/medicinalproductpharmaceutical_routeofadministration_targetspecies_withdrawalperiod.js +18 -1
- package/lib/data/medicinalproductundesirableeffect.d.ts +3 -7
- package/lib/data/medicinalproductundesirableeffect.js +19 -1
- package/lib/data/messagedefinition.d.ts +10 -46
- package/lib/data/messagedefinition.js +46 -15
- package/lib/data/messagedefinition_allowedresponse.d.ts +21 -7
- package/lib/data/messagedefinition_allowedresponse.js +15 -1
- package/lib/data/messagedefinition_focus.d.ts +27 -11
- package/lib/data/messagedefinition_focus.js +18 -1
- package/lib/data/messageheader.d.ts +5 -16
- package/lib/data/messageheader.js +29 -1
- package/lib/data/messageheader_destination.d.ts +27 -12
- package/lib/data/messageheader_destination.js +18 -1
- package/lib/data/messageheader_response.d.ts +24 -20
- package/lib/data/messageheader_response.js +18 -13
- package/lib/data/messageheader_source.d.ts +30 -14
- package/lib/data/messageheader_source.js +19 -1
- package/lib/data/meta.d.ts +3 -7
- package/lib/data/meta.js +19 -1
- package/lib/data/metadataresource.d.ts +162 -0
- package/lib/data/metadataresource.js +28 -0
- package/lib/data/molecularsequence.d.ts +5 -29
- package/lib/data/molecularsequence.js +38 -13
- package/lib/data/molecularsequence_quality.d.ts +159 -46
- package/lib/data/molecularsequence_quality.js +32 -13
- package/lib/data/molecularsequence_quality_roc.d.ts +36 -17
- package/lib/data/molecularsequence_quality_roc.js +20 -1
- package/lib/data/molecularsequence_referenceseq.d.ts +42 -39
- package/lib/data/molecularsequence_referenceseq.js +25 -18
- package/lib/data/molecularsequence_repository.d.ts +33 -29
- package/lib/data/molecularsequence_repository.js +20 -17
- package/lib/data/molecularsequence_structurevariant.d.ts +138 -29
- package/lib/data/molecularsequence_structurevariant.js +21 -1
- package/lib/data/molecularsequence_structurevariant_inner.d.ts +21 -0
- package/lib/data/molecularsequence_structurevariant_inner.js +17 -0
- package/lib/data/molecularsequence_structurevariant_outer.d.ts +21 -0
- package/lib/data/molecularsequence_structurevariant_outer.js +17 -0
- package/lib/data/molecularsequence_variant.d.ts +33 -16
- package/lib/data/molecularsequence_variant.js +20 -1
- package/lib/data/money.d.ts +3 -3
- package/lib/data/money.js +14 -1
- package/lib/data/namingsystem.d.ts +5 -27
- package/lib/data/namingsystem.js +29 -13
- package/lib/data/namingsystem_uniqueid.d.ts +30 -26
- package/lib/data/namingsystem_uniqueid.js +20 -15
- package/lib/data/narrative.d.ts +18 -19
- package/lib/data/narrative.js +15 -15
- package/lib/data/nutritionorder.d.ts +6 -65
- package/lib/data/nutritionorder.js +36 -46
- package/lib/data/nutritionorder_enteralformula.d.ts +114 -24
- package/lib/data/nutritionorder_enteralformula.js +27 -1
- package/lib/data/nutritionorder_enteralformula_administration.d.ts +27 -0
- package/lib/data/nutritionorder_enteralformula_administration.js +22 -0
- package/lib/data/nutritionorder_oraldiet.d.ts +141 -19
- package/lib/data/nutritionorder_oraldiet.js +23 -1
- package/lib/data/nutritionorder_oraldiet_nutrient.d.ts +21 -0
- package/lib/data/nutritionorder_oraldiet_nutrient.js +19 -0
- package/lib/data/nutritionorder_oraldiet_texture.d.ts +21 -0
- package/lib/data/nutritionorder_oraldiet_texture.js +18 -0
- package/lib/data/nutritionorder_supplement.d.ts +30 -16
- package/lib/data/nutritionorder_supplement.js +21 -1
- package/lib/data/observation.d.ts +4 -59
- package/lib/data/observation.js +61 -23
- package/lib/data/observation_component.d.ts +150 -40
- package/lib/data/observation_component.js +35 -1
- package/lib/data/observation_referencerange.d.ts +33 -18
- package/lib/data/observation_referencerange.js +22 -1
- package/lib/data/observationdefinition.d.ts +9 -44
- package/lib/data/observationdefinition.js +32 -29
- package/lib/data/observationdefinition_qualifiedinterval.d.ts +39 -0
- package/lib/data/observationdefinition_qualifiedinterval.js +26 -0
- package/lib/data/observationdefinition_quantitativedetails.d.ts +27 -0
- package/lib/data/observationdefinition_quantitativedetails.js +20 -0
- package/lib/data/oid.d.ts +3 -0
- package/lib/data/oid.js +8 -0
- package/lib/data/operationdefinition.d.ts +6 -39
- package/lib/data/operationdefinition.js +43 -11
- package/lib/data/operationdefinition_overload.d.ts +21 -7
- package/lib/data/operationdefinition_overload.js +15 -1
- package/lib/data/operationdefinition_parameter.d.ts +11 -49
- package/lib/data/operationdefinition_parameter.js +29 -32
- package/lib/data/operationdefinition_parameter_binding.d.ts +21 -0
- package/lib/data/operationdefinition_parameter_binding.js +18 -0
- package/lib/data/operationdefinition_parameter_referencedfrom.d.ts +21 -0
- package/lib/data/operationdefinition_parameter_referencedfrom.js +17 -0
- package/lib/data/operationoutcome.d.ts +3 -3
- package/lib/data/operationoutcome.js +13 -1
- package/lib/data/operationoutcome_issue.d.ts +33 -94
- package/lib/data/operationoutcome_issue.js +21 -80
- package/lib/data/organization.d.ts +3 -12
- package/lib/data/organization.js +27 -1
- package/lib/data/organization_contact.d.ts +27 -15
- package/lib/data/organization_contact.js +21 -1
- package/lib/data/organizationaffiliation.d.ts +3 -14
- package/lib/data/organizationaffiliation.js +28 -1
- package/lib/data/parameterdefinition.d.ts +6 -18
- package/lib/data/parameterdefinition.js +20 -11
- package/lib/data/parameters.d.ts +3 -3
- package/lib/data/parameters.js +13 -1
- package/lib/data/parameters_parameter.d.ts +30 -97
- package/lib/data/parameters_parameter.js +98 -1
- package/lib/data/patient.d.ts +3 -23
- package/lib/data/patient.js +40 -1
- package/lib/data/patient_communication.d.ts +21 -8
- package/lib/data/patient_communication.js +16 -1
- package/lib/data/patient_contact.d.ts +36 -24
- package/lib/data/patient_contact.js +27 -1
- package/lib/data/patient_link.d.ts +21 -20
- package/lib/data/patient_link.js +17 -15
- package/lib/data/paymentnotice.d.ts +5 -27
- package/lib/data/paymentnotice.js +28 -15
- package/lib/data/paymentreconciliation.d.ts +6 -34
- package/lib/data/paymentreconciliation.js +34 -15
- package/lib/data/paymentreconciliation_detail.d.ts +45 -27
- package/lib/data/paymentreconciliation_detail.js +27 -1
- package/lib/data/paymentreconciliation_processnote.d.ts +21 -17
- package/lib/data/paymentreconciliation_processnote.js +16 -13
- package/lib/data/period.d.ts +3 -3
- package/lib/data/period.js +14 -1
- package/lib/data/person.d.ts +3 -12
- package/lib/data/person.js +29 -1
- package/lib/data/person_link.d.ts +21 -20
- package/lib/data/person_link.js +17 -15
- package/lib/data/plandefinition.d.ts +7 -34
- package/lib/data/plandefinition.js +53 -1
- package/lib/data/plandefinition_action.d.ts +21 -111
- package/lib/data/plandefinition_action.js +66 -62
- package/lib/data/plandefinition_action_condition.d.ts +21 -0
- package/lib/data/plandefinition_action_condition.js +19 -0
- package/lib/data/plandefinition_action_dynamicvalue.d.ts +21 -0
- package/lib/data/plandefinition_action_dynamicvalue.js +18 -0
- package/lib/data/plandefinition_action_participant.d.ts +21 -0
- package/lib/data/plandefinition_action_participant.js +19 -0
- package/lib/data/plandefinition_action_relatedaction.d.ts +27 -0
- package/lib/data/plandefinition_action_relatedaction.js +22 -0
- package/lib/data/plandefinition_goal.d.ts +117 -20
- package/lib/data/plandefinition_goal.js +23 -1
- package/lib/data/plandefinition_goal_target.d.ts +30 -0
- package/lib/data/plandefinition_goal_target.js +24 -0
- package/lib/data/population.d.ts +30 -16
- package/lib/data/population.js +20 -1
- package/lib/data/practitioner.d.ts +3 -12
- package/lib/data/practitioner.js +29 -1
- package/lib/data/practitioner_qualification.d.ts +27 -15
- package/lib/data/practitioner_qualification.js +21 -1
- package/lib/data/practitionerrole.d.ts +3 -16
- package/lib/data/practitionerrole.js +32 -1
- package/lib/data/practitionerrole_availabletime.d.ts +27 -29
- package/lib/data/practitionerrole_availabletime.js +18 -21
- package/lib/data/practitionerrole_notavailable.d.ts +21 -8
- package/lib/data/practitionerrole_notavailable.js +16 -1
- package/lib/data/procedure.d.ts +5 -55
- package/lib/data/procedure.js +53 -23
- package/lib/data/procedure_focaldevice.d.ts +21 -9
- package/lib/data/procedure_focaldevice.js +17 -1
- package/lib/data/procedure_performer.d.ts +24 -11
- package/lib/data/procedure_performer.js +18 -1
- package/lib/data/prodcharacteristic.d.ts +48 -29
- package/lib/data/prodcharacteristic.js +27 -1
- package/lib/data/productshelflife.d.ts +27 -15
- package/lib/data/productshelflife.js +20 -1
- package/lib/data/provenance.d.ts +3 -13
- package/lib/data/provenance.js +28 -1
- package/lib/data/provenance_agent.d.ts +27 -13
- package/lib/data/provenance_agent.js +19 -1
- package/lib/data/provenance_entity.d.ts +96 -25
- package/lib/data/provenance_entity.js +19 -17
- package/lib/data/quantity.d.ts +4 -18
- package/lib/data/quantity.js +18 -15
- package/lib/data/questionnaire.d.ts +6 -27
- package/lib/data/questionnaire.js +41 -1
- package/lib/data/questionnaire_item.d.ts +13 -54
- package/lib/data/questionnaire_item.js +34 -30
- package/lib/data/questionnaire_item_answeroption.d.ts +36 -0
- package/lib/data/questionnaire_item_answeroption.js +24 -0
- package/lib/data/questionnaire_item_enablewhen.d.ts +51 -0
- package/lib/data/questionnaire_item_enablewhen.js +31 -0
- package/lib/data/questionnaire_item_initial.d.ts +51 -0
- package/lib/data/questionnaire_item_initial.js +31 -0
- package/lib/data/questionnaireresponse.d.ts +4 -27
- package/lib/data/questionnaireresponse.js +26 -17
- package/lib/data/questionnaireresponse_item.d.ts +5 -8
- package/lib/data/questionnaireresponse_item.js +19 -1
- package/lib/data/{questionnaireresponse_answer.d.ts → questionnaireresponse_item_answer.d.ts} +4 -4
- package/lib/data/questionnaireresponse_item_answer.js +33 -0
- package/lib/data/range.d.ts +3 -4
- package/lib/data/range.js +15 -1
- package/lib/data/ratio.d.ts +3 -4
- package/lib/data/ratio.js +15 -1
- package/lib/data/reference.d.ts +3 -5
- package/lib/data/reference.js +17 -1
- package/lib/data/relatedartifact.d.ts +4 -28
- package/lib/data/relatedartifact.js +21 -23
- package/lib/data/relatedperson.d.ts +3 -14
- package/lib/data/relatedperson.js +33 -1
- package/lib/data/relatedperson_communication.d.ts +21 -9
- package/lib/data/relatedperson_communication.js +16 -1
- package/lib/data/request.d.ts +93 -0
- package/lib/data/request.js +47 -0
- package/lib/data/requestgroup.d.ts +7 -75
- package/lib/data/requestgroup.js +35 -53
- package/lib/data/requestgroup_action.d.ts +15 -37
- package/lib/data/requestgroup_action.js +50 -1
- package/lib/data/requestgroup_action_condition.d.ts +21 -0
- package/lib/data/requestgroup_action_condition.js +19 -0
- package/lib/data/requestgroup_action_relatedaction.d.ts +27 -0
- package/lib/data/requestgroup_action_relatedaction.js +22 -0
- package/lib/data/researchdefinition.d.ts +5 -35
- package/lib/data/researchdefinition.js +54 -1
- package/lib/data/researchelementdefinition.d.ts +11 -58
- package/lib/data/researchelementdefinition.js +54 -22
- package/lib/data/researchelementdefinition_characteristic.d.ts +78 -0
- package/lib/data/researchelementdefinition_characteristic.js +44 -0
- package/lib/data/researchstudy.d.ts +7 -52
- package/lib/data/researchstudy.js +45 -29
- package/lib/data/researchstudy_arm.d.ts +24 -10
- package/lib/data/researchstudy_arm.js +17 -1
- package/lib/data/researchstudy_objective.d.ts +21 -0
- package/lib/data/researchstudy_objective.js +18 -0
- package/lib/data/researchsubject.d.ts +4 -40
- package/lib/data/researchsubject.js +23 -33
- package/lib/data/resource.d.ts +18 -0
- package/lib/data/resource.js +16 -0
- package/lib/data/riskassessment.d.ts +4 -21
- package/lib/data/riskassessment.js +36 -1
- package/lib/data/riskassessment_prediction.d.ts +39 -22
- package/lib/data/riskassessment_prediction.js +24 -1
- package/lib/data/riskevidencesynthesis.d.ts +9 -37
- package/lib/data/riskevidencesynthesis.js +54 -1
- package/lib/data/riskevidencesynthesis_certainty.d.ts +87 -0
- package/lib/data/riskevidencesynthesis_certainty.js +23 -0
- package/lib/data/riskevidencesynthesis_certainty_certaintysubcomponent.d.ts +24 -0
- package/lib/data/riskevidencesynthesis_certainty_certaintysubcomponent.js +20 -0
- package/lib/data/riskevidencesynthesis_riskestimate.d.ts +108 -0
- package/lib/data/riskevidencesynthesis_riskestimate.js +26 -0
- package/lib/data/riskevidencesynthesis_riskestimate_precisionestimate.d.ts +27 -0
- package/lib/data/riskevidencesynthesis_riskestimate_precisionestimate.js +20 -0
- package/lib/data/riskevidencesynthesis_samplesize.d.ts +24 -0
- package/lib/data/riskevidencesynthesis_samplesize.js +18 -0
- package/lib/data/sampleddata.d.ts +3 -8
- package/lib/data/sampleddata.js +20 -1
- package/lib/data/schedule.d.ts +3 -10
- package/lib/data/schedule.js +23 -1
- package/lib/data/searchparameter.d.ts +10 -103
- package/lib/data/searchparameter.js +42 -68
- package/lib/data/searchparameter_component.d.ts +21 -7
- package/lib/data/searchparameter_component.js +15 -1
- package/lib/data/servicerequest.d.ts +7 -81
- package/lib/data/servicerequest.js +59 -44
- package/lib/data/signature.d.ts +3 -8
- package/lib/data/signature.js +21 -1
- package/lib/data/slot.d.ts +4 -27
- package/lib/data/slot.js +26 -17
- package/lib/data/specimen.d.ts +4 -27
- package/lib/data/specimen.js +32 -15
- package/lib/data/specimen_collection.d.ts +42 -19
- package/lib/data/specimen_collection.js +27 -1
- package/lib/data/specimen_container.d.ts +36 -21
- package/lib/data/specimen_container.js +24 -1
- package/lib/data/specimen_processing.d.ts +30 -16
- package/lib/data/specimen_processing.js +21 -1
- package/lib/data/specimendefinition.d.ts +4 -60
- package/lib/data/specimendefinition.js +20 -11
- package/lib/data/specimendefinition_typetested.d.ts +390 -0
- package/lib/data/specimendefinition_typetested.js +28 -0
- package/lib/data/specimendefinition_typetested_container.d.ts +96 -0
- package/lib/data/specimendefinition_typetested_container.js +29 -0
- package/lib/data/specimendefinition_typetested_container_additive.d.ts +21 -0
- package/lib/data/specimendefinition_typetested_container_additive.js +19 -0
- package/lib/data/specimendefinition_typetested_handling.d.ts +27 -0
- package/lib/data/specimendefinition_typetested_handling.js +22 -0
- package/lib/data/structuredefinition.d.ts +12 -52
- package/lib/data/structuredefinition.js +48 -16
- package/lib/data/structuredefinition_context.d.ts +21 -17
- package/lib/data/structuredefinition_context.js +16 -13
- package/lib/data/structuredefinition_differential.d.ts +4878 -6
- package/lib/data/structuredefinition_differential.js +15 -1
- package/lib/data/structuredefinition_mapping.d.ts +27 -11
- package/lib/data/structuredefinition_mapping.js +17 -1
- package/lib/data/structuredefinition_snapshot.d.ts +4878 -10
- package/lib/data/structuredefinition_snapshot.js +15 -1
- package/lib/data/structuremap.d.ts +3 -24
- package/lib/data/structuremap.js +36 -1
- package/lib/data/structuremap_group.d.ts +105 -27
- package/lib/data/structuremap_group.js +22 -13
- package/lib/data/structuremap_group_input.d.ts +27 -0
- package/lib/data/structuremap_group_input.js +20 -0
- package/lib/data/structuremap_group_rule.d.ts +14 -0
- package/lib/data/structuremap_group_rule.js +24 -0
- package/lib/data/structuremap_group_rule_dependent.d.ts +21 -0
- package/lib/data/structuremap_group_rule_dependent.js +17 -0
- package/lib/data/structuremap_group_rule_source.d.ts +195 -0
- package/lib/data/structuremap_group_rule_source.js +107 -0
- package/lib/data/structuremap_group_rule_target.d.ts +120 -0
- package/lib/data/structuremap_group_rule_target.js +25 -0
- package/lib/data/structuremap_group_rule_target_parameter.d.ts +30 -0
- package/lib/data/structuremap_group_rule_target_parameter.js +20 -0
- package/lib/data/structuremap_structure.d.ts +27 -23
- package/lib/data/structuremap_structure.js +18 -15
- package/lib/data/subscription.d.ts +5 -22
- package/lib/data/subscription.js +21 -15
- package/lib/data/subscription_channel.d.ts +27 -25
- package/lib/data/subscription_channel.js +18 -17
- package/lib/data/substance.d.ts +5 -11
- package/lib/data/substance.js +23 -1
- package/lib/data/substance_ingredient.d.ts +24 -12
- package/lib/data/substance_ingredient.js +19 -1
- package/lib/data/substance_instance.d.ts +24 -11
- package/lib/data/substance_instance.js +18 -1
- package/lib/data/substanceamount.d.ts +78 -0
- package/lib/data/substanceamount.js +25 -0
- package/lib/data/substanceamount_referencerange.d.ts +18 -0
- package/lib/data/substanceamount_referencerange.js +17 -0
- package/lib/data/substancenucleicacid.d.ts +5 -12
- package/lib/data/substancenucleicacid.js +18 -1
- package/lib/data/substancenucleicacid_subunit.d.ts +174 -0
- package/lib/data/substancenucleicacid_subunit.js +27 -0
- package/lib/data/substancenucleicacid_subunit_linkage.d.ts +27 -0
- package/lib/data/substancenucleicacid_subunit_linkage.js +20 -0
- package/lib/data/substancenucleicacid_subunit_sugar.d.ts +24 -0
- package/lib/data/substancenucleicacid_subunit_sugar.js +19 -0
- package/lib/data/substancepolymer.d.ts +7 -10
- package/lib/data/substancepolymer.js +20 -1
- package/lib/data/substancepolymer_monomerset.d.ts +768 -0
- package/lib/data/substancepolymer_monomerset.js +21 -0
- package/lib/data/substancepolymer_monomerset_startingmaterial.d.ts +252 -0
- package/lib/data/substancepolymer_monomerset_startingmaterial.js +21 -0
- package/lib/data/substancepolymer_repeat.d.ts +3159 -0
- package/lib/data/substancepolymer_repeat.js +21 -0
- package/lib/data/substancepolymer_repeat_repeatunit.d.ts +1047 -0
- package/lib/data/substancepolymer_repeat_repeatunit.js +28 -0
- package/lib/data/substancepolymer_repeat_repeatunit_degreeofpolymerisation.d.ts +246 -0
- package/lib/data/substancepolymer_repeat_repeatunit_degreeofpolymerisation.js +19 -0
- package/lib/data/substancepolymer_repeat_repeatunit_structuralrepresentation.d.ts +24 -0
- package/lib/data/substancepolymer_repeat_repeatunit_structuralrepresentation.js +20 -0
- package/lib/data/substanceprotein.d.ts +5 -7
- package/lib/data/substanceprotein.js +17 -1
- package/lib/data/substanceprotein_subunit.d.ts +39 -0
- package/lib/data/substanceprotein_subunit.js +25 -0
- package/lib/data/substancereferenceinformation.d.ts +11 -11
- package/lib/data/substancereferenceinformation.js +24 -1
- package/lib/data/substancereferenceinformation_classification.d.ts +27 -0
- package/lib/data/substancereferenceinformation_classification.js +21 -0
- package/lib/data/substancereferenceinformation_gene.d.ts +24 -0
- package/lib/data/substancereferenceinformation_gene.js +20 -0
- package/lib/data/substancereferenceinformation_geneelement.d.ts +24 -0
- package/lib/data/substancereferenceinformation_geneelement.js +21 -0
- package/lib/data/substancereferenceinformation_target.d.ts +45 -0
- package/lib/data/substancereferenceinformation_target.js +30 -0
- package/lib/data/substancesourcematerial.d.ts +9 -18
- package/lib/data/substancesourcematerial.js +33 -1
- package/lib/data/substancesourcematerial_fractiondescription.d.ts +21 -0
- package/lib/data/substancesourcematerial_fractiondescription.js +18 -0
- package/lib/data/substancesourcematerial_organism.d.ts +246 -0
- package/lib/data/substancesourcematerial_organism.js +27 -0
- package/lib/data/substancesourcematerial_organism_author.d.ts +21 -0
- package/lib/data/substancesourcematerial_organism_author.js +18 -0
- package/lib/data/substancesourcematerial_organism_hybrid.d.ts +30 -0
- package/lib/data/substancesourcematerial_organism_hybrid.js +21 -0
- package/lib/data/substancesourcematerial_organism_organismgeneral.d.ts +27 -0
- package/lib/data/substancesourcematerial_organism_organismgeneral.js +20 -0
- package/lib/data/substancesourcematerial_partdescription.d.ts +21 -0
- package/lib/data/substancesourcematerial_partdescription.js +18 -0
- package/lib/data/substancespecification.d.ts +17 -28
- package/lib/data/substancespecification.js +44 -1
- package/lib/data/substancespecification_code.d.ts +30 -0
- package/lib/data/substancespecification_code.js +22 -0
- package/lib/data/substancespecification_moiety.d.ts +39 -0
- package/lib/data/substancespecification_moiety.js +26 -0
- package/lib/data/substancespecification_name.d.ts +19 -0
- package/lib/data/substancespecification_name.js +29 -0
- package/lib/data/substancespecification_name_official.d.ts +24 -0
- package/lib/data/substancespecification_name_official.js +19 -0
- package/lib/data/substancespecification_property.d.ts +36 -0
- package/lib/data/substancespecification_property.js +25 -0
- package/lib/data/substancespecification_relationship.d.ts +48 -0
- package/lib/data/substancespecification_relationship.js +31 -0
- package/lib/data/substancespecification_structure.d.ts +435 -0
- package/lib/data/substancespecification_structure.js +30 -0
- package/lib/data/substancespecification_structure_isotope.d.ts +93 -0
- package/lib/data/substancespecification_structure_isotope.js +24 -0
- package/lib/data/substancespecification_structure_isotope_molecularweight.d.ts +24 -0
- package/lib/data/substancespecification_structure_isotope_molecularweight.js +20 -0
- package/lib/data/substancespecification_structure_representation.d.ts +24 -0
- package/lib/data/substancespecification_structure_representation.js +20 -0
- package/lib/data/supplydelivery.d.ts +4 -27
- package/lib/data/supplydelivery.js +31 -15
- package/lib/data/supplydelivery_supplieditem.d.ts +24 -12
- package/lib/data/supplydelivery_supplieditem.js +19 -1
- package/lib/data/supplyrequest.d.ts +12 -40
- package/lib/data/supplyrequest.js +37 -21
- package/lib/data/supplyrequest_parameter.d.ts +30 -0
- package/lib/data/supplyrequest_parameter.js +23 -0
- package/lib/data/task.d.ts +7 -69
- package/lib/data/task.js +51 -31
- package/lib/data/task_input.d.ts +168 -149
- package/lib/data/task_input.js +95 -1
- package/lib/data/task_output.d.ts +168 -152
- package/lib/data/task_output.js +95 -1
- package/lib/data/task_restriction.d.ts +24 -15
- package/lib/data/task_restriction.js +18 -1
- package/lib/data/terminologycapabilities.d.ts +20 -58
- package/lib/data/terminologycapabilities.js +46 -20
- package/lib/data/terminologycapabilities_closure.d.ts +18 -0
- package/lib/data/terminologycapabilities_closure.js +16 -0
- package/lib/data/terminologycapabilities_codesystem.d.ts +276 -0
- package/lib/data/terminologycapabilities_codesystem.js +19 -0
- package/lib/data/terminologycapabilities_codesystem_version.d.ts +87 -0
- package/lib/data/terminologycapabilities_codesystem_version.js +24 -0
- package/lib/data/terminologycapabilities_codesystem_version_filter.d.ts +21 -0
- package/lib/data/terminologycapabilities_codesystem_version_filter.js +17 -0
- package/lib/data/terminologycapabilities_expansion.d.ts +84 -0
- package/lib/data/terminologycapabilities_expansion.js +23 -0
- package/lib/data/terminologycapabilities_expansion_parameter.d.ts +21 -0
- package/lib/data/terminologycapabilities_expansion_parameter.js +17 -0
- package/lib/data/terminologycapabilities_implementation.d.ts +21 -0
- package/lib/data/terminologycapabilities_implementation.js +17 -0
- package/lib/data/terminologycapabilities_software.d.ts +21 -0
- package/lib/data/terminologycapabilities_software.js +17 -0
- package/lib/data/terminologycapabilities_translation.d.ts +18 -0
- package/lib/data/terminologycapabilities_translation.js +16 -0
- package/lib/data/terminologycapabilities_validatecode.d.ts +18 -0
- package/lib/data/terminologycapabilities_validatecode.js +16 -0
- package/lib/data/testreport.d.ts +4 -33
- package/lib/data/testreport.js +30 -17
- package/lib/data/testreport_participant.d.ts +24 -19
- package/lib/data/testreport_participant.js +17 -13
- package/lib/data/testreport_setup.d.ts +450 -6
- package/lib/data/testreport_setup.js +15 -1
- package/lib/data/testreport_setup_action.d.ts +147 -0
- package/lib/data/testreport_setup_action.js +19 -0
- package/lib/data/testreport_setup_action_assert.d.ts +24 -0
- package/lib/data/testreport_setup_action_assert.js +19 -0
- package/lib/data/testreport_setup_action_operation.d.ts +24 -0
- package/lib/data/testreport_setup_action_operation.js +19 -0
- package/lib/data/testreport_teardown.d.ts +252 -6
- package/lib/data/testreport_teardown.js +15 -1
- package/lib/data/testreport_teardown_action.d.ts +81 -0
- package/lib/data/testreport_teardown_action.js +17 -0
- package/lib/data/testreport_test.d.ts +456 -10
- package/lib/data/testreport_test.js +17 -1
- package/lib/data/testreport_test_action.d.ts +147 -0
- package/lib/data/testreport_test_action.js +19 -0
- package/lib/data/testscript.d.ts +3 -26
- package/lib/data/testscript.js +49 -1
- package/lib/data/testscript_destination.d.ts +21 -8
- package/lib/data/testscript_destination.js +16 -1
- package/lib/data/testscript_fixture.d.ts +24 -10
- package/lib/data/testscript_fixture.js +17 -1
- package/lib/data/testscript_metadata.d.ts +174 -9
- package/lib/data/testscript_metadata.js +17 -1
- package/lib/data/testscript_metadata_capability.d.ts +36 -0
- package/lib/data/testscript_metadata_capability.js +22 -0
- package/lib/data/testscript_metadata_link.d.ts +21 -0
- package/lib/data/testscript_metadata_link.js +17 -0
- package/lib/data/testscript_origin.d.ts +21 -8
- package/lib/data/testscript_origin.js +16 -1
- package/lib/data/testscript_setup.d.ts +1827 -6
- package/lib/data/testscript_setup.js +15 -1
- package/lib/data/testscript_setup_action.d.ts +606 -0
- package/lib/data/testscript_setup_action.js +19 -0
- package/lib/data/testscript_setup_action_assert.d.ts +81 -0
- package/lib/data/testscript_setup_action_assert.js +38 -0
- package/lib/data/testscript_setup_action_operation.d.ts +120 -0
- package/lib/data/testscript_setup_action_operation.js +37 -0
- package/lib/data/testscript_setup_action_operation_requestheader.d.ts +21 -0
- package/lib/data/testscript_setup_action_operation_requestheader.js +17 -0
- package/lib/data/testscript_teardown.d.ts +1116 -6
- package/lib/data/testscript_teardown.js +15 -1
- package/lib/data/testscript_teardown_action.d.ts +369 -0
- package/lib/data/testscript_teardown_action.js +17 -0
- package/lib/data/testscript_test.d.ts +1833 -10
- package/lib/data/testscript_test.js +17 -1
- package/lib/data/testscript_test_action.d.ts +606 -0
- package/lib/data/testscript_test_action.js +19 -0
- package/lib/data/testscript_variable.d.ts +39 -19
- package/lib/data/testscript_variable.js +21 -1
- package/lib/data/time.d.ts +3 -0
- package/lib/data/time.js +8 -0
- package/lib/data/timing.d.ts +3 -4
- package/lib/data/timing.js +18 -1
- package/lib/data/timing_repeat.d.ts +9 -47
- package/lib/data/timing_repeat.js +33 -26
- package/lib/data/triggerdefinition.d.ts +5 -30
- package/lib/data/triggerdefinition.js +25 -23
- package/lib/data/uri.d.ts +3 -0
- package/lib/data/uri.js +8 -0
- package/lib/data/url.d.ts +3 -0
- package/lib/data/url.js +8 -0
- package/lib/data/usagecontext.d.ts +7 -10
- package/lib/data/usagecontext.js +22 -1
- package/lib/data/uuid.d.ts +3 -0
- package/lib/data/uuid.js +8 -0
- package/lib/data/valueset.d.ts +3 -20
- package/lib/data/valueset.js +36 -1
- package/lib/data/valueset_compose.d.ts +2079 -12
- package/lib/data/valueset_compose.js +18 -1
- package/lib/data/valueset_compose_include.d.ts +345 -0
- package/lib/data/valueset_compose_include.js +22 -0
- package/lib/data/valueset_compose_include_concept.d.ts +87 -0
- package/lib/data/valueset_compose_include_concept.js +21 -0
- package/lib/data/valueset_compose_include_concept_designation.d.ts +24 -0
- package/lib/data/valueset_compose_include_concept_designation.js +19 -0
- package/lib/data/valueset_compose_include_filter.d.ts +24 -0
- package/lib/data/valueset_compose_include_filter.js +19 -0
- package/lib/data/valueset_expansion.d.ts +141 -17
- package/lib/data/valueset_expansion.js +21 -1
- package/lib/data/valueset_expansion_contains.d.ts +14 -0
- package/lib/data/valueset_expansion_contains.js +26 -0
- package/lib/data/valueset_expansion_parameter.d.ts +39 -0
- package/lib/data/valueset_expansion_parameter.js +23 -0
- package/lib/data/verificationresult.d.ts +5 -33
- package/lib/data/verificationresult.js +32 -19
- package/lib/data/verificationresult_attestation.d.ts +39 -22
- package/lib/data/verificationresult_attestation.js +24 -1
- package/lib/data/verificationresult_primarysource.d.ts +36 -19
- package/lib/data/verificationresult_primarysource.js +22 -1
- package/lib/data/verificationresult_validator.d.ts +24 -11
- package/lib/data/verificationresult_validator.js +18 -1
- package/lib/data/visionprescription.d.ts +7 -36
- package/lib/data/visionprescription.js +23 -15
- package/lib/data/visionprescription_lensspecification.d.ts +111 -0
- package/lib/data/visionprescription_lensspecification.js +34 -0
- package/lib/data/visionprescription_lensspecification_prism.d.ts +21 -0
- package/lib/data/visionprescription_lensspecification_prism.js +18 -0
- package/lib/data/xhtml.d.ts +3 -0
- package/lib/data/xhtml.js +8 -0
- package/lib/index.d.ts +11 -7
- package/lib/index.js +12 -8
- package/package.json +9 -2
- package/fhir-r4-types.md +0 -558
- package/lib/backboneelement.d.ts +0 -7
- package/lib/backboneelement.js +0 -3
- package/lib/control/role-codes.d.ts +0 -26
- package/lib/control/role-codes.js +0 -59
- package/lib/data/auditevent_detail.d.ts +0 -9
- package/lib/data/auditevent_detail.js +0 -3
- package/lib/data/auditevent_network.d.ts +0 -22
- package/lib/data/auditevent_network.js +0 -19
- package/lib/data/bundle_request.d.ts +0 -32
- package/lib/data/bundle_request.js +0 -21
- package/lib/data/bundle_response.d.ts +0 -15
- package/lib/data/bundle_response.js +0 -3
- package/lib/data/bundle_search.d.ts +0 -18
- package/lib/data/bundle_search.js +0 -15
- package/lib/data/capabilitystatement_certificate.d.ts +0 -8
- package/lib/data/capabilitystatement_certificate.js +0 -3
- package/lib/data/capabilitystatement_endpoint.d.ts +0 -9
- package/lib/data/capabilitystatement_endpoint.js +0 -3
- package/lib/data/capabilitystatement_event.d.ts +0 -38
- package/lib/data/capabilitystatement_event.js +0 -22
- package/lib/data/capabilitystatement_interaction.d.ts +0 -30
- package/lib/data/capabilitystatement_interaction.js +0 -27
- package/lib/data/capabilitystatement_interaction1.d.ts +0 -20
- package/lib/data/capabilitystatement_interaction1.js +0 -17
- package/lib/data/capabilitystatement_operation.d.ts +0 -10
- package/lib/data/capabilitystatement_operation.js +0 -3
- package/lib/data/capabilitystatement_resource.d.ts +0 -87
- package/lib/data/capabilitystatement_resource.js +0 -48
- package/lib/data/capabilitystatement_searchparam.d.ts +0 -34
- package/lib/data/capabilitystatement_searchparam.js +0 -27
- package/lib/data/capabilitystatement_security.d.ts +0 -14
- package/lib/data/capabilitystatement_security.js +0 -3
- package/lib/data/capabilitystatement_supportedmessage.d.ts +0 -15
- package/lib/data/capabilitystatement_supportedmessage.js +0 -13
- package/lib/data/careplan_detail.d.ts +0 -74
- package/lib/data/careplan_detail.js +0 -27
- package/lib/data/claim_detail.d.ts +0 -32
- package/lib/data/claim_detail.js +0 -3
- package/lib/data/claim_subdetail.d.ts +0 -29
- package/lib/data/claim_subdetail.js +0 -3
- package/lib/data/claimresponse_adjudication.d.ts +0 -13
- package/lib/data/claimresponse_adjudication.js +0 -3
- package/lib/data/claimresponse_detail.d.ts +0 -13
- package/lib/data/claimresponse_detail.js +0 -3
- package/lib/data/claimresponse_detail1.d.ts +0 -25
- package/lib/data/claimresponse_detail1.js +0 -3
- package/lib/data/claimresponse_subdetail.d.ts +0 -10
- package/lib/data/claimresponse_subdetail.js +0 -3
- package/lib/data/codesystem_designation.d.ts +0 -10
- package/lib/data/codesystem_designation.js +0 -3
- package/lib/data/codesystem_property1.d.ts +0 -20
- package/lib/data/codesystem_property1.js +0 -3
- package/lib/data/communicationrequest_requester.d.ts +0 -8
- package/lib/data/communicationrequest_requester.js +0 -3
- package/lib/data/conceptmap_dependson.d.ts +0 -11
- package/lib/data/conceptmap_dependson.js +0 -3
- package/lib/data/conceptmap_element.d.ts +0 -10
- package/lib/data/conceptmap_element.js +0 -3
- package/lib/data/conceptmap_target.d.ts +0 -40
- package/lib/data/conceptmap_target.js +0 -29
- package/lib/data/conceptmap_unmapped.d.ts +0 -21
- package/lib/data/conceptmap_unmapped.js +0 -15
- package/lib/data/consent_actor.d.ts +0 -9
- package/lib/data/consent_actor.js +0 -3
- package/lib/data/consent_actor1.d.ts +0 -9
- package/lib/data/consent_actor1.js +0 -3
- package/lib/data/consent_data.d.ts +0 -9
- package/lib/data/consent_data.js +0 -3
- package/lib/data/consent_data1.d.ts +0 -9
- package/lib/data/consent_data1.js +0 -3
- package/lib/data/consent_except.d.ts +0 -38
- package/lib/data/consent_except.js +0 -13
- package/lib/data/contract_agent.d.ts +0 -9
- package/lib/data/contract_agent.js +0 -3
- package/lib/data/contract_agent1.d.ts +0 -9
- package/lib/data/contract_agent1.js +0 -3
- package/lib/data/contract_valueditem.d.ts +0 -38
- package/lib/data/contract_valueditem.js +0 -3
- package/lib/data/contract_valueditem1.d.ts +0 -35
- package/lib/data/contract_valueditem1.js +0 -3
- package/lib/data/coverage_grouping.d.ts +0 -31
- package/lib/data/coverage_grouping.js +0 -3
- package/lib/data/coverageeligibilityresponse_benefitbalance.d.ts +0 -34
- package/lib/data/coverageeligibilityresponse_benefitbalance.js +0 -3
- package/lib/data/coverageeligibilityresponse_financial.d.ts +0 -20
- package/lib/data/coverageeligibilityresponse_financial.js +0 -3
- package/lib/data/device_udi.d.ts +0 -35
- package/lib/data/device_udi.js +0 -19
- package/lib/data/devicerequest_requester.d.ts +0 -8
- package/lib/data/devicerequest_requester.js +0 -3
- package/lib/data/diagnosticreport_performer.d.ts +0 -9
- package/lib/data/diagnosticreport_performer.js +0 -3
- package/lib/data/documentmanifest_content.d.ts +0 -10
- package/lib/data/documentmanifest_content.js +0 -3
- package/lib/data/documentreference_related.d.ts +0 -9
- package/lib/data/documentreference_related.js +0 -3
- package/lib/data/elementdefinition_discriminator.d.ts +0 -21
- package/lib/data/elementdefinition_discriminator.js +0 -19
- package/lib/data/explanationofbenefit_adjudication.d.ts +0 -13
- package/lib/data/explanationofbenefit_adjudication.js +0 -3
- package/lib/data/explanationofbenefit_detail.d.ts +0 -37
- package/lib/data/explanationofbenefit_detail.js +0 -3
- package/lib/data/explanationofbenefit_detail1.d.ts +0 -23
- package/lib/data/explanationofbenefit_detail1.js +0 -3
- package/lib/data/explanationofbenefit_financial.d.ts +0 -17
- package/lib/data/explanationofbenefit_financial.js +0 -3
- package/lib/data/explanationofbenefit_information.d.ts +0 -31
- package/lib/data/explanationofbenefit_information.js +0 -3
- package/lib/data/explanationofbenefit_subdetail.d.ts +0 -34
- package/lib/data/explanationofbenefit_subdetail.js +0 -3
- package/lib/data/graphdefinition_compartment.d.ts +0 -33
- package/lib/data/graphdefinition_compartment.js +0 -24
- package/lib/data/graphdefinition_target.d.ts +0 -15
- package/lib/data/graphdefinition_target.js +0 -3
- package/lib/data/imagingstudy_instance.d.ts +0 -12
- package/lib/data/imagingstudy_instance.js +0 -3
- package/lib/data/immunization_explanation.d.ts +0 -11
- package/lib/data/immunization_explanation.js +0 -3
- package/lib/data/immunization_practitioner.d.ts +0 -9
- package/lib/data/immunization_practitioner.js +0 -3
- package/lib/data/immunization_vaccinationprotocol.d.ts +0 -20
- package/lib/data/immunization_vaccinationprotocol.js +0 -3
- package/lib/data/immunizationrecommendation_datecriterion.d.ts +0 -8
- package/lib/data/immunizationrecommendation_datecriterion.js +0 -3
- package/lib/data/immunizationrecommendation_protocol.d.ts +0 -24
- package/lib/data/immunizationrecommendation_protocol.js +0 -3
- package/lib/data/implementationguide_dependency.d.ts +0 -9
- package/lib/data/implementationguide_dependency.js +0 -3
- package/lib/data/implementationguide_package.d.ts +0 -7
- package/lib/data/implementationguide_package.js +0 -3
- package/lib/data/implementationguide_page.d.ts +0 -26
- package/lib/data/implementationguide_page.js +0 -17
- package/lib/data/implementationguide_resource.d.ts +0 -18
- package/lib/data/implementationguide_resource.js +0 -3
- package/lib/data/measure_population.d.ts +0 -11
- package/lib/data/measure_population.js +0 -3
- package/lib/data/measure_stratifier.d.ts +0 -14
- package/lib/data/measure_stratifier.js +0 -3
- package/lib/data/measure_stratifier_component.d.ts +0 -11
- package/lib/data/measure_stratifier_component.js +0 -3
- package/lib/data/measurereport_population.d.ts +0 -11
- package/lib/data/measurereport_population.js +0 -3
- package/lib/data/measurereport_population1.d.ts +0 -11
- package/lib/data/measurereport_population1.js +0 -3
- package/lib/data/measurereport_stratifier.d.ts +0 -9
- package/lib/data/measurereport_stratifier.js +0 -3
- package/lib/data/measurereport_stratum.d.ts +0 -15
- package/lib/data/measurereport_stratum.js +0 -3
- package/lib/data/measurereport_stratum_component.d.ts +0 -8
- package/lib/data/measurereport_stratum_component.js +0 -3
- package/lib/data/medication_content.d.ts +0 -12
- package/lib/data/medication_content.js +0 -3
- package/lib/data/medication_package.d.ts +0 -12
- package/lib/data/medication_package.js +0 -3
- package/lib/data/medicationrequest_requester.d.ts +0 -12
- package/lib/data/medicationrequest_requester.js +0 -3
- package/lib/data/nutritionorder_administration.d.ts +0 -14
- package/lib/data/nutritionorder_administration.js +0 -3
- package/lib/data/nutritionorder_nutrient.d.ts +0 -9
- package/lib/data/nutritionorder_nutrient.js +0 -3
- package/lib/data/nutritionorder_texture.d.ts +0 -8
- package/lib/data/nutritionorder_texture.js +0 -3
- package/lib/data/observation_related.d.ts +0 -24
- package/lib/data/observation_related.js +0 -24
- package/lib/data/operationdefinition_binding.d.ts +0 -19
- package/lib/data/operationdefinition_binding.js +0 -17
- package/lib/data/operationdefinition_referencedfrom.d.ts +0 -7
- package/lib/data/operationdefinition_referencedfrom.js +0 -3
- package/lib/data/patient_animal.d.ts +0 -10
- package/lib/data/patient_animal.js +0 -3
- package/lib/data/plandefinition_condition.d.ts +0 -18
- package/lib/data/plandefinition_condition.js +0 -15
- package/lib/data/plandefinition_dynamicvalue.d.ts +0 -8
- package/lib/data/plandefinition_dynamicvalue.js +0 -3
- package/lib/data/plandefinition_participant.d.ts +0 -20
- package/lib/data/plandefinition_participant.js +0 -17
- package/lib/data/plandefinition_relatedaction.d.ts +0 -35
- package/lib/data/plandefinition_relatedaction.js +0 -27
- package/lib/data/plandefinition_target.d.ts +0 -17
- package/lib/data/plandefinition_target.js +0 -3
- package/lib/data/questionnaire_enablewhen.d.ts +0 -40
- package/lib/data/questionnaire_enablewhen.js +0 -23
- package/lib/data/questionnaire_initial.d.ts +0 -20
- package/lib/data/questionnaire_initial.js +0 -3
- package/lib/data/questionnaire_option.d.ts +0 -14
- package/lib/data/questionnaire_option.js +0 -3
- package/lib/data/questionnaireresponse_answer.js +0 -3
- package/lib/data/requestgroup_condition.d.ts +0 -8
- package/lib/data/requestgroup_condition.js +0 -3
- package/lib/data/requestgroup_relatedaction.d.ts +0 -35
- package/lib/data/requestgroup_relatedaction.js +0 -27
- package/lib/data/resourcelist.d.ts +0 -6
- package/lib/data/resourcelist.js +0 -4
- package/lib/data/structuremap_dependent.d.ts +0 -10
- package/lib/data/structuremap_dependent.js +0 -3
- package/lib/data/structuremap_input.d.ts +0 -19
- package/lib/data/structuremap_input.js +0 -13
- package/lib/data/structuremap_parameter.d.ts +0 -13
- package/lib/data/structuremap_parameter.js +0 -3
- package/lib/data/structuremap_rule.d.ts +0 -18
- package/lib/data/structuremap_rule.js +0 -3
- package/lib/data/structuremap_source.d.ts +0 -180
- package/lib/data/structuremap_source.js +0 -19
- package/lib/data/structuremap_target.d.ts +0 -78
- package/lib/data/structuremap_target.js +0 -61
- package/lib/data/supplyrequest_ordereditem.d.ts +0 -12
- package/lib/data/supplyrequest_ordereditem.js +0 -3
- package/lib/data/supplyrequest_requester.d.ts +0 -12
- package/lib/data/supplyrequest_requester.js +0 -3
- package/lib/data/task_requester.d.ts +0 -8
- package/lib/data/task_requester.js +0 -3
- package/lib/data/testreport_action.d.ts +0 -14
- package/lib/data/testreport_action.js +0 -3
- package/lib/data/testreport_action1.d.ts +0 -14
- package/lib/data/testreport_action1.js +0 -3
- package/lib/data/testreport_action2.d.ts +0 -10
- package/lib/data/testreport_action2.js +0 -3
- package/lib/data/testreport_assert.d.ts +0 -10
- package/lib/data/testreport_assert.js +0 -3
- package/lib/data/testreport_operation.d.ts +0 -10
- package/lib/data/testreport_operation.js +0 -3
- package/lib/data/testscript_action.d.ts +0 -9
- package/lib/data/testscript_action.js +0 -3
- package/lib/data/testscript_action1.d.ts +0 -9
- package/lib/data/testscript_action1.js +0 -3
- package/lib/data/testscript_action2.d.ts +0 -9
- package/lib/data/testscript_action2.js +0 -3
- package/lib/data/testscript_assert.d.ts +0 -101
- package/lib/data/testscript_assert.js +0 -49
- package/lib/data/testscript_capability.d.ts +0 -18
- package/lib/data/testscript_capability.js +0 -3
- package/lib/data/testscript_link.d.ts +0 -7
- package/lib/data/testscript_link.js +0 -3
- package/lib/data/testscript_operation.d.ts +0 -40
- package/lib/data/testscript_operation.js +0 -3
- package/lib/data/testscript_param.d.ts +0 -7
- package/lib/data/testscript_param.js +0 -3
- package/lib/data/testscript_param1.d.ts +0 -7
- package/lib/data/testscript_param1.js +0 -3
- package/lib/data/testscript_param2.d.ts +0 -7
- package/lib/data/testscript_param2.js +0 -3
- package/lib/data/testscript_param3.d.ts +0 -7
- package/lib/data/testscript_param3.js +0 -3
- package/lib/data/testscript_requestheader.d.ts +0 -7
- package/lib/data/testscript_requestheader.js +0 -3
- package/lib/data/testscript_rule.d.ts +0 -9
- package/lib/data/testscript_rule.js +0 -3
- package/lib/data/testscript_rule1.d.ts +0 -8
- package/lib/data/testscript_rule1.js +0 -3
- package/lib/data/testscript_rule2.d.ts +0 -8
- package/lib/data/testscript_rule2.js +0 -3
- package/lib/data/testscript_rule3.d.ts +0 -8
- package/lib/data/testscript_rule3.js +0 -3
- package/lib/data/testscript_ruleset.d.ts +0 -9
- package/lib/data/testscript_ruleset.js +0 -3
- package/lib/data/testscript_ruleset1.d.ts +0 -8
- package/lib/data/testscript_ruleset1.js +0 -3
- package/lib/data/valueset_concept.d.ts +0 -10
- package/lib/data/valueset_concept.js +0 -3
- package/lib/data/valueset_contains.d.ts +0 -20
- package/lib/data/valueset_contains.js +0 -3
- package/lib/data/valueset_designation.d.ts +0 -10
- package/lib/data/valueset_designation.js +0 -3
- package/lib/data/valueset_filter.d.ts +0 -31
- package/lib/data/valueset_filter.js +0 -27
- package/lib/data/valueset_include.d.ts +0 -15
- package/lib/data/valueset_include.js +0 -3
- package/lib/data/valueset_parameter.d.ts +0 -13
- package/lib/data/valueset_parameter.js +0 -3
- package/lib/data/visionprescription_dispense.d.ts +0 -61
- package/lib/data/visionprescription_dispense.js +0 -24
- package/lib/domainresource.d.ts +0 -14
- package/lib/domainresource.js +0 -3
- package/lib/element.d.ts +0 -7
- package/lib/element.js +0 -3
- package/lib/resource.d.ts +0 -11
- package/lib/resource.js +0 -3
- package/scripts/fix-imports-after-merge.mjs +0 -51
- package/scripts/fix-imports-pass2.mjs +0 -53
- package/scripts/generate-fixtures.js +0 -116
- package/scripts/verify-types.mjs +0 -139
package/README.md
CHANGED
|
@@ -46,3 +46,82 @@ pnpm install # at repo root first if needed
|
|
|
46
46
|
pnpm run build
|
|
47
47
|
pnpm run test
|
|
48
48
|
```
|
|
49
|
+
|
|
50
|
+
## Authoring OpenHI StructureDefinitions (FSH)
|
|
51
|
+
|
|
52
|
+
> Status: experimental — `experiment/fhir-types-codegen`, issue [#830](https://github.com/codedrifters/openhi/issues/830). See [ADR 2026-04-20-01](../../../sites/www-docs/content/architecture/adr/2026-04-20-01-fhir-types-codegen-from-structuredefinitions.md).
|
|
53
|
+
|
|
54
|
+
OpenHI-owned FHIR types — extensions, control-plane resources (User, Tenant, Workspace, Membership, RoleAssignment, Role), and future data-plane profiles — are authored as [FSH](https://build.fhir.org/ig/HL7/fhir-shorthand/) and compiled to StructureDefinition JSON by [Sushi](https://fshschool.org/docs/sushi/). The same generator that consumes `hl7.fhir.r4.core` also consumes OpenHI SDs, so every OpenHI-authored type flows through one pipeline (ADR §2).
|
|
55
|
+
|
|
56
|
+
See [`fsh/README.md`](fsh/README.md) for detailed authoring conventions — which FSH keyword to use for each shape, the SUSHI `Resource:` parent constraint, and the PascalCase `Id:` invariant the IR builder relies on.
|
|
57
|
+
|
|
58
|
+
### Canonical URL scheme
|
|
59
|
+
|
|
60
|
+
Every OpenHI-authored StructureDefinition resolves to:
|
|
61
|
+
|
|
62
|
+
```
|
|
63
|
+
https://openhi.org/fhir/StructureDefinition/{id}
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
This is set once in [`fsh/sushi-config.yaml`](fsh/sushi-config.yaml) via `canonical: https://openhi.org/fhir` — Sushi appends `/StructureDefinition/{id}` to produce each SD's URL. Individual FSH files only declare `Id:`.
|
|
67
|
+
|
|
68
|
+
### Repository layout
|
|
69
|
+
|
|
70
|
+
```
|
|
71
|
+
packages/@openhi/types/
|
|
72
|
+
├── fsh/
|
|
73
|
+
│ ├── sushi-config.yaml # canonical URL + Sushi knobs
|
|
74
|
+
│ ├── input/fsh/
|
|
75
|
+
│ │ ├── *.fsh # data-plane extensions (authored)
|
|
76
|
+
│ │ └── control-plane/*.fsh # control-plane resources + terminology
|
|
77
|
+
│ └── fsh-generated/ # Sushi output (gitignored)
|
|
78
|
+
├── sds/openhi/
|
|
79
|
+
│ ├── data-plane/*.json # staged for generator (gitignored)
|
|
80
|
+
│ └── control-plane/*.json # staged for generator (gitignored)
|
|
81
|
+
└── src/
|
|
82
|
+
├── data/ # emitted FHIR + extension accessors
|
|
83
|
+
└── control/ # emitted control-plane resources
|
|
84
|
+
# (committed — regenerated on every build;
|
|
85
|
+
# the drift check in CI fails if hand-edited)
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Authoring an extension
|
|
89
|
+
|
|
90
|
+
Single-file example — see [`fsh/input/fsh/PreferredPronouns.fsh`](fsh/input/fsh/PreferredPronouns.fsh):
|
|
91
|
+
|
|
92
|
+
```fsh
|
|
93
|
+
Extension: PreferredPronouns
|
|
94
|
+
Id: preferred-pronouns
|
|
95
|
+
Title: "Preferred Pronouns"
|
|
96
|
+
Description: "A patient's preferred pronouns (free text)."
|
|
97
|
+
Context: Patient
|
|
98
|
+
* value[x] only string
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
The generator emits an **accessor module** per ADR §5 — `getPreferredPronouns(patient)` / `setPreferredPronouns(patient, "they/them")` — rather than a subtype of `Patient`. Extensions with `max: "*"` get `get` / `add` / `remove` variants instead. The base `Patient` type stays wire-faithful.
|
|
102
|
+
|
|
103
|
+
### Authoring a specialization
|
|
104
|
+
|
|
105
|
+
Specializations — new resources, or refinements of a FHIR base like `Person` → `User` — use FSH's `Logical:` or `Resource:` keyword with a `Parent:` line so Sushi emits `derivation: specialization` (the `Profile:` keyword would produce `derivation: constraint` instead, which the generator skips). Control-plane files live under `fsh/input/fsh/control-plane/`.
|
|
106
|
+
|
|
107
|
+
`Resource:` is for net-new FHIR resources (Membership, Role, RoleAssignment) and only accepts `Resource` or `DomainResource` as a parent — a SUSHI constraint, not a FHIR one. To specialize a concrete FHIR resource (e.g. `User` extending `Person`) with a different `resourceType` literal, use `Logical:` instead:
|
|
108
|
+
|
|
109
|
+
```fsh
|
|
110
|
+
Logical: User
|
|
111
|
+
Parent: Person
|
|
112
|
+
Id: User
|
|
113
|
+
Title: "User"
|
|
114
|
+
Description: "OHI control plane resource with Person shape and resourceType \"User\"."
|
|
115
|
+
* currentTenant 1..1 Reference(Organization) "Tenant the user is currently acting in"
|
|
116
|
+
* currentWorkspace 1..1 Reference(Organization) "Workspace within the tenant"
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
The generator treats Logical SDs with a FHIR-resource base as resources-with-`resourceType`-override: the emitted TypeScript is `export type User = Omit<Person, "resourceType"> & { resourceType: "User"; ... }` (ADR §2 intersection-type form). `Id: User` (PascalCase matching the name) is required — Sushi prefixes every snapshot element's path with the id, and the IR builder resolves the root element by `path === sd.name`. See [`fsh/README.md`](fsh/README.md) for the full guide.
|
|
120
|
+
|
|
121
|
+
### Regenerate
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
pnpm --filter @openhi/types gen
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
This runs Sushi (with `-s` so specialization SDs get a snapshot), partitions the resulting StructureDefinition / CodeSystem / ValueSet JSON into `sds/openhi/data-plane/` and `sds/openhi/control-plane/`, and then runs `@openhi/types-generator` to write TypeScript types, Zod schemas, and extension accessor modules into both `src/data/` and `src/control/`. The same script runs in `pre-compile`, so the CI build fails (via the existing repo-mutation check) if any emitted file was hand-edited or an upstream SD change wasn't re-committed. The whole pipeline is under 30 seconds cold and a few hundred milliseconds warm.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const CONTROL_PLANE_ROLE_CODE: {
|
|
3
|
+
readonly SYSTEM_ADMIN: "system-admin";
|
|
4
|
+
readonly TENANT_ADMIN: "tenant-admin";
|
|
5
|
+
readonly TENANT_USER: "tenant-user";
|
|
6
|
+
};
|
|
7
|
+
export type ControlPlaneRoleCode = (typeof CONTROL_PLANE_ROLE_CODE)[keyof typeof CONTROL_PLANE_ROLE_CODE];
|
|
8
|
+
export declare const controlPlaneRoleCodeSchema: z.ZodEnum<["system-admin", "tenant-admin", "tenant-user"]>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// THIS FILE IS GENERATED by @openhi/types-generator.
|
|
3
|
+
// Do not edit. Edit sds/ or generator-config.yaml and regenerate.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.controlPlaneRoleCodeSchema = exports.CONTROL_PLANE_ROLE_CODE = void 0;
|
|
6
|
+
const zod_1 = require("zod");
|
|
7
|
+
exports.CONTROL_PLANE_ROLE_CODE = {
|
|
8
|
+
SYSTEM_ADMIN: "system-admin",
|
|
9
|
+
TENANT_ADMIN: "tenant-admin",
|
|
10
|
+
TENANT_USER: "tenant-user",
|
|
11
|
+
};
|
|
12
|
+
exports.controlPlaneRoleCodeSchema = zod_1.z.enum([
|
|
13
|
+
"system-admin",
|
|
14
|
+
"tenant-admin",
|
|
15
|
+
"tenant-user",
|
|
16
|
+
]);
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnRzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbnRyb2wvY29uc3RhbnRzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxxREFBcUQ7QUFDckQsa0VBQWtFOzs7QUFFbEUsNkJBQXdCO0FBRVgsUUFBQSx1QkFBdUIsR0FBRztJQUNyQyxZQUFZLEVBQUUsY0FBYztJQUM1QixZQUFZLEVBQUUsY0FBYztJQUM1QixXQUFXLEVBQUUsYUFBYTtDQUNsQixDQUFDO0FBR0UsUUFBQSwwQkFBMEIsR0FBRyxPQUFDLENBQUMsSUFBSSxDQUFDO0lBQy9DLGNBQWM7SUFDZCxjQUFjO0lBQ2QsYUFBYTtDQUNkLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8vIFRISVMgRklMRSBJUyBHRU5FUkFURUQgYnkgQG9wZW5oaS90eXBlcy1nZW5lcmF0b3IuXG4vLyBEbyBub3QgZWRpdC4gRWRpdCBzZHMvIG9yIGdlbmVyYXRvci1jb25maWcueWFtbCBhbmQgcmVnZW5lcmF0ZS5cblxuaW1wb3J0IHsgeiB9IGZyb20gXCJ6b2RcIjtcblxuZXhwb3J0IGNvbnN0IENPTlRST0xfUExBTkVfUk9MRV9DT0RFID0ge1xuICBTWVNURU1fQURNSU46IFwic3lzdGVtLWFkbWluXCIsXG4gIFRFTkFOVF9BRE1JTjogXCJ0ZW5hbnQtYWRtaW5cIixcbiAgVEVOQU5UX1VTRVI6IFwidGVuYW50LXVzZXJcIixcbn0gYXMgY29uc3Q7XG5leHBvcnQgdHlwZSBDb250cm9sUGxhbmVSb2xlQ29kZSA9XG4gICh0eXBlb2YgQ09OVFJPTF9QTEFORV9ST0xFX0NPREUpW2tleW9mIHR5cGVvZiBDT05UUk9MX1BMQU5FX1JPTEVfQ09ERV07XG5leHBvcnQgY29uc3QgY29udHJvbFBsYW5lUm9sZUNvZGVTY2hlbWEgPSB6LmVudW0oW1xuICBcInN5c3RlbS1hZG1pblwiLFxuICBcInRlbmFudC1hZG1pblwiLFxuICBcInRlbmFudC11c2VyXCIsXG5dKTtcbiJdfQ==
|
package/lib/control/index.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
* @openhi/types — Control plane types (OHI).
|
|
3
|
-
*/
|
|
1
|
+
export * from "./constants";
|
|
4
2
|
export * from "./membership";
|
|
5
3
|
export * from "./role";
|
|
6
|
-
export * from "./role-codes";
|
|
7
4
|
export * from "./roleassignment";
|
|
8
5
|
export * from "./tenant";
|
|
9
6
|
export * from "./user";
|
package/lib/control/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// THIS FILE IS GENERATED by @openhi/types-generator.
|
|
3
|
+
// Do not edit. Edit sds/ or generator-config.yaml and regenerate.
|
|
2
4
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
5
|
if (k2 === undefined) k2 = k;
|
|
4
6
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -14,14 +16,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
16
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
17
|
};
|
|
16
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
* @openhi/types — Control plane types (OHI).
|
|
19
|
-
*/
|
|
19
|
+
__exportStar(require("./constants"), exports);
|
|
20
20
|
__exportStar(require("./membership"), exports);
|
|
21
21
|
__exportStar(require("./role"), exports);
|
|
22
|
-
__exportStar(require("./role-codes"), exports);
|
|
23
22
|
__exportStar(require("./roleassignment"), exports);
|
|
24
23
|
__exportStar(require("./tenant"), exports);
|
|
25
24
|
__exportStar(require("./user"), exports);
|
|
26
25
|
__exportStar(require("./workspace"), exports);
|
|
27
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
26
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY29udHJvbC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEscURBQXFEO0FBQ3JELGtFQUFrRTs7Ozs7Ozs7Ozs7Ozs7OztBQUVsRSw4Q0FBNEI7QUFDNUIsK0NBQTZCO0FBQzdCLHlDQUF1QjtBQUN2QixtREFBaUM7QUFDakMsMkNBQXlCO0FBQ3pCLHlDQUF1QjtBQUN2Qiw4Q0FBNEIiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBUSElTIEZJTEUgSVMgR0VORVJBVEVEIGJ5IEBvcGVuaGkvdHlwZXMtZ2VuZXJhdG9yLlxuLy8gRG8gbm90IGVkaXQuIEVkaXQgc2RzLyBvciBnZW5lcmF0b3ItY29uZmlnLnlhbWwgYW5kIHJlZ2VuZXJhdGUuXG5cbmV4cG9ydCAqIGZyb20gXCIuL2NvbnN0YW50c1wiO1xuZXhwb3J0ICogZnJvbSBcIi4vbWVtYmVyc2hpcFwiO1xuZXhwb3J0ICogZnJvbSBcIi4vcm9sZVwiO1xuZXhwb3J0ICogZnJvbSBcIi4vcm9sZWFzc2lnbm1lbnRcIjtcbmV4cG9ydCAqIGZyb20gXCIuL3RlbmFudFwiO1xuZXhwb3J0ICogZnJvbSBcIi4vdXNlclwiO1xuZXhwb3J0ICogZnJvbSBcIi4vd29ya3NwYWNlXCI7XG4iXX0=
|
|
@@ -1,23 +1,12 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { DomainResource } from "../data/domainresource";
|
|
1
3
|
import type { Period } from "../data/period";
|
|
2
4
|
import type { Reference } from "../data/reference";
|
|
3
|
-
import type { DomainResource } from "../domainresource";
|
|
4
|
-
/**
|
|
5
|
-
* Membership: OHI control plane resource linking a User to a Tenant (and optionally Workspace).
|
|
6
|
-
* One resource per (user, tenant) or (user, workspace). Answers "this user is allowed to
|
|
7
|
-
* operate in this tenant/workspace." Optional extension linked-data-identity (0..1) may
|
|
8
|
-
* link to a data-plane Practitioner | Patient | Person in this context.
|
|
9
|
-
*
|
|
10
|
-
* @see ADR 2026-03-13-02 — Control plane roles and User–Tenant–Workspace linkage
|
|
11
|
-
*/
|
|
12
5
|
export interface Membership extends DomainResource {
|
|
13
|
-
/** This is a Membership resource (OHI control plane). */
|
|
14
6
|
resourceType: "Membership";
|
|
15
|
-
/** User who is a member (required). Reference to User. */
|
|
16
7
|
user: Reference;
|
|
17
|
-
/** Tenant in which the user has membership (required). Reference to Tenant. */
|
|
18
8
|
tenant: Reference;
|
|
19
|
-
/** Workspace within the tenant, if membership is workspace-scoped (0..1). Reference to Workspace. */
|
|
20
9
|
workspace?: Reference;
|
|
21
|
-
/** Period during which the membership is valid (1..1). Validity is derived exclusively from this period. */
|
|
22
10
|
period: Period;
|
|
23
11
|
}
|
|
12
|
+
export declare const membershipSchema: z.ZodType<Membership>;
|
|
@@ -1,3 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// THIS FILE IS GENERATED by @openhi/types-generator.
|
|
3
|
+
// Do not edit. Edit sds/ or generator-config.yaml and regenerate.
|
|
2
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
5
|
+
exports.membershipSchema = void 0;
|
|
6
|
+
const zod_1 = require("zod");
|
|
7
|
+
const domainresource_1 = require("../data/domainresource");
|
|
8
|
+
const period_1 = require("../data/period");
|
|
9
|
+
const reference_1 = require("../data/reference");
|
|
10
|
+
exports.membershipSchema = domainresource_1.domainResourceSchema
|
|
11
|
+
.extend({
|
|
12
|
+
resourceType: zod_1.z.literal("Membership"),
|
|
13
|
+
user: reference_1.referenceSchema,
|
|
14
|
+
tenant: reference_1.referenceSchema,
|
|
15
|
+
workspace: reference_1.referenceSchema.optional(),
|
|
16
|
+
period: period_1.periodSchema,
|
|
17
|
+
})
|
|
18
|
+
.passthrough();
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWVtYmVyc2hpcC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb250cm9sL21lbWJlcnNoaXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHFEQUFxRDtBQUNyRCxrRUFBa0U7OztBQUVsRSw2QkFBd0I7QUFFeEIsMkRBQThEO0FBRTlELDJDQUE4QztBQUU5QyxpREFBb0Q7QUFVdkMsUUFBQSxnQkFBZ0IsR0FBMEIscUNBQW9CO0tBQ3hFLE1BQU0sQ0FBQztJQUNOLFlBQVksRUFBRSxPQUFDLENBQUMsT0FBTyxDQUFDLFlBQVksQ0FBQztJQUNyQyxJQUFJLEVBQUUsMkJBQWU7SUFDckIsTUFBTSxFQUFFLDJCQUFlO0lBQ3ZCLFNBQVMsRUFBRSwyQkFBZSxDQUFDLFFBQVEsRUFBRTtJQUNyQyxNQUFNLEVBQUUscUJBQVk7Q0FDckIsQ0FBQztLQUNELFdBQVcsRUFBc0MsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8vIFRISVMgRklMRSBJUyBHRU5FUkFURUQgYnkgQG9wZW5oaS90eXBlcy1nZ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FxuICAgIHRlbmFudDogcmVmZXJlbmNlU2NoZW1hLFxuICAgIHdvcmtzcGFjZTogcmVmZXJlbmNlU2NoZW1hLm9wdGlvbmFsKCksXG4gICAgcGVyaW9kOiBwZXJpb2RTY2hlbWEsXG4gIH0pXG4gIC5wYXNzdGhyb3VnaCgpIGFzIHVua25vd24gYXMgei5ab2RUeXBlPE1lbWJlcnNoaXA+O1xuIl19
|
package/lib/control/role.d.ts
CHANGED
|
@@ -1,22 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { DomainResource } from "../domainresource";
|
|
3
|
-
|
|
4
|
-
* Role: OHI control plane resource representing a platform-wide role.
|
|
5
|
-
* RoleAssignment references Role to assign a role to a User in a Tenant/Workspace context.
|
|
6
|
-
* Initial roles: Tenant Admin, Tenant User, System Admin (see CONTROL_PLANE_ROLE in ./role-codes).
|
|
7
|
-
*
|
|
8
|
-
* @see ADR 2026-03-13-02 — Control plane roles and User–Tenant–Workspace linkage
|
|
9
|
-
*/
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { DomainResource } from "../data/domainresource";
|
|
3
|
+
import type { ControlPlaneRoleCode } from "./constants";
|
|
10
4
|
export interface Role extends DomainResource {
|
|
11
|
-
/** This is a Role resource (OHI control plane). */
|
|
12
5
|
resourceType: "Role";
|
|
13
|
-
/**
|
|
14
|
-
* Role code (required). Must be a value from CONTROL_PLANE_ROLE (see ./role-codes):
|
|
15
|
-
* tenant-admin (Tenant Admin), tenant-user (Tenant User), system-admin (System Admin).
|
|
16
|
-
*/
|
|
17
6
|
code: ControlPlaneRoleCode;
|
|
18
|
-
/** Human-readable display for the role. (0..1) */
|
|
19
7
|
display?: string;
|
|
20
|
-
/** Whether this role definition is active. (0..1) */
|
|
21
8
|
active?: boolean;
|
|
22
9
|
}
|
|
10
|
+
export declare const roleSchema: z.ZodType<Role>;
|
package/lib/control/role.js
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// THIS FILE IS GENERATED by @openhi/types-generator.
|
|
3
|
+
// Do not edit. Edit sds/ or generator-config.yaml and regenerate.
|
|
2
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
5
|
+
exports.roleSchema = void 0;
|
|
6
|
+
const zod_1 = require("zod");
|
|
7
|
+
const domainresource_1 = require("../data/domainresource");
|
|
8
|
+
const constants_1 = require("./constants");
|
|
9
|
+
exports.roleSchema = domainresource_1.domainResourceSchema
|
|
10
|
+
.extend({
|
|
11
|
+
resourceType: zod_1.z.literal("Role"),
|
|
12
|
+
code: constants_1.controlPlaneRoleCodeSchema,
|
|
13
|
+
display: zod_1.z.string().optional(),
|
|
14
|
+
active: zod_1.z.boolean().optional(),
|
|
15
|
+
})
|
|
16
|
+
.passthrough();
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm9sZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb250cm9sL3JvbGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLHFEQUFxRDtBQUNyRCxrRUFBa0U7OztBQUVsRSw2QkFBd0I7QUFFeEIsMkRBQThEO0FBRTlELDJDQUF5RDtBQVM1QyxRQUFBLFVBQVUsR0FBb0IscUNBQW9CO0tBQzVELE1BQU0sQ0FBQztJQUNOLFlBQVksRUFBRSxPQUFDLENBQUMsT0FBTyxDQUFDLE1BQU0sQ0FBQztJQUMvQixJQUFJLEVBQUUsc0NBQTBCO0lBQ2hDLE9BQU8sRUFBRSxPQUFDLENBQUMsTUFBTSxFQUFFLENBQUMsUUFBUSxFQUFFO0lBQzlCLE1BQU0sRUFBRSxPQUFDLENBQUMsT0FBTyxFQUFFLENBQUMsUUFBUSxFQUFFO0NBQy9CLENBQUM7S0FDRCxXQUFXLEVBQWdDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvLyBUSElTIEZJTEUgSVM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biBhcyB6LlpvZFR5cGU8Um9sZT47XG4iXX0=
|
|
@@ -1,24 +1,13 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { DomainResource } from "../data/domainresource";
|
|
1
3
|
import type { Period } from "../data/period";
|
|
2
4
|
import type { Reference } from "../data/reference";
|
|
3
|
-
import type { DomainResource } from "../domainresource";
|
|
4
|
-
/**
|
|
5
|
-
* RoleAssignment: OHI control plane resource assigning a Role to a User in a Tenant
|
|
6
|
-
* (and optionally Workspace) context. Same pattern as FHIR PractitionerRole (subject +
|
|
7
|
-
* scope + role) but with User, Tenant/Workspace, and Reference to Role.
|
|
8
|
-
*
|
|
9
|
-
* @see ADR 2026-03-13-02 — Control plane roles and User–Tenant–Workspace linkage
|
|
10
|
-
*/
|
|
11
5
|
export interface RoleAssignment extends DomainResource {
|
|
12
|
-
/** This is a RoleAssignment resource (OHI control plane). */
|
|
13
6
|
resourceType: "RoleAssignment";
|
|
14
|
-
/** User who is assigned the role (required). Reference to User. */
|
|
15
7
|
user: Reference;
|
|
16
|
-
/** Role assigned (required). Reference to Role. */
|
|
17
8
|
role: Reference;
|
|
18
|
-
/** Tenant in which the role applies (required). Reference to Tenant. */
|
|
19
9
|
tenant: Reference;
|
|
20
|
-
/** Workspace within the tenant, if assignment is workspace-scoped (0..1). Reference to Workspace. */
|
|
21
10
|
workspace?: Reference;
|
|
22
|
-
/** Period during which the assignment is valid (1..1). Validity is derived exclusively from this period. */
|
|
23
11
|
period: Period;
|
|
24
12
|
}
|
|
13
|
+
export declare const roleAssignmentSchema: z.ZodType<RoleAssignment>;
|
|
@@ -1,3 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// THIS FILE IS GENERATED by @openhi/types-generator.
|
|
3
|
+
// Do not edit. Edit sds/ or generator-config.yaml and regenerate.
|
|
2
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
5
|
+
exports.roleAssignmentSchema = void 0;
|
|
6
|
+
const zod_1 = require("zod");
|
|
7
|
+
const domainresource_1 = require("../data/domainresource");
|
|
8
|
+
const period_1 = require("../data/period");
|
|
9
|
+
const reference_1 = require("../data/reference");
|
|
10
|
+
exports.roleAssignmentSchema = domainresource_1.domainResourceSchema
|
|
11
|
+
.extend({
|
|
12
|
+
resourceType: zod_1.z.literal("RoleAssignment"),
|
|
13
|
+
user: reference_1.referenceSchema,
|
|
14
|
+
role: reference_1.referenceSchema,
|
|
15
|
+
tenant: reference_1.referenceSchema,
|
|
16
|
+
workspace: reference_1.referenceSchema.optional(),
|
|
17
|
+
period: period_1.periodSchema,
|
|
18
|
+
})
|
|
19
|
+
.passthrough();
|
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicm9sZWFzc2lnbm1lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY29udHJvbC9yb2xlYXNzaWdubWVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEscURBQXFEO0FBQ3JELGtFQUFrRTs7O0FBRWxFLDZCQUF3QjtBQUV4QiwyREFBOEQ7QUFFOUQsMkNBQThDO0FBRTlDLGlEQUFvRDtBQVd2QyxRQUFBLG9CQUFvQixHQUMvQixxQ0FBb0I7S0FDakIsTUFBTSxDQUFDO0lBQ04sWUFBWSxFQUFFLE9BQUMsQ0FBQyxPQUFPLENBQUMsZ0JBQWdCLENBQUM7SUFDekMsSUFBSSxFQUFFLDJCQUFlO0lBQ3JCLElBQUksRUFBRSwyQkFBZTtJQUNyQixNQUFNLEVBQUUsMkJBQWU7SUFDdkIsU0FBUyxFQUFFLDJCQUFlLENBQUMsUUFBUSxFQUFFO0lBQ3JDLE1BQU0sRUFBRSxxQkFBWTtDQUNyQixDQUFDO0tBQ0QsV0FBVyxFQUEwQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLy8gVEhJUyBGSUxFIElTIEdFTkVSQVRFRCBieSBAb3B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0ZXJhbChcIlJvbGVBc3NpZ25tZW50XCIpLFxuICAgICAgdXNlcjogcmVmZXJlbmNlU2NoZW1hLFxuICAgICAgcm9sZTogcmVmZXJlbmNlU2NoZW1hLFxuICAgICAgdGVuYW50OiByZWZlcmVuY2VTY2hlbWEsXG4gICAgICB3b3Jrc3BhY2U6IHJlZmVyZW5jZVNjaGVtYS5vcHRpb25hbCgpLFxuICAgICAgcGVyaW9kOiBwZXJpb2RTY2hlbWEsXG4gICAgfSlcbiAgICAucGFzc3Rocm91Z2goKSBhcyB1bmtub3duIGFzIHouWm9kVHlwZTxSb2xlQXNzaWdubWVudD47XG4iXX0=
|
package/lib/control/tenant.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
1
2
|
import type { Organization } from "../data/organization";
|
|
2
|
-
/** Tenant: OHI control plane resource with Organization shape and resourceType "Tenant". */
|
|
3
3
|
export type Tenant = Omit<Organization, "resourceType"> & {
|
|
4
|
-
/** This is a Tenant resource (OHI control plane). */
|
|
5
4
|
resourceType: "Tenant";
|
|
6
5
|
};
|
|
6
|
+
export declare const tenantSchema: z.ZodType<Tenant>;
|
package/lib/control/tenant.js
CHANGED
|
@@ -1,3 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// THIS FILE IS GENERATED by @openhi/types-generator.
|
|
3
|
+
// Do not edit. Edit sds/ or generator-config.yaml and regenerate.
|
|
2
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
5
|
+
exports.tenantSchema = void 0;
|
|
6
|
+
const zod_1 = require("zod");
|
|
7
|
+
const address_1 = require("../data/address");
|
|
8
|
+
const codeableconcept_1 = require("../data/codeableconcept");
|
|
9
|
+
const contactpoint_1 = require("../data/contactpoint");
|
|
10
|
+
const extension_1 = require("../data/extension");
|
|
11
|
+
const identifier_1 = require("../data/identifier");
|
|
12
|
+
const meta_1 = require("../data/meta");
|
|
13
|
+
const narrative_1 = require("../data/narrative");
|
|
14
|
+
const organization_contact_1 = require("../data/organization_contact");
|
|
15
|
+
const reference_1 = require("../data/reference");
|
|
16
|
+
const resource_1 = require("../data/resource");
|
|
17
|
+
exports.tenantSchema = zod_1.z
|
|
18
|
+
.object({
|
|
19
|
+
resourceType: zod_1.z.literal("Tenant"),
|
|
20
|
+
identifier: zod_1.z.array(identifier_1.identifierSchema).optional(),
|
|
21
|
+
active: zod_1.z.boolean().optional(),
|
|
22
|
+
type: zod_1.z.array(codeableconcept_1.codeableConceptSchema).optional(),
|
|
23
|
+
name: zod_1.z.string().optional(),
|
|
24
|
+
alias: zod_1.z.array(zod_1.z.string()).optional(),
|
|
25
|
+
telecom: zod_1.z.array(contactpoint_1.contactPointSchema).optional(),
|
|
26
|
+
address: zod_1.z.array(address_1.addressSchema).optional(),
|
|
27
|
+
partOf: reference_1.referenceSchema.optional(),
|
|
28
|
+
contact: zod_1.z.array(organization_contact_1.organizationContactSchema).optional(),
|
|
29
|
+
endpoint: zod_1.z.array(reference_1.referenceSchema).optional(),
|
|
30
|
+
text: narrative_1.narrativeSchema.optional(),
|
|
31
|
+
contained: zod_1.z.array(resource_1.resourceSchema).optional(),
|
|
32
|
+
extension: zod_1.z.array(extension_1.extensionSchema).optional(),
|
|
33
|
+
modifierExtension: zod_1.z.array(extension_1.extensionSchema).optional(),
|
|
34
|
+
id: zod_1.z.string().optional(),
|
|
35
|
+
meta: meta_1.metaSchema.optional(),
|
|
36
|
+
implicitRules: zod_1.z.string().optional(),
|
|
37
|
+
language: zod_1.z.string().optional(),
|
|
38
|
+
})
|
|
39
|
+
.passthrough();
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVuYW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbnRyb2wvdGVuYW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxxREFBcUQ7QUFDckQsa0V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uIl19
|
package/lib/control/user.d.ts
CHANGED
|
@@ -1,20 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
1
2
|
import type { Person } from "../data/person";
|
|
2
3
|
import type { Reference } from "../data/reference";
|
|
3
|
-
/**
|
|
4
|
-
* User: OHI control plane resource with Person shape and resourceType "User".
|
|
5
|
-
* Identity linkage is via User.identifier (e.g. Cognito sub); association with
|
|
6
|
-
* tenants and workspaces is through Membership and RoleAssignment.
|
|
7
|
-
* currentTenant and currentWorkspace store the user's active context; only one
|
|
8
|
-
* device may be authenticated per user at a time (login on new device logs out others).
|
|
9
|
-
*
|
|
10
|
-
* @see ADR 2026-03-11-01 — User type definition, FHIR alignment, and data layer
|
|
11
|
-
* @see ADR 2026-03-17-01 — Session management, tenant switcher, JWT injection from User
|
|
12
|
-
*/
|
|
13
4
|
export type User = Omit<Person, "resourceType"> & {
|
|
14
|
-
/** This is a User resource (OHI control plane). */
|
|
15
5
|
resourceType: "User";
|
|
16
|
-
/** Tenant the user is currently acting in (required). Reference to Tenant. Every tenant has at least one workspace. */
|
|
17
6
|
currentTenant: Reference;
|
|
18
|
-
/** Workspace within the tenant the user is currently acting in (required). Reference to Workspace. */
|
|
19
7
|
currentWorkspace: Reference;
|
|
20
8
|
};
|
|
9
|
+
export declare const userSchema: z.ZodType<User>;
|
package/lib/control/user.js
CHANGED
|
@@ -1,3 +1,44 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// THIS FILE IS GENERATED by @openhi/types-generator.
|
|
3
|
+
// Do not edit. Edit sds/ or generator-config.yaml and regenerate.
|
|
2
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
5
|
+
exports.userSchema = void 0;
|
|
6
|
+
const zod_1 = require("zod");
|
|
7
|
+
const address_1 = require("../data/address");
|
|
8
|
+
const attachment_1 = require("../data/attachment");
|
|
9
|
+
const constants_1 = require("../data/constants");
|
|
10
|
+
const contactpoint_1 = require("../data/contactpoint");
|
|
11
|
+
const extension_1 = require("../data/extension");
|
|
12
|
+
const humanname_1 = require("../data/humanname");
|
|
13
|
+
const identifier_1 = require("../data/identifier");
|
|
14
|
+
const meta_1 = require("../data/meta");
|
|
15
|
+
const narrative_1 = require("../data/narrative");
|
|
16
|
+
const person_link_1 = require("../data/person_link");
|
|
17
|
+
const reference_1 = require("../data/reference");
|
|
18
|
+
const resource_1 = require("../data/resource");
|
|
19
|
+
exports.userSchema = zod_1.z
|
|
20
|
+
.object({
|
|
21
|
+
resourceType: zod_1.z.literal("User"),
|
|
22
|
+
currentTenant: reference_1.referenceSchema,
|
|
23
|
+
currentWorkspace: reference_1.referenceSchema,
|
|
24
|
+
identifier: zod_1.z.array(identifier_1.identifierSchema).optional(),
|
|
25
|
+
name: zod_1.z.array(humanname_1.humanNameSchema).optional(),
|
|
26
|
+
telecom: zod_1.z.array(contactpoint_1.contactPointSchema).optional(),
|
|
27
|
+
gender: constants_1.administrativeGenderSchema.optional(),
|
|
28
|
+
birthDate: zod_1.z.string().optional(),
|
|
29
|
+
address: zod_1.z.array(address_1.addressSchema).optional(),
|
|
30
|
+
photo: attachment_1.attachmentSchema.optional(),
|
|
31
|
+
managingOrganization: reference_1.referenceSchema.optional(),
|
|
32
|
+
active: zod_1.z.boolean().optional(),
|
|
33
|
+
link: zod_1.z.array(person_link_1.personLinkSchema).optional(),
|
|
34
|
+
text: narrative_1.narrativeSchema.optional(),
|
|
35
|
+
contained: zod_1.z.array(resource_1.resourceSchema).optional(),
|
|
36
|
+
extension: zod_1.z.array(extension_1.extensionSchema).optional(),
|
|
37
|
+
modifierExtension: zod_1.z.array(extension_1.extensionSchema).optional(),
|
|
38
|
+
id: zod_1.z.string().optional(),
|
|
39
|
+
meta: meta_1.metaSchema.optional(),
|
|
40
|
+
implicitRules: zod_1.z.string().optional(),
|
|
41
|
+
language: zod_1.z.string().optional(),
|
|
42
|
+
})
|
|
43
|
+
.passthrough();
|
|
44
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9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ZVNjaGVtYS5vcHRpb25hbCgpLFxuICAgIGNvbnRhaW5lZDogei5hcnJheShyZXNvdXJjZVNjaGVtYSkub3B0aW9uYWwoKSxcbiAgICBleHRlbnNpb246IHouYXJyYXkoZXh0ZW5zaW9uU2NoZW1hKS5vcHRpb25hbCgpLFxuICAgIG1vZGlmaWVyRXh0ZW5zaW9uOiB6LmFycmF5KGV4dGVuc2lvblNjaGVtYSkub3B0aW9uYWwoKSxcbiAgICBpZDogei5zdHJpbmcoKS5vcHRpb25hbCgpLFxuICAgIG1ldGE6IG1ldGFTY2hlbWEub3B0aW9uYWwoKSxcbiAgICBpbXBsaWNpdFJ1bGVzOiB6LnN0cmluZygpLm9wdGlvbmFsKCksXG4gICAgbGFuZ3VhZ2U6IHouc3RyaW5nKCkub3B0aW9uYWwoKSxcbiAgfSlcbiAgLnBhc3N0aHJvdWdoKCkgYXMgdW5rbm93biBhcyB6LlpvZFR5cGU8VXNlcj47XG4iXX0=
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
1
2
|
import type { Organization } from "../data/organization";
|
|
2
3
|
import type { Reference } from "../data/reference";
|
|
3
|
-
/**
|
|
4
|
-
* Workspace: OHI control plane resource with Organization shape and resourceType "Workspace".
|
|
5
|
-
* Each workspace exists within exactly one tenant; tenant reference is required.
|
|
6
|
-
*/
|
|
7
4
|
export type Workspace = Omit<Organization, "resourceType"> & {
|
|
8
|
-
/** This is a Workspace resource (OHI control plane). */
|
|
9
5
|
resourceType: "Workspace";
|
|
10
|
-
/** Tenant that contains this workspace (required). Each workspace exists within exactly one tenant. */
|
|
11
6
|
tenant: Reference;
|
|
12
7
|
};
|
|
8
|
+
export declare const workspaceSchema: z.ZodType<Workspace>;
|
package/lib/control/workspace.js
CHANGED
|
@@ -1,3 +1,41 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
// THIS FILE IS GENERATED by @openhi/types-generator.
|
|
3
|
+
// Do not edit. Edit sds/ or generator-config.yaml and regenerate.
|
|
2
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
5
|
+
exports.workspaceSchema = void 0;
|
|
6
|
+
const zod_1 = require("zod");
|
|
7
|
+
const address_1 = require("../data/address");
|
|
8
|
+
const codeableconcept_1 = require("../data/codeableconcept");
|
|
9
|
+
const contactpoint_1 = require("../data/contactpoint");
|
|
10
|
+
const extension_1 = require("../data/extension");
|
|
11
|
+
const identifier_1 = require("../data/identifier");
|
|
12
|
+
const meta_1 = require("../data/meta");
|
|
13
|
+
const narrative_1 = require("../data/narrative");
|
|
14
|
+
const organization_contact_1 = require("../data/organization_contact");
|
|
15
|
+
const reference_1 = require("../data/reference");
|
|
16
|
+
const resource_1 = require("../data/resource");
|
|
17
|
+
exports.workspaceSchema = zod_1.z
|
|
18
|
+
.object({
|
|
19
|
+
resourceType: zod_1.z.literal("Workspace"),
|
|
20
|
+
tenant: reference_1.referenceSchema,
|
|
21
|
+
identifier: zod_1.z.array(identifier_1.identifierSchema).optional(),
|
|
22
|
+
active: zod_1.z.boolean().optional(),
|
|
23
|
+
type: zod_1.z.array(codeableconcept_1.codeableConceptSchema).optional(),
|
|
24
|
+
name: zod_1.z.string().optional(),
|
|
25
|
+
alias: zod_1.z.array(zod_1.z.string()).optional(),
|
|
26
|
+
telecom: zod_1.z.array(contactpoint_1.contactPointSchema).optional(),
|
|
27
|
+
address: zod_1.z.array(address_1.addressSchema).optional(),
|
|
28
|
+
partOf: reference_1.referenceSchema.optional(),
|
|
29
|
+
contact: zod_1.z.array(organization_contact_1.organizationContactSchema).optional(),
|
|
30
|
+
endpoint: zod_1.z.array(reference_1.referenceSchema).optional(),
|
|
31
|
+
text: narrative_1.narrativeSchema.optional(),
|
|
32
|
+
contained: zod_1.z.array(resource_1.resourceSchema).optional(),
|
|
33
|
+
extension: zod_1.z.array(extension_1.extensionSchema).optional(),
|
|
34
|
+
modifierExtension: zod_1.z.array(extension_1.extensionSchema).optional(),
|
|
35
|
+
id: zod_1.z.string().optional(),
|
|
36
|
+
meta: meta_1.metaSchema.optional(),
|
|
37
|
+
implicitRules: zod_1.z.string().optional(),
|
|
38
|
+
language: zod_1.z.string().optional(),
|
|
39
|
+
})
|
|
40
|
+
.passthrough();
|
|
41
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid29ya3NwYWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbnRyb2wvd29ya3NwYWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxxREFBcUQ7QUFDckQsa0VBQWtFOzs7QUFFbEUsNkJBQXdCO0FBQ3hCLDZDQUFnRDtBQUNoRCw2REFBZ0U7QUFDaEUsdURBQTBEO0FBQzFELGlEQUFvRDtBQUNwRCxtREFBc0Q7QUFDdEQsdUNBQTBDO0FBQzFDLGlEQUFvRDtBQUVwRCx1RUFBeUU7QUFFekUsaURBQW9EO0FBQ3BELCtDQUFrRDtBQU9yQyxRQUFBLGVBQWUsR0FBeUIsT0FBQztLQUNuRCxNQUFNLENBQUM7SUFDTixZQUFZLEVBQUUsT0FBQyxDQUFDLE9BQU8sQ0FBQyxXQUFXLENBQUM7SUFDcEMsTUFBTSxFQUFFLDJCQUFlO0lBQ3ZCLFVBQVUsRUFBRSxPQUFDLENBQUMsS0FBSyxDQUFDLDZCQUFnQixDQUFDLENBQUMsUUFBUSxFQUFFO0lBQ2hELE1BQU0sRUFBRSxPQUFDLENBQUMsT0FBTyxFQUFFLENBQUMsUUFBUSxFQUFFO0lBQzlCLElBQUksRUFBRSxPQUFDLENBQUMsS0FBSyxDQUFDLHVDQUFxQixDQUFDLENBQUMsUUFBUSxFQUFFO0lBQy9DLElBQUksRUFBRSxPQUFDLENBQUMsTUFBTSxFQUFFLENBQUMsUUFBUSxFQUFFO0lBQzNCLEtBQUssRUFBRSxPQUFDLENBQUMsS0FBSyxDQUFDLE9BQUMsQ0FBQyxN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sKCksXG4gICAgdGV4dDogbmFycmF0aXZlU2NoZW1hLm9wdGlvbmFsKCksXG4gICAgY29udGFpbmVkOiB6LmFycmF5KHJlc291cmNlU2NoZW1hKS5vcHRpb25hbCgpLFxuICAgIGV4dGVuc2lvbjogei5hcnJheShleHRlbnNpb25TY2hlbWEpLm9wdGlvbmFsKCksXG4gICAgbW9kaWZpZXJFeHRlbnNpb246IHouYXJyYXkoZXh0ZW5zaW9uU2NoZW1hKS5vcHRpb25hbCgpLFxuICAgIGlkOiB6LnN0cmluZygpLm9wdGlvbmFsKCksXG4gICAgbWV0YTogbWV0YVNjaGVtYS5vcHRpb25hbCgpLFxuICAgIGltcGxpY2l0UnVsZXM6IHouc3RyaW5nKCkub3B0aW9uYWwoKSxcbiAgICBsYW5ndWFnZTogei5zdHJpbmcoKS5vcHRpb25hbCgpLFxuICB9KVxuICAucGFzc3Rocm91Z2goKSBhcyB1bmtub3duIGFzIHouWm9kVHlwZTxXb3Jrc3BhY2U+O1xuIl19
|
package/lib/data/account.d.ts
CHANGED
|
@@ -1,58 +1,24 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
1
2
|
import type { Account_Coverage } from "./account_coverage";
|
|
2
3
|
import type { Account_Guarantor } from "./account_guarantor";
|
|
3
4
|
import type { CodeableConcept } from "./codeableconcept";
|
|
4
|
-
import type {
|
|
5
|
+
import type { AccountStatus } from "./constants";
|
|
6
|
+
import type { DomainResource } from "./domainresource";
|
|
5
7
|
import type { Identifier } from "./identifier";
|
|
6
|
-
import type { Money } from "./money";
|
|
7
8
|
import type { Period } from "./period";
|
|
8
9
|
import type { Reference } from "./reference";
|
|
9
|
-
/** Account status: active | inactive | entered-in-error | on-hold | unknown (AccountStatus, required in R4). */
|
|
10
|
-
export declare const ACCOUNT_STATUS: {
|
|
11
|
-
/** Active: account is available for use. */
|
|
12
|
-
readonly ACTIVE: "active";
|
|
13
|
-
/** Inactive: account is not currently used. */
|
|
14
|
-
readonly INACTIVE: "inactive";
|
|
15
|
-
/** Entered in error: this record should not have been created. */
|
|
16
|
-
readonly ENTERED_IN_ERROR: "entered-in-error";
|
|
17
|
-
/** On hold: account is temporarily suspended. */
|
|
18
|
-
readonly ON_HOLD: "on-hold";
|
|
19
|
-
/** Unknown: status is not known. */
|
|
20
|
-
readonly UNKNOWN: "unknown";
|
|
21
|
-
};
|
|
22
|
-
export type AccountStatus = (typeof ACCOUNT_STATUS)[keyof typeof ACCOUNT_STATUS];
|
|
23
10
|
export interface Account extends DomainResource {
|
|
24
|
-
/** This is a Account resource */
|
|
25
11
|
resourceType: "Account";
|
|
26
|
-
/** Unique identifier used to reference the account (account number). May or may not be intended for human use. */
|
|
27
12
|
identifier?: Array<Identifier>;
|
|
28
|
-
/** Indicates whether the account is presently used/usable or not (required in R4). */
|
|
29
13
|
status: AccountStatus;
|
|
30
|
-
/** Categorizes the account for reporting and searching purposes (e.g. patient, expense, depreciation). */
|
|
31
14
|
type?: CodeableConcept;
|
|
32
|
-
/** Human-readable label for the account. */
|
|
33
15
|
name?: string;
|
|
34
|
-
/** The entity that caused the expenses (Patient, Device, Practitioner, etc.). */
|
|
35
16
|
subject?: Array<Reference>;
|
|
36
|
-
/** Transaction window: date range of services associated with this account (R4: renamed from period). */
|
|
37
17
|
servicePeriod?: Period;
|
|
38
|
-
/** The party(s) that are responsible for covering the payment of this account, and what order they should be applied. */
|
|
39
18
|
coverage?: Array<Account_Coverage>;
|
|
40
|
-
/** Entity managing the account (e.g. service area, hospital, department). */
|
|
41
19
|
owner?: Reference;
|
|
42
|
-
/** Explanation of purpose/use of the account. */
|
|
43
20
|
description?: string;
|
|
44
|
-
/** Parties financially responsible for the account. */
|
|
45
21
|
guarantor?: Array<Account_Guarantor>;
|
|
46
|
-
/** Reference to a parent Account. */
|
|
47
22
|
partOf?: Reference;
|
|
48
|
-
/**
|
|
49
|
-
* Indicates the period over which the account is allowed to have transactions posted to it.
|
|
50
|
-
* @deprecated Removed in R4; use servicePeriod for transaction window. Retained for backward compatibility.
|
|
51
|
-
*/
|
|
52
|
-
active?: Period;
|
|
53
|
-
/**
|
|
54
|
-
* Represents the sum of all credits less all debits associated with the account.
|
|
55
|
-
* @deprecated Removed in R4 (balance expressed via operations/ChargeItem). Retained for backward compatibility.
|
|
56
|
-
*/
|
|
57
|
-
balance?: Money;
|
|
58
23
|
}
|
|
24
|
+
export declare const accountSchema: z.ZodType<Account>;
|