From faf3e3451a784b706324b0d61fc756a710ddfa65 Mon Sep 17 00:00:00 2001 From: jy95 Date: Wed, 24 Apr 2024 18:32:09 +0000 Subject: [PATCH] deploy: 438abe38cf0a6b90c0ea512e7d102c327c721490 --- 404.html | 2 +- api.html | 2 +- api/class/default.html | 2 +- api/enum/DisplayOrderEnum.html | 2 +- api/interface/Params.html | 2 +- assets/js/{01aca802.00ca397b.js => 01aca802.364fab76.js} | 2 +- assets/js/{026611d2.8c44342f.js => 026611d2.8ca1b3af.js} | 2 +- assets/js/{03620de3.30f6acce.js => 03620de3.43dbedfc.js} | 2 +- assets/js/{04716c54.907ba12d.js => 04716c54.005bf238.js} | 2 +- assets/js/{0530b1c5.6ecb9b9d.js => 0530b1c5.8225acdd.js} | 2 +- assets/js/{06a006fb.f0f16f3e.js => 06a006fb.55381c76.js} | 2 +- assets/js/{118e00e5.67d9b973.js => 118e00e5.d889de1c.js} | 2 +- assets/js/{124c4f9d.2c984b00.js => 124c4f9d.8b5d565f.js} | 2 +- assets/js/{12564d99.d5638e32.js => 12564d99.0bf99708.js} | 2 +- assets/js/{133d1207.6b5eed78.js => 133d1207.3fb61e5f.js} | 2 +- assets/js/{139f9fbc.0d839473.js => 139f9fbc.4a034eaa.js} | 2 +- assets/js/{162bd28d.1f2d64d4.js => 162bd28d.314f1e02.js} | 2 +- assets/js/{1668a7c3.cc09ca6a.js => 1668a7c3.4c35ddec.js} | 2 +- assets/js/{17baba0b.3d2ac1a2.js => 17baba0b.36fcb8a1.js} | 2 +- assets/js/{1c1d0071.5e58e581.js => 1c1d0071.ff9e7b0c.js} | 2 +- assets/js/{1cd656ab.5e013c43.js => 1cd656ab.edcda32f.js} | 2 +- assets/js/{1f927e7e.cded6b75.js => 1f927e7e.8701a39d.js} | 2 +- assets/js/{201e0385.f93e38ed.js => 201e0385.e822c840.js} | 2 +- assets/js/{20a65861.a01d5a95.js => 20a65861.029a7013.js} | 2 +- assets/js/{20b5be5c.48a2fc86.js => 20b5be5c.dae37993.js} | 2 +- assets/js/{21119077.2656966a.js => 21119077.4fecbcb9.js} | 2 +- assets/js/{254404d2.b7bfc856.js => 254404d2.82233377.js} | 2 +- assets/js/{265a61ea.48f873f6.js => 265a61ea.33c4d54b.js} | 2 +- assets/js/2a331aeb.f367845e.js | 1 + assets/js/2a331aeb.fe824162.js | 1 - assets/js/{2c4b321a.e0b0dffd.js => 2c4b321a.1d03661d.js} | 2 +- assets/js/{3216d4c8.bb5edfd9.js => 3216d4c8.22bde2dd.js} | 2 +- assets/js/{36cdde70.35912c5d.js => 36cdde70.d459cc80.js} | 2 +- assets/js/{3766ff12.fec53e3c.js => 3766ff12.e8141891.js} | 2 +- assets/js/{38ae24f3.a5591665.js => 38ae24f3.1ca83ecb.js} | 2 +- assets/js/{3903b0d4.c121ad70.js => 3903b0d4.f1ba4aa7.js} | 2 +- assets/js/{3d23bc21.eae29f54.js => 3d23bc21.cbbd6cfe.js} | 2 +- assets/js/{3f237283.7120cfd6.js => 3f237283.b0d75f27.js} | 2 +- assets/js/{3fb26655.8bd48b17.js => 3fb26655.9107aadf.js} | 2 +- assets/js/{40c0f713.d3865322.js => 40c0f713.1d2e2102.js} | 2 +- assets/js/{430bd102.4225414f.js => 430bd102.349d61ad.js} | 2 +- assets/js/{460a5c5b.12220cf3.js => 460a5c5b.db2440a6.js} | 2 +- assets/js/{4628893b.6251b86e.js => 4628893b.ad92aae2.js} | 2 +- assets/js/{49044b90.9d078def.js => 49044b90.e632b4a0.js} | 2 +- assets/js/{4cbe19c8.aa704a26.js => 4cbe19c8.8af0ac94.js} | 2 +- assets/js/{4e847481.ac176639.js => 4e847481.969c2240.js} | 2 +- assets/js/{4eb59f15.3a9d224f.js => 4eb59f15.df15d408.js} | 2 +- assets/js/{4faaf014.011e8c65.js => 4faaf014.3cbd4c01.js} | 2 +- assets/js/{533a8e17.5d934a5f.js => 533a8e17.33dcc0e5.js} | 2 +- assets/js/{55373fd9.1a968f99.js => 55373fd9.0cc2202b.js} | 2 +- assets/js/{5c2c208f.07810b1e.js => 5c2c208f.ae2501fe.js} | 2 +- assets/js/{5f46c019.5ee38f4e.js => 5f46c019.a9856a08.js} | 2 +- assets/js/{6a4d8b82.c06e8aef.js => 6a4d8b82.8950d250.js} | 2 +- assets/js/{6bccb6a0.09a31071.js => 6bccb6a0.52a341b3.js} | 2 +- assets/js/{7614ce18.fee997e2.js => 7614ce18.bbccdc18.js} | 2 +- assets/js/{76aa043d.8e1516fb.js => 76aa043d.c49031a9.js} | 2 +- assets/js/{774b774e.e313eb5a.js => 774b774e.9bb4f3ea.js} | 2 +- assets/js/{78f84b63.39b2af5e.js => 78f84b63.5f55de26.js} | 2 +- assets/js/{7ebf62b0.9da044c5.js => 7ebf62b0.7e347abb.js} | 2 +- assets/js/{829c17da.d89b4bbb.js => 829c17da.12366a01.js} | 2 +- assets/js/{87294416.e20288c2.js => 87294416.0fab7d88.js} | 2 +- assets/js/{883bfc27.f4af5691.js => 883bfc27.f74706d0.js} | 2 +- assets/js/8926b418.3f205a38.js | 1 + assets/js/8926b418.6a4df707.js | 1 - assets/js/{915d2175.1ab31656.js => 915d2175.2cf05589.js} | 2 +- assets/js/{96e7b265.5a850e79.js => 96e7b265.04a6fb3c.js} | 2 +- assets/js/{97031957.4f4e4f95.js => 97031957.56b4fd9a.js} | 2 +- assets/js/{9caecde7.e51a04c0.js => 9caecde7.adb12808.js} | 2 +- assets/js/{a5e5ec5a.545468d6.js => a5e5ec5a.c8173fe1.js} | 2 +- assets/js/{aa77b6a8.d613690d.js => aa77b6a8.e8e746b6.js} | 2 +- assets/js/{ab10b176.0f3319b5.js => ab10b176.ed3b23ad.js} | 2 +- assets/js/{ad90b1c0.bdab94b2.js => ad90b1c0.02edc0aa.js} | 2 +- assets/js/{afe92c27.7debc254.js => afe92c27.9b6caeba.js} | 2 +- assets/js/{b30e43e1.ca945d29.js => b30e43e1.8fce9f6d.js} | 2 +- assets/js/{b52bbddc.2966e35f.js => b52bbddc.b6e96b31.js} | 2 +- assets/js/{bc0994c2.eed7a378.js => bc0994c2.6c229ee8.js} | 2 +- assets/js/{c0086ef4.72cdf050.js => c0086ef4.abe0f44b.js} | 2 +- assets/js/{c36217b7.cf235a26.js => c36217b7.42d23c96.js} | 2 +- assets/js/{c9387e11.50fd3a5f.js => c9387e11.1ca48fa9.js} | 2 +- assets/js/{cd12752c.0310de61.js => cd12752c.2ec836b5.js} | 2 +- assets/js/{d0a7fa20.7778fb49.js => d0a7fa20.fddbf773.js} | 2 +- assets/js/{d5205798.dd9dfda2.js => d5205798.11d315dc.js} | 2 +- assets/js/{d9a0709a.e9b12c89.js => d9a0709a.314b502f.js} | 2 +- assets/js/{e8ce008f.51992a1e.js => e8ce008f.3a3dd00d.js} | 2 +- assets/js/{e9832d3c.930adc88.js => e9832d3c.2f66f130.js} | 2 +- assets/js/{ebb1249f.f394ca10.js => ebb1249f.264b61ee.js} | 2 +- assets/js/{ece64983.6fe88848.js => ece64983.24cf7765.js} | 2 +- assets/js/{ee929032.57c0c6ef.js => ee929032.d8ea40d1.js} | 2 +- assets/js/{ef54304a.1e2dbed9.js => ef54304a.6406d117.js} | 2 +- assets/js/{f58af7d8.741d1f90.js => f58af7d8.40bdc39c.js} | 2 +- assets/js/{f7adbe59.25ccf043.js => f7adbe59.815b7325.js} | 2 +- assets/js/{fa572d46.960f8560.js => fa572d46.47a744aa.js} | 2 +- assets/js/{fdba5499.52f5d4e0.js => fdba5499.04a48033.js} | 2 +- .../js/{runtime~main.da0cea41.js => runtime~main.cbaefa37.js} | 2 +- blog.html | 2 +- blog/archive.html | 2 +- blog/empowerment.html | 2 +- blog/tags.html | 2 +- blog/tags/features.html | 2 +- blog/tags/welcome.html | 2 +- blog/welcome.html | 2 +- docs/category/-additionalinstruction.html | 2 +- docs/category/-asneeded.html | 2 +- docs/category/-boundsperiod.html | 2 +- docs/category/-boundsrange.html | 2 +- docs/category/-code.html | 2 +- docs/category/-count--countmax.html | 2 +- docs/category/-dayofweek.html | 2 +- docs/category/-dosequantity.html | 2 +- docs/category/-doserange.html | 2 +- docs/category/-durationdurationmax.html | 2 +- docs/category/-event.html | 2 +- docs/category/-frequencyfrequencymax.html | 2 +- docs/category/-maxdoseperadministration.html | 2 +- docs/category/-maxdoseperlifetime.html | 2 +- docs/category/-maxdoseperperiod.html | 2 +- docs/category/-offset-when.html | 2 +- docs/category/-offset.html | 2 +- docs/category/-patientinstruction.html | 2 +- docs/category/-rateratio.html | 2 +- docs/category/-site.html | 2 +- docs/category/-text.html | 2 +- docs/category/-timeofday.html | 2 +- docs/category/-when.html | 2 +- "docs/category/\357\270\217-boundsduration.html" | 2 +- "docs/category/\357\270\217-method.html" | 2 +- "docs/category/\357\270\217-periodperiodmax.html" | 2 +- "docs/category/\357\270\217-ratequantity.html" | 2 +- "docs/category/\357\270\217-raterange.html" | 2 +- "docs/category/\357\270\217-route.html" | 2 +- "docs/category/\357\270\217-sequence.html" | 2 +- docs/contributing.html | 2 +- docs/custom/dateTimeFormatOptions.html | 2 +- docs/custom/displayOrder.html | 2 +- docs/custom/displaySeparator.html | 2 +- docs/custom/fromCodeableConceptToString.html | 2 +- docs/custom/fromExtensionsToString.html | 2 +- docs/custom/fromFHIRQuantityUnitToString.html | 2 +- docs/custom/i18nConfig.html | 2 +- docs/demo.html | 2 +- docs/demo/custom.html | 2 +- docs/demo/examples.html | 2 +- docs/demo/examples/medicationrequest.html | 2 +- docs/demo/specs.html | 2 +- docs/examples/medicationrequest/medrx002.html | 2 +- docs/examples/medicationrequest/medrx003.html | 2 +- docs/examples/medicationrequest/medrx004.html | 2 +- docs/examples/medicationrequest/medrx0301.html | 2 +- docs/examples/medicationrequest/medrx0302.html | 2 +- docs/examples/medicationrequest/medrx0303.html | 2 +- docs/examples/medicationrequest/medrx0305.html | 2 +- docs/examples/medicationrequest/medrx0307.html | 2 +- docs/examples/medicationrequest/medrx0308.html | 2 +- docs/examples/medicationrequest/medrx0310.html | 2 +- docs/examples/medicationrequest/medrx0313.html | 2 +- docs/examples/medicationrequest/medrx0314.html | 2 +- docs/examples/medicationrequest/medrx0315.html | 2 +- docs/examples/medicationrequest/medrx0317.html | 2 +- docs/examples/medicationrequest/medrx0319.html | 2 +- docs/examples/medicationrequest/medrx0321.html | 2 +- docs/examples/medicationrequest/medrx0331.html | 2 +- docs/examples/medicationrequest/medrx0339.html | 2 +- docs/faq.html | 2 +- docs/next-steps.html | 2 +- docs/quick-start.html | 2 +- docs/specs/additionalInstruction/multiple_items.html | 2 +- docs/specs/additionalInstruction/single_item.html | 2 +- docs/specs/asNeeded.html | 2 +- docs/specs/asNeeded/asNeededBoolean.html | 2 +- docs/specs/asNeeded/asNeededCodeableConcept.html | 2 +- docs/specs/asNeeded/asNeededFor.html | 2 +- docs/specs/boundsDuration.html | 2 +- docs/specs/boundsPeriod/end_only.html | 2 +- docs/specs/boundsPeriod/start_and_end.html | 2 +- docs/specs/boundsPeriod/start_only.html | 2 +- docs/specs/boundsRange/high_only.html | 2 +- docs/specs/boundsRange/low_and_high.html | 2 +- docs/specs/boundsRange/low_only.html | 2 +- docs/specs/code.html | 2 +- docs/specs/countCountMax/count.html | 2 +- docs/specs/countCountMax/countMax_only.html | 2 +- docs/specs/countCountMax/count_and_countMax.html | 2 +- docs/specs/dayOfWeek/multiple_items.html | 2 +- docs/specs/dayOfWeek/single_item.html | 2 +- docs/specs/doseQuantity.html | 2 +- docs/specs/doseRange/high_only.html | 2 +- docs/specs/doseRange/low_and_high.html | 2 +- docs/specs/doseRange/low_only.html | 2 +- docs/specs/durationDurationMax/durationMax_only.html | 2 +- docs/specs/durationDurationMax/duration_and_durationMax.html | 2 +- docs/specs/durationDurationMax/duration_only.html | 2 +- docs/specs/event/multiple_items.html | 2 +- docs/specs/event/single_item.html | 2 +- docs/specs/frequencyFrequencyMax/frequencyMax_only.html | 2 +- .../specs/frequencyFrequencyMax/frequency_and_frequencyMax.html | 2 +- docs/specs/frequencyFrequencyMax/frequency_only.html | 2 +- docs/specs/maxDosePerAdministration.html | 2 +- docs/specs/maxDosePerLifetime.html | 2 +- docs/specs/maxDosePerPeriod/r4.html | 2 +- docs/specs/maxDosePerPeriod/r5.html | 2 +- docs/specs/method.html | 2 +- docs/specs/offsetWhen/offset/offset_days.html | 2 +- docs/specs/offsetWhen/offset/offset_hours.html | 2 +- docs/specs/offsetWhen/offset/offset_minutes.html | 2 +- docs/specs/offsetWhen/when/multiple_items.html | 2 +- docs/specs/offsetWhen/when/single_item.html | 2 +- docs/specs/offsetWhen/when_and_offset.html | 2 +- docs/specs/patientInstruction.html | 2 +- docs/specs/periodPeriodMax/periodMax_only.html | 2 +- docs/specs/periodPeriodMax/period_and_periodMax.html | 2 +- docs/specs/periodPeriodMax/period_only.html | 2 +- docs/specs/rateQuantity.html | 2 +- docs/specs/rateRange/high_only.html | 2 +- docs/specs/rateRange/low_and_high.html | 2 +- docs/specs/rateRange/low_only.html | 2 +- docs/specs/rateRatio.html | 2 +- docs/specs/route.html | 2 +- docs/specs/sequence/concurrent_instructions.html | 2 +- docs/specs/sequence/sequential_instructions_1.html | 2 +- docs/specs/sequence/sequential_instructions_2.html | 2 +- docs/specs/site.html | 2 +- docs/specs/text.html | 2 +- docs/specs/timeOfDay/multiple_items.html | 2 +- docs/specs/timeOfDay/single_item.html | 2 +- examples/timing.html | 2 +- index.html | 2 +- playground.html | 2 +- search.html | 2 +- 228 files changed, 226 insertions(+), 226 deletions(-) rename assets/js/{01aca802.00ca397b.js => 01aca802.364fab76.js} (94%) rename assets/js/{026611d2.8c44342f.js => 026611d2.8ca1b3af.js} (91%) rename assets/js/{03620de3.30f6acce.js => 03620de3.43dbedfc.js} (92%) rename assets/js/{04716c54.907ba12d.js => 04716c54.005bf238.js} (90%) rename assets/js/{0530b1c5.6ecb9b9d.js => 0530b1c5.8225acdd.js} (51%) rename assets/js/{06a006fb.f0f16f3e.js => 06a006fb.55381c76.js} (93%) rename assets/js/{118e00e5.67d9b973.js => 118e00e5.d889de1c.js} (93%) rename assets/js/{124c4f9d.2c984b00.js => 124c4f9d.8b5d565f.js} (91%) rename assets/js/{12564d99.d5638e32.js => 12564d99.0bf99708.js} (94%) rename assets/js/{133d1207.6b5eed78.js => 133d1207.3fb61e5f.js} (92%) rename assets/js/{139f9fbc.0d839473.js => 139f9fbc.4a034eaa.js} (62%) rename assets/js/{162bd28d.1f2d64d4.js => 162bd28d.314f1e02.js} (68%) rename assets/js/{1668a7c3.cc09ca6a.js => 1668a7c3.4c35ddec.js} (79%) rename assets/js/{17baba0b.3d2ac1a2.js => 17baba0b.36fcb8a1.js} (93%) rename assets/js/{1c1d0071.5e58e581.js => 1c1d0071.ff9e7b0c.js} (92%) rename assets/js/{1cd656ab.5e013c43.js => 1cd656ab.edcda32f.js} (91%) rename assets/js/{1f927e7e.cded6b75.js => 1f927e7e.8701a39d.js} (92%) rename assets/js/{201e0385.f93e38ed.js => 201e0385.e822c840.js} (95%) rename assets/js/{20a65861.a01d5a95.js => 20a65861.029a7013.js} (94%) rename assets/js/{20b5be5c.48a2fc86.js => 20b5be5c.dae37993.js} (93%) rename assets/js/{21119077.2656966a.js => 21119077.4fecbcb9.js} (83%) rename assets/js/{254404d2.b7bfc856.js => 254404d2.82233377.js} (92%) rename assets/js/{265a61ea.48f873f6.js => 265a61ea.33c4d54b.js} (88%) create mode 100644 assets/js/2a331aeb.f367845e.js delete mode 100644 assets/js/2a331aeb.fe824162.js rename assets/js/{2c4b321a.e0b0dffd.js => 2c4b321a.1d03661d.js} (94%) rename assets/js/{3216d4c8.bb5edfd9.js => 3216d4c8.22bde2dd.js} (87%) rename assets/js/{36cdde70.35912c5d.js => 36cdde70.d459cc80.js} (85%) rename assets/js/{3766ff12.fec53e3c.js => 3766ff12.e8141891.js} (85%) rename assets/js/{38ae24f3.a5591665.js => 38ae24f3.1ca83ecb.js} (79%) rename assets/js/{3903b0d4.c121ad70.js => 3903b0d4.f1ba4aa7.js} (59%) rename assets/js/{3d23bc21.eae29f54.js => 3d23bc21.cbbd6cfe.js} (92%) rename assets/js/{3f237283.7120cfd6.js => 3f237283.b0d75f27.js} (92%) rename assets/js/{3fb26655.8bd48b17.js => 3fb26655.9107aadf.js} (81%) rename assets/js/{40c0f713.d3865322.js => 40c0f713.1d2e2102.js} (80%) rename assets/js/{430bd102.4225414f.js => 430bd102.349d61ad.js} (73%) rename assets/js/{460a5c5b.12220cf3.js => 460a5c5b.db2440a6.js} (92%) rename assets/js/{4628893b.6251b86e.js => 4628893b.ad92aae2.js} (95%) rename assets/js/{49044b90.9d078def.js => 49044b90.e632b4a0.js} (79%) rename assets/js/{4cbe19c8.aa704a26.js => 4cbe19c8.8af0ac94.js} (92%) rename assets/js/{4e847481.ac176639.js => 4e847481.969c2240.js} (83%) rename assets/js/{4eb59f15.3a9d224f.js => 4eb59f15.df15d408.js} (63%) rename assets/js/{4faaf014.011e8c65.js => 4faaf014.3cbd4c01.js} (96%) rename assets/js/{533a8e17.5d934a5f.js => 533a8e17.33dcc0e5.js} (90%) rename assets/js/{55373fd9.1a968f99.js => 55373fd9.0cc2202b.js} (62%) rename assets/js/{5c2c208f.07810b1e.js => 5c2c208f.ae2501fe.js} (69%) rename assets/js/{5f46c019.5ee38f4e.js => 5f46c019.a9856a08.js} (58%) rename assets/js/{6a4d8b82.c06e8aef.js => 6a4d8b82.8950d250.js} (71%) rename assets/js/{6bccb6a0.09a31071.js => 6bccb6a0.52a341b3.js} (67%) rename assets/js/{7614ce18.fee997e2.js => 7614ce18.bbccdc18.js} (75%) rename assets/js/{76aa043d.8e1516fb.js => 76aa043d.c49031a9.js} (64%) rename assets/js/{774b774e.e313eb5a.js => 774b774e.9bb4f3ea.js} (93%) rename assets/js/{78f84b63.39b2af5e.js => 78f84b63.5f55de26.js} (58%) rename assets/js/{7ebf62b0.9da044c5.js => 7ebf62b0.7e347abb.js} (79%) rename assets/js/{829c17da.d89b4bbb.js => 829c17da.12366a01.js} (78%) rename assets/js/{87294416.e20288c2.js => 87294416.0fab7d88.js} (72%) rename assets/js/{883bfc27.f4af5691.js => 883bfc27.f74706d0.js} (88%) create mode 100644 assets/js/8926b418.3f205a38.js delete mode 100644 assets/js/8926b418.6a4df707.js rename assets/js/{915d2175.1ab31656.js => 915d2175.2cf05589.js} (91%) rename assets/js/{96e7b265.5a850e79.js => 96e7b265.04a6fb3c.js} (77%) rename assets/js/{97031957.4f4e4f95.js => 97031957.56b4fd9a.js} (93%) rename assets/js/{9caecde7.e51a04c0.js => 9caecde7.adb12808.js} (95%) rename assets/js/{a5e5ec5a.545468d6.js => a5e5ec5a.c8173fe1.js} (75%) rename assets/js/{aa77b6a8.d613690d.js => aa77b6a8.e8e746b6.js} (81%) rename assets/js/{ab10b176.0f3319b5.js => ab10b176.ed3b23ad.js} (73%) rename assets/js/{ad90b1c0.bdab94b2.js => ad90b1c0.02edc0aa.js} (81%) rename assets/js/{afe92c27.7debc254.js => afe92c27.9b6caeba.js} (58%) rename assets/js/{b30e43e1.ca945d29.js => b30e43e1.8fce9f6d.js} (76%) rename assets/js/{b52bbddc.2966e35f.js => b52bbddc.b6e96b31.js} (92%) rename assets/js/{bc0994c2.eed7a378.js => bc0994c2.6c229ee8.js} (90%) rename assets/js/{c0086ef4.72cdf050.js => c0086ef4.abe0f44b.js} (94%) rename assets/js/{c36217b7.cf235a26.js => c36217b7.42d23c96.js} (59%) rename assets/js/{c9387e11.50fd3a5f.js => c9387e11.1ca48fa9.js} (90%) rename assets/js/{cd12752c.0310de61.js => cd12752c.2ec836b5.js} (82%) rename assets/js/{d0a7fa20.7778fb49.js => d0a7fa20.fddbf773.js} (73%) rename assets/js/{d5205798.dd9dfda2.js => d5205798.11d315dc.js} (67%) rename assets/js/{d9a0709a.e9b12c89.js => d9a0709a.314b502f.js} (83%) rename assets/js/{e8ce008f.51992a1e.js => e8ce008f.3a3dd00d.js} (76%) rename assets/js/{e9832d3c.930adc88.js => e9832d3c.2f66f130.js} (59%) rename assets/js/{ebb1249f.f394ca10.js => ebb1249f.264b61ee.js} (94%) rename assets/js/{ece64983.6fe88848.js => ece64983.24cf7765.js} (84%) rename assets/js/{ee929032.57c0c6ef.js => ee929032.d8ea40d1.js} (79%) rename assets/js/{ef54304a.1e2dbed9.js => ef54304a.6406d117.js} (76%) rename assets/js/{f58af7d8.741d1f90.js => f58af7d8.40bdc39c.js} (93%) rename assets/js/{f7adbe59.25ccf043.js => f7adbe59.815b7325.js} (85%) rename assets/js/{fa572d46.960f8560.js => fa572d46.47a744aa.js} (55%) rename assets/js/{fdba5499.52f5d4e0.js => fdba5499.04a48033.js} (94%) rename assets/js/{runtime~main.da0cea41.js => runtime~main.cbaefa37.js} (52%) diff --git a/404.html b/404.html index 1b3de53b..6f550ecb 100644 --- a/404.html +++ b/404.html @@ -9,7 +9,7 @@ - + diff --git a/api.html b/api.html index c92eebcc..aa0a863f 100644 --- a/api.html +++ b/api.html @@ -9,7 +9,7 @@ - + diff --git a/api/class/default.html b/api/class/default.html index 017ea1de..10cbad05 100644 --- a/api/class/default.html +++ b/api/class/default.html @@ -9,7 +9,7 @@ - + diff --git a/api/enum/DisplayOrderEnum.html b/api/enum/DisplayOrderEnum.html index 406fa67a..b91acc92 100644 --- a/api/enum/DisplayOrderEnum.html +++ b/api/enum/DisplayOrderEnum.html @@ -9,7 +9,7 @@ - + diff --git a/api/interface/Params.html b/api/interface/Params.html index b29ce4e5..7fac4d0f 100644 --- a/api/interface/Params.html +++ b/api/interface/Params.html @@ -9,7 +9,7 @@ - + diff --git a/assets/js/01aca802.00ca397b.js b/assets/js/01aca802.364fab76.js similarity index 94% rename from assets/js/01aca802.00ca397b.js rename to assets/js/01aca802.364fab76.js index aa363430..d39980a5 100644 --- a/assets/js/01aca802.00ca397b.js +++ b/assets/js/01aca802.364fab76.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[2079],{8519:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>p,contentTitle:()=>u,default:()=>g,frontMatter:()=>l,metadata:()=>m,toc:()=>x});var n=s(4848),i=s(8453),o=s(1812);const r=JSON.parse('[{"sequence":1,"text":"75mcg daily","timing":{"repeat":{"frequency":1,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral Route (qualifier value)"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":75,"unit":"mcg","system":"http://unitsofmeasure.org","code":"ug"}}]}]');var a=s(4865),d=s(9365),c=s(8264);const l={description:"Request - Levothyroxine - completed with reasonCode, dosageInstructions and dispenseRequest",title:"medrx0314"},u=void 0,m={id:"examples/medicationrequest/medrx0314",title:"medrx0314",description:"Request - Levothyroxine - completed with reasonCode, dosageInstructions and dispenseRequest",source:"@site/docs/examples/medicationrequest/medrx0314.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx0314",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0314",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx0314.mdx",tags:[],version:"current",frontMatter:{description:"Request - Levothyroxine - completed with reasonCode, dosageInstructions and dispenseRequest",title:"medrx0314"},sidebar:"tutorialSidebar",previous:{title:"medrx0313",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0313"},next:{title:"medrx0315",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0315"}},p={},x=[];function h(e){const t={a:"a",admonition:"admonition",p:"p",...(0,i.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.admonition,{type:"info",children:(0,n.jsxs)(t.p,{children:["Source: ",(0,n.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequest0314.html",children:"HL7"}),' - "Request - Levothyroxine - completed with reasonCode, dosageInstructions and dispenseRequest"']})}),"\n",(0,n.jsxs)(a.A,{children:[(0,n.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(c.A,{dosages:r,config:{}})}),(0,n.jsx)(d.A,{value:"json",label:"Dosage",children:(0,n.jsx)(o.default,{language:"json",children:JSON.stringify(r,null,2)})})]})]})}function g(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(h,{...e})}):h(e)}},8264:(e,t,s)=>{s.d(t,{A:()=>a});var n=s(6540),i=s(6300),o=s(1812),r=s(4848);function a(e){let{dosages:t,config:s,i18nConfig:a}=e;const[d,c]=(0,n.useState)(""),[l,u]=(0,n.useState)(s?.language||"en"),[m,p]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await i.A.build(s,a);p(e)}()}),[s]),(0,n.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);c(e)}}()}),[t,m]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:l,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(l);const e=m.fromMultipleDosageToText(t);c(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(o.default,{language:"markup",children:(x=d,x.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var x}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[2079],{8519:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>p,contentTitle:()=>u,default:()=>g,frontMatter:()=>l,metadata:()=>m,toc:()=>x});var n=s(4848),i=s(8453),o=s(1812);const r=JSON.parse('[{"sequence":1,"text":"75mcg daily","timing":{"repeat":{"frequency":1,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral Route (qualifier value)"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":75,"unit":"mcg","system":"http://unitsofmeasure.org","code":"ug"}}]}]');var a=s(4865),d=s(9365),c=s(8264);const l={description:"Request - Levothyroxine - completed with reasonCode, dosageInstructions and dispenseRequest",title:"medrx0314"},u=void 0,m={id:"examples/medicationrequest/medrx0314",title:"medrx0314",description:"Request - Levothyroxine - completed with reasonCode, dosageInstructions and dispenseRequest",source:"@site/docs/examples/medicationrequest/medrx0314.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx0314",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0314",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx0314.mdx",tags:[],version:"current",frontMatter:{description:"Request - Levothyroxine - completed with reasonCode, dosageInstructions and dispenseRequest",title:"medrx0314"},sidebar:"tutorialSidebar",previous:{title:"medrx0313",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0313"},next:{title:"medrx0315",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0315"}},p={},x=[];function h(e){const t={a:"a",admonition:"admonition",p:"p",...(0,i.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.admonition,{type:"info",children:(0,n.jsxs)(t.p,{children:["Source: ",(0,n.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequest0314.html",children:"HL7"}),' - "Request - Levothyroxine - completed with reasonCode, dosageInstructions and dispenseRequest"']})}),"\n",(0,n.jsxs)(a.A,{children:[(0,n.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(c.A,{dosages:r,config:{}})}),(0,n.jsx)(d.A,{value:"json",label:"Dosage",children:(0,n.jsx)(o.default,{language:"json",children:JSON.stringify(r,null,2)})})]})]})}function g(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(h,{...e})}):h(e)}},8264:(e,t,s)=>{s.d(t,{A:()=>a});var n=s(6540),i=s(6300),o=s(1812),r=s(4848);function a(e){let{dosages:t,config:s,i18nConfig:a}=e;const[d,c]=(0,n.useState)(""),[l,u]=(0,n.useState)(s?.language||"en"),[m,p]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await i.A.build(s,a);p(e)}()}),[s]),(0,n.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);c(e)}}()}),[t,m]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:l,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(l);const e=m.fromMultipleDosageToText(t);c(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(o.default,{language:"markup",children:(x=d,x.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var x}}}]); \ No newline at end of file diff --git a/assets/js/026611d2.8c44342f.js b/assets/js/026611d2.8ca1b3af.js similarity index 91% rename from assets/js/026611d2.8c44342f.js rename to assets/js/026611d2.8ca1b3af.js index 751ae66c..a89e571a 100644 --- a/assets/js/026611d2.8c44342f.js +++ b/assets/js/026611d2.8ca1b3af.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[9301],{9480:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>h,contentTitle:()=>u,default:()=>m,frontMatter:()=>d,metadata:()=>f,toc:()=>p});var a=t(4848),o=t(8453),i=t(1812),r=t(7622),s=t(4865),c=t(9365),l=t(816);const d={description:"Options for the i18next instances",title:"\ud83c\udf10 i18nConfig"},u=void 0,f={id:"custom/i18nConfig",title:"\ud83c\udf10 i18nConfig",description:"Options for the i18next instances",source:"@site/docs/custom/i18nConfig.mdx",sourceDirName:"custom",slug:"/custom/i18nConfig",permalink:"/fhir-dosage-utils/docs/custom/i18nConfig",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/custom/i18nConfig.mdx",tags:[],version:"current",frontMatter:{description:"Options for the i18next instances",title:"\ud83c\udf10 i18nConfig"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udccf fromFHIRQuantityUnitToString",permalink:"/fhir-dosage-utils/docs/custom/fromFHIRQuantityUnitToString"},next:{title:"\ud83d\uddfa\ufe0f Real word examples",permalink:"/fhir-dosage-utils/docs/demo/examples"}},h={},p=[];function g(e){const n={code:"code",pre:"pre",...(0,o.R)(),...e.components};return(0,a.jsxs)(s.A,{children:[(0,a.jsx)(c.A,{value:"text",label:"Human readable text",default:!0,children:(0,a.jsx)(l.A,{dosage:r})}),(0,a.jsx)(c.A,{value:"json",label:"Dosage",children:(0,a.jsx)(i.default,{language:"json",children:JSON.stringify(r,null,2)})}),(0,a.jsx)(c.A,{value:"config",label:"i18nConfig",children:(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-js",children:"import LocalStorageBackend from 'i18next-localstorage-backend'; // load from local storage\nimport HttpApi from 'i18next-http-backend'; // have a own http fallback\n\n{\n backend: {\n backends: [\n LocalStorageBackend, // primary\n HttpApi // fallback\n ],\n backendOptions: [{\n projectId: 'myLocizeProjectId'\n }, {\n loadPath: '/locales/{{lng}}/{{ns}}.json' // http api load path for my own fallback\n }],\n // cacheHitMode: 'none' // (default)\n // cacheHitMode: 'refresh' // tries to refresh the cache by loading from the next backend and updates the cache\n // cacheHitMode: 'refreshAndUpdateStore' // tries to refresh the cache by loading from the next backend, updates the cache and also update the i18next resource store\n // reloadInterval: 60 * 60 * 1000 // can be used to reload resources in a specific interval (useful in server environments)\n // refreshExpirationTime: 7 * 24 * 60 * 60 * 1000 // In case of caching with 'refresh' or 'refreshAndUpdateStore', it will only fetch from the next backend if the cached namespace is expired. Only supported if the backend returns the saved timestamp, like i18next-fs-backend, i18next-localstorage-backend\n }\n}\n"})})})]})}function m(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(g,{...e})}):g(e)}},816:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(6540),o=t(6300),i=t(1812),r=t(4848);function s(e){let{dosage:n,config:t,i18nConfig:s}=e;const[c,l]=(0,a.useState)(""),[d,u]=(0,a.useState)(t?.language||"en"),[f,h]=(0,a.useState)(null);(0,a.useEffect)((()=>{!async function(){const e=await o.A.build(t,s);h(e)}()}),[t]),(0,a.useEffect)((()=>{!async function(){if(f){const e=f.fromDosageToText(n);l(e)}}()}),[n,f]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:d,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(f){await f.changeLanguage(d);const e=f.fromDosageToText(n);l(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(i.default,{language:"markup",children:(p=c,p.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var p}},7622:e=>{e.exports=JSON.parse('{"timing":{"repeat":{"boundsDuration":{"system":"http://hl7.org/fhir/ValueSet/duration-units","value":3,"code":"d"}}}}')}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[9301],{9480:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>h,contentTitle:()=>u,default:()=>m,frontMatter:()=>d,metadata:()=>f,toc:()=>p});var a=t(4848),o=t(8453),i=t(1812),r=t(7622),s=t(4865),c=t(9365),l=t(816);const d={description:"Options for the i18next instances",title:"\ud83c\udf10 i18nConfig"},u=void 0,f={id:"custom/i18nConfig",title:"\ud83c\udf10 i18nConfig",description:"Options for the i18next instances",source:"@site/docs/custom/i18nConfig.mdx",sourceDirName:"custom",slug:"/custom/i18nConfig",permalink:"/fhir-dosage-utils/docs/custom/i18nConfig",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/custom/i18nConfig.mdx",tags:[],version:"current",frontMatter:{description:"Options for the i18next instances",title:"\ud83c\udf10 i18nConfig"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udccf fromFHIRQuantityUnitToString",permalink:"/fhir-dosage-utils/docs/custom/fromFHIRQuantityUnitToString"},next:{title:"\ud83d\uddfa\ufe0f Real word examples",permalink:"/fhir-dosage-utils/docs/demo/examples"}},h={},p=[];function g(e){const n={code:"code",pre:"pre",...(0,o.R)(),...e.components};return(0,a.jsxs)(s.A,{children:[(0,a.jsx)(c.A,{value:"text",label:"Human readable text",default:!0,children:(0,a.jsx)(l.A,{dosage:r})}),(0,a.jsx)(c.A,{value:"json",label:"Dosage",children:(0,a.jsx)(i.default,{language:"json",children:JSON.stringify(r,null,2)})}),(0,a.jsx)(c.A,{value:"config",label:"i18nConfig",children:(0,a.jsx)(n.pre,{children:(0,a.jsx)(n.code,{className:"language-js",children:"import LocalStorageBackend from 'i18next-localstorage-backend'; // load from local storage\nimport HttpApi from 'i18next-http-backend'; // have a own http fallback\n\n{\n backend: {\n backends: [\n LocalStorageBackend, // primary\n HttpApi // fallback\n ],\n backendOptions: [{\n projectId: 'myLocizeProjectId'\n }, {\n loadPath: '/locales/{{lng}}/{{ns}}.json' // http api load path for my own fallback\n }],\n // cacheHitMode: 'none' // (default)\n // cacheHitMode: 'refresh' // tries to refresh the cache by loading from the next backend and updates the cache\n // cacheHitMode: 'refreshAndUpdateStore' // tries to refresh the cache by loading from the next backend, updates the cache and also update the i18next resource store\n // reloadInterval: 60 * 60 * 1000 // can be used to reload resources in a specific interval (useful in server environments)\n // refreshExpirationTime: 7 * 24 * 60 * 60 * 1000 // In case of caching with 'refresh' or 'refreshAndUpdateStore', it will only fetch from the next backend if the cached namespace is expired. Only supported if the backend returns the saved timestamp, like i18next-fs-backend, i18next-localstorage-backend\n }\n}\n"})})})]})}function m(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(g,{...e})}):g(e)}},816:(e,n,t)=>{t.d(n,{A:()=>s});var a=t(6540),o=t(6300),i=t(1812),r=t(4848);function s(e){let{dosage:n,config:t,i18nConfig:s}=e;const[c,l]=(0,a.useState)(""),[d,u]=(0,a.useState)(t?.language||"en"),[f,h]=(0,a.useState)(null);(0,a.useEffect)((()=>{!async function(){const e=await o.A.build(t,s);h(e)}()}),[t]),(0,a.useEffect)((()=>{!async function(){if(f){const e=f.fromDosageToText(n);l(e)}}()}),[n,f]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:d,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(f){await f.changeLanguage(d);const e=f.fromDosageToText(n);l(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(i.default,{language:"markup",children:(p=c,p.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var p}},7622:e=>{e.exports=JSON.parse('{"timing":{"repeat":{"boundsDuration":{"system":"http://hl7.org/fhir/ValueSet/duration-units","value":3,"code":"d"}}}}')}}]); \ No newline at end of file diff --git a/assets/js/03620de3.30f6acce.js b/assets/js/03620de3.43dbedfc.js similarity index 92% rename from assets/js/03620de3.30f6acce.js rename to assets/js/03620de3.43dbedfc.js index aca0abbc..e4237684 100644 --- a/assets/js/03620de3.30f6acce.js +++ b/assets/js/03620de3.43dbedfc.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[2460],{4845:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>h,contentTitle:()=>u,default:()=>x,frontMatter:()=>d,metadata:()=>g,toc:()=>p});var a=t(4848),i=t(8453),s=t(1812);const r=JSON.parse('{"doseAndRate":[{"rateRange":{"high":{"value":5,"unit":"pills"}}}]}');var o=t(4865),l=t(9365),c=t(816);const d={description:"High only",title:"\u2696\ufe0f rateRange (High only)"},u=void 0,g={id:"specs/rateRange/high_only",title:"\u2696\ufe0f rateRange (High only)",description:"High only",source:"@site/docs/specs/rateRange/high_only.mdx",sourceDirName:"specs/rateRange",slug:"/specs/rateRange/high_only",permalink:"/fhir-dosage-utils/docs/specs/rateRange/high_only",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/rateRange/high_only.mdx",tags:[],version:"current",frontMatter:{description:"High only",title:"\u2696\ufe0f rateRange (High only)"},sidebar:"tutorialSidebar",previous:{title:"\u2696\ufe0f rateRange",permalink:"/fhir-dosage-utils/docs/category/\ufe0f-raterange"},next:{title:"\u2696\ufe0f rateRange (Low & High)",permalink:"/fhir-dosage-utils/docs/specs/rateRange/low_and_high"}},h={},p=[];function f(e){const n={a:"a",admonition:"admonition",p:"p",...(0,i.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(o.A,{children:[(0,a.jsx)(l.A,{value:"text",label:"Human readable text",default:!0,children:(0,a.jsx)(c.A,{dosage:r})}),(0,a.jsx)(l.A,{value:"json",label:"Dosage",children:(0,a.jsx)(s.default,{language:"json",children:JSON.stringify(r,null,2)})})]}),"\n",(0,a.jsx)(n.admonition,{type:"tip",children:(0,a.jsxs)(n.p,{children:["Don't forget you can use ",(0,a.jsx)(n.a,{href:"/api/interface/Params",children:"fromFHIRQuantityUnitToString"})," option to fit your needs"]})})]})}function x(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(f,{...e})}):f(e)}},816:(e,n,t)=>{t.d(n,{A:()=>o});var a=t(6540),i=t(6300),s=t(1812),r=t(4848);function o(e){let{dosage:n,config:t,i18nConfig:o}=e;const[l,c]=(0,a.useState)(""),[d,u]=(0,a.useState)(t?.language||"en"),[g,h]=(0,a.useState)(null);(0,a.useEffect)((()=>{!async function(){const e=await i.A.build(t,o);h(e)}()}),[t]),(0,a.useEffect)((()=>{!async function(){if(g){const e=g.fromDosageToText(n);c(e)}}()}),[n,g]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:d,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(g){await g.changeLanguage(d);const e=g.fromDosageToText(n);c(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(s.default,{language:"markup",children:(p=l,p.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var p}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[2460],{4845:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>h,contentTitle:()=>u,default:()=>x,frontMatter:()=>d,metadata:()=>g,toc:()=>p});var a=t(4848),i=t(8453),s=t(1812);const r=JSON.parse('{"doseAndRate":[{"rateRange":{"high":{"value":5,"unit":"pills"}}}]}');var o=t(4865),l=t(9365),c=t(816);const d={description:"High only",title:"\u2696\ufe0f rateRange (High only)"},u=void 0,g={id:"specs/rateRange/high_only",title:"\u2696\ufe0f rateRange (High only)",description:"High only",source:"@site/docs/specs/rateRange/high_only.mdx",sourceDirName:"specs/rateRange",slug:"/specs/rateRange/high_only",permalink:"/fhir-dosage-utils/docs/specs/rateRange/high_only",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/rateRange/high_only.mdx",tags:[],version:"current",frontMatter:{description:"High only",title:"\u2696\ufe0f rateRange (High only)"},sidebar:"tutorialSidebar",previous:{title:"\u2696\ufe0f rateRange",permalink:"/fhir-dosage-utils/docs/category/\ufe0f-raterange"},next:{title:"\u2696\ufe0f rateRange (Low & High)",permalink:"/fhir-dosage-utils/docs/specs/rateRange/low_and_high"}},h={},p=[];function f(e){const n={a:"a",admonition:"admonition",p:"p",...(0,i.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(o.A,{children:[(0,a.jsx)(l.A,{value:"text",label:"Human readable text",default:!0,children:(0,a.jsx)(c.A,{dosage:r})}),(0,a.jsx)(l.A,{value:"json",label:"Dosage",children:(0,a.jsx)(s.default,{language:"json",children:JSON.stringify(r,null,2)})})]}),"\n",(0,a.jsx)(n.admonition,{type:"tip",children:(0,a.jsxs)(n.p,{children:["Don't forget you can use ",(0,a.jsx)(n.a,{href:"/api/interface/Params",children:"fromFHIRQuantityUnitToString"})," option to fit your needs"]})})]})}function x(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(f,{...e})}):f(e)}},816:(e,n,t)=>{t.d(n,{A:()=>o});var a=t(6540),i=t(6300),s=t(1812),r=t(4848);function o(e){let{dosage:n,config:t,i18nConfig:o}=e;const[l,c]=(0,a.useState)(""),[d,u]=(0,a.useState)(t?.language||"en"),[g,h]=(0,a.useState)(null);(0,a.useEffect)((()=>{!async function(){const e=await i.A.build(t,o);h(e)}()}),[t]),(0,a.useEffect)((()=>{!async function(){if(g){const e=g.fromDosageToText(n);c(e)}}()}),[n,g]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:d,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(g){await g.changeLanguage(d);const e=g.fromDosageToText(n);c(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(s.default,{language:"markup",children:(p=l,p.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var p}}}]); \ No newline at end of file diff --git a/assets/js/04716c54.907ba12d.js b/assets/js/04716c54.005bf238.js similarity index 90% rename from assets/js/04716c54.907ba12d.js rename to assets/js/04716c54.005bf238.js index 17375233..485881bc 100644 --- a/assets/js/04716c54.907ba12d.js +++ b/assets/js/04716c54.005bf238.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[8945],{5943:(e,n,o)=>{o.r(n),o.d(n,{assets:()=>p,contentTitle:()=>d,default:()=>x,frontMatter:()=>u,metadata:()=>g,toc:()=>f});var t=o(4848),s=o(8453),a=o(1812);const i=JSON.parse('{"timing":{"repeat":{"boundsRange":{"low":{"value":5,"unit":"days"}}}}}');var r=o(4865),l=o(9365),c=o(816);const u={description:"Low only",title:"\ud83d\udcd0 boundsDuration (Low only)"},d=void 0,g={id:"specs/boundsRange/low_only",title:"\ud83d\udcd0 boundsDuration (Low only)",description:"Low only",source:"@site/docs/specs/boundsRange/low_only.mdx",sourceDirName:"specs/boundsRange",slug:"/specs/boundsRange/low_only",permalink:"/fhir-dosage-utils/docs/specs/boundsRange/low_only",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/boundsRange/low_only.mdx",tags:[],version:"current",frontMatter:{description:"Low only",title:"\ud83d\udcd0 boundsDuration (Low only)"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udcd0 boundsDuration (Low & High)",permalink:"/fhir-dosage-utils/docs/specs/boundsRange/low_and_high"},next:{title:"\ud83d\udcbb code",permalink:"/fhir-dosage-utils/docs/category/-code"}},p={},f=[];function h(e){const n={a:"a",admonition:"admonition",p:"p",...(0,s.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(r.A,{children:[(0,t.jsx)(l.A,{value:"text",label:"Human readable text",default:!0,children:(0,t.jsx)(c.A,{dosage:i})}),(0,t.jsx)(l.A,{value:"json",label:"Dosage",children:(0,t.jsx)(a.default,{language:"json",children:JSON.stringify(i,null,2)})})]}),"\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsxs)(n.p,{children:["Don't forget you can use ",(0,t.jsx)(n.a,{href:"/api/interface/Params",children:"fromFHIRQuantityUnitToString"})," option to fit your needs"]})})]})}function x(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(h,{...e})}):h(e)}},816:(e,n,o)=>{o.d(n,{A:()=>r});var t=o(6540),s=o(6300),a=o(1812),i=o(4848);function r(e){let{dosage:n,config:o,i18nConfig:r}=e;const[l,c]=(0,t.useState)(""),[u,d]=(0,t.useState)(o?.language||"en"),[g,p]=(0,t.useState)(null);(0,t.useEffect)((()=>{!async function(){const e=await s.A.build(o,r);p(e)}()}),[o]),(0,t.useEffect)((()=>{!async function(){if(g){const e=g.fromDosageToText(n);c(e)}}()}),[n,g]);return(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{style:{display:"flex"},children:[(0,i.jsxs)("select",{value:u,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,i.jsx)("option",{value:"en",children:"English"}),(0,i.jsx)("option",{value:"fr",children:"French"}),(0,i.jsx)("option",{value:"nl",children:"Dutch"}),(0,i.jsx)("option",{value:"de",children:"German"})]}),(0,i.jsx)("button",{onClick:async()=>{if(g){await g.changeLanguage(u);const e=g.fromDosageToText(n);c(e)}},children:"Confirm"})]}),(0,i.jsx)("div",{style:{marginTop:"10px"},children:(0,i.jsx)(a.default,{language:"markup",children:(f=l,f.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var f}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[8945],{5943:(e,n,o)=>{o.r(n),o.d(n,{assets:()=>p,contentTitle:()=>d,default:()=>m,frontMatter:()=>u,metadata:()=>g,toc:()=>f});var t=o(4848),s=o(8453),a=o(1812);const i=JSON.parse('{"timing":{"repeat":{"boundsRange":{"low":{"value":5,"unit":"days"}}}}}');var r=o(4865),l=o(9365),c=o(816);const u={description:"Low only",title:"\ud83d\udcd0 boundsDuration (Low only)"},d=void 0,g={id:"specs/boundsRange/low_only",title:"\ud83d\udcd0 boundsDuration (Low only)",description:"Low only",source:"@site/docs/specs/boundsRange/low_only.mdx",sourceDirName:"specs/boundsRange",slug:"/specs/boundsRange/low_only",permalink:"/fhir-dosage-utils/docs/specs/boundsRange/low_only",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/boundsRange/low_only.mdx",tags:[],version:"current",frontMatter:{description:"Low only",title:"\ud83d\udcd0 boundsDuration (Low only)"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udcd0 boundsDuration (Low & High)",permalink:"/fhir-dosage-utils/docs/specs/boundsRange/low_and_high"},next:{title:"\ud83d\udcbb code",permalink:"/fhir-dosage-utils/docs/category/-code"}},p={},f=[];function h(e){const n={a:"a",admonition:"admonition",p:"p",...(0,s.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(r.A,{children:[(0,t.jsx)(l.A,{value:"text",label:"Human readable text",default:!0,children:(0,t.jsx)(c.A,{dosage:i})}),(0,t.jsx)(l.A,{value:"json",label:"Dosage",children:(0,t.jsx)(a.default,{language:"json",children:JSON.stringify(i,null,2)})})]}),"\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsxs)(n.p,{children:["Don't forget you can use ",(0,t.jsx)(n.a,{href:"/api/interface/Params",children:"fromFHIRQuantityUnitToString"})," option to fit your needs"]})})]})}function m(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(h,{...e})}):h(e)}},816:(e,n,o)=>{o.d(n,{A:()=>r});var t=o(6540),s=o(6300),a=o(1812),i=o(4848);function r(e){let{dosage:n,config:o,i18nConfig:r}=e;const[l,c]=(0,t.useState)(""),[u,d]=(0,t.useState)(o?.language||"en"),[g,p]=(0,t.useState)(null);(0,t.useEffect)((()=>{!async function(){const e=await s.A.build(o,r);p(e)}()}),[o]),(0,t.useEffect)((()=>{!async function(){if(g){const e=g.fromDosageToText(n);c(e)}}()}),[n,g]);return(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{style:{display:"flex"},children:[(0,i.jsxs)("select",{value:u,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,i.jsx)("option",{value:"en",children:"English"}),(0,i.jsx)("option",{value:"fr",children:"French"}),(0,i.jsx)("option",{value:"nl",children:"Dutch"}),(0,i.jsx)("option",{value:"de",children:"German"})]}),(0,i.jsx)("button",{onClick:async()=>{if(g){await g.changeLanguage(u);const e=g.fromDosageToText(n);c(e)}},children:"Confirm"})]}),(0,i.jsx)("div",{style:{marginTop:"10px"},children:(0,i.jsx)(a.default,{language:"markup",children:(f=l,f.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var f}}}]); \ No newline at end of file diff --git a/assets/js/0530b1c5.6ecb9b9d.js b/assets/js/0530b1c5.8225acdd.js similarity index 51% rename from assets/js/0530b1c5.6ecb9b9d.js rename to assets/js/0530b1c5.8225acdd.js index fef642c5..e86a1f41 100644 --- a/assets/js/0530b1c5.6ecb9b9d.js +++ b/assets/js/0530b1c5.8225acdd.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[7032],{559:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>h,contentTitle:()=>l,default:()=>x,frontMatter:()=>c,metadata:()=>d,toc:()=>p});var o=t(4848),n=t(8453),f=t(1812);const r=JSON.parse('{"timing":{"repeat":{"offset":60}}}');var a=t(4865),i=t(9365),u=t(816);const c={description:"offset, expressing hour(s)",title:"\ud83d\udd52 offset (Hours)"},l=void 0,d={id:"specs/offsetWhen/offset/offset_hours",title:"\ud83d\udd52 offset (Hours)",description:"offset, expressing hour(s)",source:"@site/docs/specs/offsetWhen/offset/offset_hours.mdx",sourceDirName:"specs/offsetWhen/offset",slug:"/specs/offsetWhen/offset/offset_hours",permalink:"/fhir-dosage-utils/docs/specs/offsetWhen/offset/offset_hours",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/offsetWhen/offset/offset_hours.mdx",tags:[],version:"current",frontMatter:{description:"offset, expressing hour(s)",title:"\ud83d\udd52 offset (Hours)"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udd52 offset (Days)",permalink:"/fhir-dosage-utils/docs/specs/offsetWhen/offset/offset_days"},next:{title:"\ud83d\udd52 offset (Minutes)",permalink:"/fhir-dosage-utils/docs/specs/offsetWhen/offset/offset_minutes"}},h={},p=[];function g(e){return(0,o.jsxs)(a.A,{children:[(0,o.jsx)(i.A,{value:"text",label:"Human readable text",default:!0,children:(0,o.jsx)(u.A,{dosage:r})}),(0,o.jsx)(i.A,{value:"json",label:"Dosage",children:(0,o.jsx)(f.default,{language:"json",children:JSON.stringify(r,null,2)})})]})}function x(e={}){const{wrapper:s}={...(0,n.R)(),...e.components};return s?(0,o.jsx)(s,{...e,children:(0,o.jsx)(g,{...e})}):g()}},816:(e,s,t)=>{t.d(s,{A:()=>a});var o=t(6540),n=t(6300),f=t(1812),r=t(4848);function a(e){let{dosage:s,config:t,i18nConfig:a}=e;const[i,u]=(0,o.useState)(""),[c,l]=(0,o.useState)(t?.language||"en"),[d,h]=(0,o.useState)(null);(0,o.useEffect)((()=>{!async function(){const e=await n.A.build(t,a);h(e)}()}),[t]),(0,o.useEffect)((()=>{!async function(){if(d){const e=d.fromDosageToText(s);u(e)}}()}),[s,d]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:c,onChange:e=>l(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(d){await d.changeLanguage(c);const e=d.fromDosageToText(s);u(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(f.default,{language:"markup",children:(p=i,p.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,s){return String.fromCharCode(s)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,s){return String.fromCharCode(parseInt(s,16))})))})})]});var p}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[7032],{559:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>h,contentTitle:()=>l,default:()=>x,frontMatter:()=>u,metadata:()=>d,toc:()=>p});var o=t(4848),n=t(8453),r=t(1812);const f=JSON.parse('{"timing":{"repeat":{"offset":60}}}');var a=t(4865),i=t(9365),c=t(816);const u={description:"offset, expressing hour(s)",title:"\ud83d\udd52 offset (Hours)"},l=void 0,d={id:"specs/offsetWhen/offset/offset_hours",title:"\ud83d\udd52 offset (Hours)",description:"offset, expressing hour(s)",source:"@site/docs/specs/offsetWhen/offset/offset_hours.mdx",sourceDirName:"specs/offsetWhen/offset",slug:"/specs/offsetWhen/offset/offset_hours",permalink:"/fhir-dosage-utils/docs/specs/offsetWhen/offset/offset_hours",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/offsetWhen/offset/offset_hours.mdx",tags:[],version:"current",frontMatter:{description:"offset, expressing hour(s)",title:"\ud83d\udd52 offset (Hours)"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udd52 offset (Days)",permalink:"/fhir-dosage-utils/docs/specs/offsetWhen/offset/offset_days"},next:{title:"\ud83d\udd52 offset (Minutes)",permalink:"/fhir-dosage-utils/docs/specs/offsetWhen/offset/offset_minutes"}},h={},p=[];function g(e){return(0,o.jsxs)(a.A,{children:[(0,o.jsx)(i.A,{value:"text",label:"Human readable text",default:!0,children:(0,o.jsx)(c.A,{dosage:f})}),(0,o.jsx)(i.A,{value:"json",label:"Dosage",children:(0,o.jsx)(r.default,{language:"json",children:JSON.stringify(f,null,2)})})]})}function x(e={}){const{wrapper:s}={...(0,n.R)(),...e.components};return s?(0,o.jsx)(s,{...e,children:(0,o.jsx)(g,{...e})}):g()}},816:(e,s,t)=>{t.d(s,{A:()=>a});var o=t(6540),n=t(6300),r=t(1812),f=t(4848);function a(e){let{dosage:s,config:t,i18nConfig:a}=e;const[i,c]=(0,o.useState)(""),[u,l]=(0,o.useState)(t?.language||"en"),[d,h]=(0,o.useState)(null);(0,o.useEffect)((()=>{!async function(){const e=await n.A.build(t,a);h(e)}()}),[t]),(0,o.useEffect)((()=>{!async function(){if(d){const e=d.fromDosageToText(s);c(e)}}()}),[s,d]);return(0,f.jsxs)("div",{children:[(0,f.jsxs)("div",{style:{display:"flex"},children:[(0,f.jsxs)("select",{value:u,onChange:e=>l(e.target.value),style:{marginRight:"10px"},children:[(0,f.jsx)("option",{value:"en",children:"English"}),(0,f.jsx)("option",{value:"fr",children:"French"}),(0,f.jsx)("option",{value:"nl",children:"Dutch"}),(0,f.jsx)("option",{value:"de",children:"German"})]}),(0,f.jsx)("button",{onClick:async()=>{if(d){await d.changeLanguage(u);const e=d.fromDosageToText(s);c(e)}},children:"Confirm"})]}),(0,f.jsx)("div",{style:{marginTop:"10px"},children:(0,f.jsx)(r.default,{language:"markup",children:(p=i,p.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,s){return String.fromCharCode(s)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,s){return String.fromCharCode(parseInt(s,16))})))})})]});var p}}}]); \ No newline at end of file diff --git a/assets/js/06a006fb.f0f16f3e.js b/assets/js/06a006fb.55381c76.js similarity index 93% rename from assets/js/06a006fb.f0f16f3e.js rename to assets/js/06a006fb.55381c76.js index 3ac7a908..4cc47817 100644 --- a/assets/js/06a006fb.f0f16f3e.js +++ b/assets/js/06a006fb.55381c76.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[4936],{3583:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>x,contentTitle:()=>m,default:()=>g,frontMatter:()=>l,metadata:()=>u,toc:()=>p});var n=i(4848),s=i(8453),a=i(1812);const r=JSON.parse('{"maxDosePerAdministration":{"value":3,"unit":"mg"}}');var o=i(4865),d=i(9365),c=i(816);const l={description:"maxDosePerAdministration",title:"\ud83d\udc89 maxDosePerAdministration"},m=void 0,u={id:"specs/maxDosePerAdministration/maxDosePerAdministration",title:"\ud83d\udc89 maxDosePerAdministration",description:"maxDosePerAdministration",source:"@site/docs/specs/maxDosePerAdministration/maxDosePerAdministration.mdx",sourceDirName:"specs/maxDosePerAdministration",slug:"/specs/maxDosePerAdministration/",permalink:"/fhir-dosage-utils/docs/specs/maxDosePerAdministration/",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/maxDosePerAdministration/maxDosePerAdministration.mdx",tags:[],version:"current",frontMatter:{description:"maxDosePerAdministration",title:"\ud83d\udc89 maxDosePerAdministration"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udc89 maxDosePerAdministration",permalink:"/fhir-dosage-utils/docs/category/-maxdoseperadministration"},next:{title:"\ud83d\udc96 maxDosePerLifetime",permalink:"/fhir-dosage-utils/docs/category/-maxdoseperlifetime"}},x={},p=[];function f(e){const t={a:"a",admonition:"admonition",p:"p",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(o.A,{children:[(0,n.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(c.A,{dosage:r})}),(0,n.jsx)(d.A,{value:"json",label:"Dosage",children:(0,n.jsx)(a.default,{language:"json",children:JSON.stringify(r,null,2)})})]}),"\n",(0,n.jsx)(t.admonition,{type:"tip",children:(0,n.jsxs)(t.p,{children:["Don't forget you can use ",(0,n.jsx)(t.a,{href:"/api/interface/Params",children:"fromFHIRQuantityUnitToString"})," option to fit your needs"]})})]})}function g(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(f,{...e})}):f(e)}},816:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(6540),s=i(6300),a=i(1812),r=i(4848);function o(e){let{dosage:t,config:i,i18nConfig:o}=e;const[d,c]=(0,n.useState)(""),[l,m]=(0,n.useState)(i?.language||"en"),[u,x]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await s.A.build(i,o);x(e)}()}),[i]),(0,n.useEffect)((()=>{!async function(){if(u){const e=u.fromDosageToText(t);c(e)}}()}),[t,u]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:l,onChange:e=>m(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(u){await u.changeLanguage(l);const e=u.fromDosageToText(t);c(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(a.default,{language:"markup",children:(p=d,p.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var p}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[4936],{3583:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>x,contentTitle:()=>m,default:()=>g,frontMatter:()=>l,metadata:()=>u,toc:()=>p});var n=i(4848),s=i(8453),a=i(1812);const r=JSON.parse('{"maxDosePerAdministration":{"value":3,"unit":"mg"}}');var o=i(4865),d=i(9365),c=i(816);const l={description:"maxDosePerAdministration",title:"\ud83d\udc89 maxDosePerAdministration"},m=void 0,u={id:"specs/maxDosePerAdministration/maxDosePerAdministration",title:"\ud83d\udc89 maxDosePerAdministration",description:"maxDosePerAdministration",source:"@site/docs/specs/maxDosePerAdministration/maxDosePerAdministration.mdx",sourceDirName:"specs/maxDosePerAdministration",slug:"/specs/maxDosePerAdministration/",permalink:"/fhir-dosage-utils/docs/specs/maxDosePerAdministration/",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/maxDosePerAdministration/maxDosePerAdministration.mdx",tags:[],version:"current",frontMatter:{description:"maxDosePerAdministration",title:"\ud83d\udc89 maxDosePerAdministration"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udc89 maxDosePerAdministration",permalink:"/fhir-dosage-utils/docs/category/-maxdoseperadministration"},next:{title:"\ud83d\udc96 maxDosePerLifetime",permalink:"/fhir-dosage-utils/docs/category/-maxdoseperlifetime"}},x={},p=[];function f(e){const t={a:"a",admonition:"admonition",p:"p",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(o.A,{children:[(0,n.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(c.A,{dosage:r})}),(0,n.jsx)(d.A,{value:"json",label:"Dosage",children:(0,n.jsx)(a.default,{language:"json",children:JSON.stringify(r,null,2)})})]}),"\n",(0,n.jsx)(t.admonition,{type:"tip",children:(0,n.jsxs)(t.p,{children:["Don't forget you can use ",(0,n.jsx)(t.a,{href:"/api/interface/Params",children:"fromFHIRQuantityUnitToString"})," option to fit your needs"]})})]})}function g(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(f,{...e})}):f(e)}},816:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(6540),s=i(6300),a=i(1812),r=i(4848);function o(e){let{dosage:t,config:i,i18nConfig:o}=e;const[d,c]=(0,n.useState)(""),[l,m]=(0,n.useState)(i?.language||"en"),[u,x]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await s.A.build(i,o);x(e)}()}),[i]),(0,n.useEffect)((()=>{!async function(){if(u){const e=u.fromDosageToText(t);c(e)}}()}),[t,u]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:l,onChange:e=>m(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(u){await u.changeLanguage(l);const e=u.fromDosageToText(t);c(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(a.default,{language:"markup",children:(p=d,p.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var p}}}]); \ No newline at end of file diff --git a/assets/js/118e00e5.67d9b973.js b/assets/js/118e00e5.d889de1c.js similarity index 93% rename from assets/js/118e00e5.67d9b973.js rename to assets/js/118e00e5.d889de1c.js index 0d122db5..3ea74b19 100644 --- a/assets/js/118e00e5.67d9b973.js +++ b/assets/js/118e00e5.d889de1c.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[2914],{6977:(e,a,s)=>{s.r(a),s.d(a,{assets:()=>f,contentTitle:()=>u,default:()=>C,frontMatter:()=>l,metadata:()=>p,toc:()=>g});var t=s(4848),n=s(8453),d=s(1812);const o=JSON.parse('{"asNeededCodeableConcept":{"text":"when feeling bad"}}');var i=s(4865),r=s(9365),c=s(816);const l={description:"asNeededCodeableConcept",title:"\ud83d\udccc asNeededCodeableConcept"},u=void 0,p={id:"specs/asNeeded/asNeededCodeableConcept",title:"\ud83d\udccc asNeededCodeableConcept",description:"asNeededCodeableConcept",source:"@site/docs/specs/asNeeded/asNeededCodeableConcept.mdx",sourceDirName:"specs/asNeeded",slug:"/specs/asNeeded/asNeededCodeableConcept",permalink:"/fhir-dosage-utils/docs/specs/asNeeded/asNeededCodeableConcept",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/asNeeded/asNeededCodeableConcept.mdx",tags:[],version:"current",frontMatter:{description:"asNeededCodeableConcept",title:"\ud83d\udccc asNeededCodeableConcept"},sidebar:"tutorialSidebar",previous:{title:"\u2705 asNeededBoolean",permalink:"/fhir-dosage-utils/docs/specs/asNeeded/asNeededBoolean"},next:{title:"\ud83e\uddec asNeededFor",permalink:"/fhir-dosage-utils/docs/specs/asNeeded/asNeededFor"}},f={},g=[];function h(e){const a={a:"a",admonition:"admonition",p:"p",...(0,n.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(i.A,{children:[(0,t.jsx)(r.A,{value:"text",label:"Human readable text",default:!0,children:(0,t.jsx)(c.A,{dosage:o})}),(0,t.jsx)(r.A,{value:"json",label:"Dosage",children:(0,t.jsx)(d.default,{language:"json",children:JSON.stringify(o,null,2)})})]}),"\n",(0,t.jsx)(a.admonition,{type:"tip",children:(0,t.jsxs)(a.p,{children:["Don't forget you can use ",(0,t.jsx)(a.a,{href:"/api/interface/Params",children:"fromCodeableConceptToString"})," option to fit your needs"]})})]})}function C(e={}){const{wrapper:a}={...(0,n.R)(),...e.components};return a?(0,t.jsx)(a,{...e,children:(0,t.jsx)(h,{...e})}):h(e)}},816:(e,a,s)=>{s.d(a,{A:()=>i});var t=s(6540),n=s(6300),d=s(1812),o=s(4848);function i(e){let{dosage:a,config:s,i18nConfig:i}=e;const[r,c]=(0,t.useState)(""),[l,u]=(0,t.useState)(s?.language||"en"),[p,f]=(0,t.useState)(null);(0,t.useEffect)((()=>{!async function(){const e=await n.A.build(s,i);f(e)}()}),[s]),(0,t.useEffect)((()=>{!async function(){if(p){const e=p.fromDosageToText(a);c(e)}}()}),[a,p]);return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{style:{display:"flex"},children:[(0,o.jsxs)("select",{value:l,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,o.jsx)("option",{value:"en",children:"English"}),(0,o.jsx)("option",{value:"fr",children:"French"}),(0,o.jsx)("option",{value:"nl",children:"Dutch"}),(0,o.jsx)("option",{value:"de",children:"German"})]}),(0,o.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(l);const e=p.fromDosageToText(a);c(e)}},children:"Confirm"})]}),(0,o.jsx)("div",{style:{marginTop:"10px"},children:(0,o.jsx)(d.default,{language:"markup",children:(g=r,g.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,a){return String.fromCharCode(a)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,a){return String.fromCharCode(parseInt(a,16))})))})})]});var g}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[2914],{6977:(e,a,s)=>{s.r(a),s.d(a,{assets:()=>f,contentTitle:()=>u,default:()=>C,frontMatter:()=>l,metadata:()=>p,toc:()=>g});var t=s(4848),n=s(8453),d=s(1812);const o=JSON.parse('{"asNeededCodeableConcept":{"text":"when feeling bad"}}');var i=s(4865),r=s(9365),c=s(816);const l={description:"asNeededCodeableConcept",title:"\ud83d\udccc asNeededCodeableConcept"},u=void 0,p={id:"specs/asNeeded/asNeededCodeableConcept",title:"\ud83d\udccc asNeededCodeableConcept",description:"asNeededCodeableConcept",source:"@site/docs/specs/asNeeded/asNeededCodeableConcept.mdx",sourceDirName:"specs/asNeeded",slug:"/specs/asNeeded/asNeededCodeableConcept",permalink:"/fhir-dosage-utils/docs/specs/asNeeded/asNeededCodeableConcept",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/asNeeded/asNeededCodeableConcept.mdx",tags:[],version:"current",frontMatter:{description:"asNeededCodeableConcept",title:"\ud83d\udccc asNeededCodeableConcept"},sidebar:"tutorialSidebar",previous:{title:"\u2705 asNeededBoolean",permalink:"/fhir-dosage-utils/docs/specs/asNeeded/asNeededBoolean"},next:{title:"\ud83e\uddec asNeededFor",permalink:"/fhir-dosage-utils/docs/specs/asNeeded/asNeededFor"}},f={},g=[];function h(e){const a={a:"a",admonition:"admonition",p:"p",...(0,n.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(i.A,{children:[(0,t.jsx)(r.A,{value:"text",label:"Human readable text",default:!0,children:(0,t.jsx)(c.A,{dosage:o})}),(0,t.jsx)(r.A,{value:"json",label:"Dosage",children:(0,t.jsx)(d.default,{language:"json",children:JSON.stringify(o,null,2)})})]}),"\n",(0,t.jsx)(a.admonition,{type:"tip",children:(0,t.jsxs)(a.p,{children:["Don't forget you can use ",(0,t.jsx)(a.a,{href:"/api/interface/Params",children:"fromCodeableConceptToString"})," option to fit your needs"]})})]})}function C(e={}){const{wrapper:a}={...(0,n.R)(),...e.components};return a?(0,t.jsx)(a,{...e,children:(0,t.jsx)(h,{...e})}):h(e)}},816:(e,a,s)=>{s.d(a,{A:()=>i});var t=s(6540),n=s(6300),d=s(1812),o=s(4848);function i(e){let{dosage:a,config:s,i18nConfig:i}=e;const[r,c]=(0,t.useState)(""),[l,u]=(0,t.useState)(s?.language||"en"),[p,f]=(0,t.useState)(null);(0,t.useEffect)((()=>{!async function(){const e=await n.A.build(s,i);f(e)}()}),[s]),(0,t.useEffect)((()=>{!async function(){if(p){const e=p.fromDosageToText(a);c(e)}}()}),[a,p]);return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{style:{display:"flex"},children:[(0,o.jsxs)("select",{value:l,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,o.jsx)("option",{value:"en",children:"English"}),(0,o.jsx)("option",{value:"fr",children:"French"}),(0,o.jsx)("option",{value:"nl",children:"Dutch"}),(0,o.jsx)("option",{value:"de",children:"German"})]}),(0,o.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(l);const e=p.fromDosageToText(a);c(e)}},children:"Confirm"})]}),(0,o.jsx)("div",{style:{marginTop:"10px"},children:(0,o.jsx)(d.default,{language:"markup",children:(g=r,g.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,a){return String.fromCharCode(a)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,a){return String.fromCharCode(parseInt(a,16))})))})})]});var g}}}]); \ No newline at end of file diff --git a/assets/js/124c4f9d.2c984b00.js b/assets/js/124c4f9d.8b5d565f.js similarity index 91% rename from assets/js/124c4f9d.2c984b00.js rename to assets/js/124c4f9d.8b5d565f.js index e74d597a..0c44c39f 100644 --- a/assets/js/124c4f9d.2c984b00.js +++ b/assets/js/124c4f9d.8b5d565f.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[2188],{2809:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>g,contentTitle:()=>d,default:()=>h,frontMatter:()=>u,metadata:()=>m,toc:()=>f});var s=i(4848),n=i(8453),a=i(1812);const l=JSON.parse('{"timing":{"repeat":{"timeOfDay":["15:00:00"]}}}');var r=i(4865),o=i(9365),c=i(816);const u={description:"Single item",title:"\u274c Single item"},d=void 0,m={id:"specs/timeOfDay/single_item",title:"\u274c Single item",description:"Single item",source:"@site/docs/specs/timeOfDay/single_item.mdx",sourceDirName:"specs/timeOfDay",slug:"/specs/timeOfDay/single_item",permalink:"/fhir-dosage-utils/docs/specs/timeOfDay/single_item",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/timeOfDay/single_item.mdx",tags:[],version:"current",frontMatter:{description:"Single item",title:"\u274c Single item"},sidebar:"tutorialSidebar",previous:{title:"\u2795 Multiple items",permalink:"/fhir-dosage-utils/docs/specs/timeOfDay/multiple_items"},next:{title:"\ud83d\udee0\ufe0f Customizations",permalink:"/fhir-dosage-utils/docs/demo/custom"}},g={},f=[];function p(e){return(0,s.jsxs)(r.A,{children:[(0,s.jsx)(o.A,{value:"text",label:"Human readable text",default:!0,children:(0,s.jsx)(c.A,{dosage:l})}),(0,s.jsx)(o.A,{value:"json",label:"Dosage",children:(0,s.jsx)(a.default,{language:"json",children:JSON.stringify(l,null,2)})})]})}function h(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(p,{...e})}):p()}},816:(e,t,i)=>{i.d(t,{A:()=>r});var s=i(6540),n=i(6300),a=i(1812),l=i(4848);function r(e){let{dosage:t,config:i,i18nConfig:r}=e;const[o,c]=(0,s.useState)(""),[u,d]=(0,s.useState)(i?.language||"en"),[m,g]=(0,s.useState)(null);(0,s.useEffect)((()=>{!async function(){const e=await n.A.build(i,r);g(e)}()}),[i]),(0,s.useEffect)((()=>{!async function(){if(m){const e=m.fromDosageToText(t);c(e)}}()}),[t,m]);return(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{style:{display:"flex"},children:[(0,l.jsxs)("select",{value:u,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,l.jsx)("option",{value:"en",children:"English"}),(0,l.jsx)("option",{value:"fr",children:"French"}),(0,l.jsx)("option",{value:"nl",children:"Dutch"}),(0,l.jsx)("option",{value:"de",children:"German"})]}),(0,l.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(u);const e=m.fromDosageToText(t);c(e)}},children:"Confirm"})]}),(0,l.jsx)("div",{style:{marginTop:"10px"},children:(0,l.jsx)(a.default,{language:"markup",children:(f=o,f.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var f}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[2188],{2809:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>g,contentTitle:()=>d,default:()=>h,frontMatter:()=>u,metadata:()=>m,toc:()=>f});var s=i(4848),n=i(8453),a=i(1812);const l=JSON.parse('{"timing":{"repeat":{"timeOfDay":["15:00:00"]}}}');var r=i(4865),o=i(9365),c=i(816);const u={description:"Single item",title:"\u274c Single item"},d=void 0,m={id:"specs/timeOfDay/single_item",title:"\u274c Single item",description:"Single item",source:"@site/docs/specs/timeOfDay/single_item.mdx",sourceDirName:"specs/timeOfDay",slug:"/specs/timeOfDay/single_item",permalink:"/fhir-dosage-utils/docs/specs/timeOfDay/single_item",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/timeOfDay/single_item.mdx",tags:[],version:"current",frontMatter:{description:"Single item",title:"\u274c Single item"},sidebar:"tutorialSidebar",previous:{title:"\u2795 Multiple items",permalink:"/fhir-dosage-utils/docs/specs/timeOfDay/multiple_items"},next:{title:"\ud83d\udee0\ufe0f Customizations",permalink:"/fhir-dosage-utils/docs/demo/custom"}},g={},f=[];function p(e){return(0,s.jsxs)(r.A,{children:[(0,s.jsx)(o.A,{value:"text",label:"Human readable text",default:!0,children:(0,s.jsx)(c.A,{dosage:l})}),(0,s.jsx)(o.A,{value:"json",label:"Dosage",children:(0,s.jsx)(a.default,{language:"json",children:JSON.stringify(l,null,2)})})]})}function h(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(p,{...e})}):p()}},816:(e,t,i)=>{i.d(t,{A:()=>r});var s=i(6540),n=i(6300),a=i(1812),l=i(4848);function r(e){let{dosage:t,config:i,i18nConfig:r}=e;const[o,c]=(0,s.useState)(""),[u,d]=(0,s.useState)(i?.language||"en"),[m,g]=(0,s.useState)(null);(0,s.useEffect)((()=>{!async function(){const e=await n.A.build(i,r);g(e)}()}),[i]),(0,s.useEffect)((()=>{!async function(){if(m){const e=m.fromDosageToText(t);c(e)}}()}),[t,m]);return(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{style:{display:"flex"},children:[(0,l.jsxs)("select",{value:u,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,l.jsx)("option",{value:"en",children:"English"}),(0,l.jsx)("option",{value:"fr",children:"French"}),(0,l.jsx)("option",{value:"nl",children:"Dutch"}),(0,l.jsx)("option",{value:"de",children:"German"})]}),(0,l.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(u);const e=m.fromDosageToText(t);c(e)}},children:"Confirm"})]}),(0,l.jsx)("div",{style:{marginTop:"10px"},children:(0,l.jsx)(a.default,{language:"markup",children:(f=o,f.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var f}}}]); \ No newline at end of file diff --git a/assets/js/12564d99.d5638e32.js b/assets/js/12564d99.0bf99708.js similarity index 94% rename from assets/js/12564d99.d5638e32.js rename to assets/js/12564d99.0bf99708.js index 784f3d16..d0ce5747 100644 --- a/assets/js/12564d99.d5638e32.js +++ b/assets/js/12564d99.0bf99708.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[8937],{6288:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>u,default:()=>h,frontMatter:()=>d,metadata:()=>g,toc:()=>m});var i=n(4848),s=n(8453),a=n(1812);const o=JSON.parse('{"additionalInstruction":[{"text":"Instruction 1"}]}');var r=n(4865),l=n(9365),c=n(816);const d={description:"Single item",title:"\u274c Single item"},u=void 0,g={id:"specs/additionalInstruction/single_item",title:"\u274c Single item",description:"Single item",source:"@site/docs/specs/additionalInstruction/single_item.mdx",sourceDirName:"specs/additionalInstruction",slug:"/specs/additionalInstruction/single_item",permalink:"/fhir-dosage-utils/docs/specs/additionalInstruction/single_item",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/additionalInstruction/single_item.mdx",tags:[],version:"current",frontMatter:{description:"Single item",title:"\u274c Single item"},sidebar:"tutorialSidebar",previous:{title:"\u2795 Multiple items",permalink:"/fhir-dosage-utils/docs/specs/additionalInstruction/multiple_items"},next:{title:"\u2753 asNeeded",permalink:"/fhir-dosage-utils/docs/category/-asneeded"}},p={},m=[];function f(e){const t={a:"a",admonition:"admonition",p:"p",...(0,s.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(r.A,{children:[(0,i.jsx)(l.A,{value:"text",label:"Human readable text",default:!0,children:(0,i.jsx)(c.A,{dosage:o})}),(0,i.jsx)(l.A,{value:"json",label:"Dosage",children:(0,i.jsx)(a.default,{language:"json",children:JSON.stringify(o,null,2)})})]}),"\n",(0,i.jsx)(t.admonition,{type:"tip",children:(0,i.jsxs)(t.p,{children:["Don't forget you can use ",(0,i.jsx)(t.a,{href:"/api/interface/Params",children:"fromCodeableConceptToString"})," option to fit your needs"]})})]})}function h(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(f,{...e})}):f(e)}},816:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(6540),s=n(6300),a=n(1812),o=n(4848);function r(e){let{dosage:t,config:n,i18nConfig:r}=e;const[l,c]=(0,i.useState)(""),[d,u]=(0,i.useState)(n?.language||"en"),[g,p]=(0,i.useState)(null);(0,i.useEffect)((()=>{!async function(){const e=await s.A.build(n,r);p(e)}()}),[n]),(0,i.useEffect)((()=>{!async function(){if(g){const e=g.fromDosageToText(t);c(e)}}()}),[t,g]);return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{style:{display:"flex"},children:[(0,o.jsxs)("select",{value:d,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,o.jsx)("option",{value:"en",children:"English"}),(0,o.jsx)("option",{value:"fr",children:"French"}),(0,o.jsx)("option",{value:"nl",children:"Dutch"}),(0,o.jsx)("option",{value:"de",children:"German"})]}),(0,o.jsx)("button",{onClick:async()=>{if(g){await g.changeLanguage(d);const e=g.fromDosageToText(t);c(e)}},children:"Confirm"})]}),(0,o.jsx)("div",{style:{marginTop:"10px"},children:(0,o.jsx)(a.default,{language:"markup",children:(m=l,m.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var m}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[8937],{6288:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>u,default:()=>h,frontMatter:()=>d,metadata:()=>g,toc:()=>m});var i=n(4848),s=n(8453),a=n(1812);const o=JSON.parse('{"additionalInstruction":[{"text":"Instruction 1"}]}');var r=n(4865),l=n(9365),c=n(816);const d={description:"Single item",title:"\u274c Single item"},u=void 0,g={id:"specs/additionalInstruction/single_item",title:"\u274c Single item",description:"Single item",source:"@site/docs/specs/additionalInstruction/single_item.mdx",sourceDirName:"specs/additionalInstruction",slug:"/specs/additionalInstruction/single_item",permalink:"/fhir-dosage-utils/docs/specs/additionalInstruction/single_item",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/additionalInstruction/single_item.mdx",tags:[],version:"current",frontMatter:{description:"Single item",title:"\u274c Single item"},sidebar:"tutorialSidebar",previous:{title:"\u2795 Multiple items",permalink:"/fhir-dosage-utils/docs/specs/additionalInstruction/multiple_items"},next:{title:"\u2753 asNeeded",permalink:"/fhir-dosage-utils/docs/category/-asneeded"}},p={},m=[];function f(e){const t={a:"a",admonition:"admonition",p:"p",...(0,s.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(r.A,{children:[(0,i.jsx)(l.A,{value:"text",label:"Human readable text",default:!0,children:(0,i.jsx)(c.A,{dosage:o})}),(0,i.jsx)(l.A,{value:"json",label:"Dosage",children:(0,i.jsx)(a.default,{language:"json",children:JSON.stringify(o,null,2)})})]}),"\n",(0,i.jsx)(t.admonition,{type:"tip",children:(0,i.jsxs)(t.p,{children:["Don't forget you can use ",(0,i.jsx)(t.a,{href:"/api/interface/Params",children:"fromCodeableConceptToString"})," option to fit your needs"]})})]})}function h(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(f,{...e})}):f(e)}},816:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(6540),s=n(6300),a=n(1812),o=n(4848);function r(e){let{dosage:t,config:n,i18nConfig:r}=e;const[l,c]=(0,i.useState)(""),[d,u]=(0,i.useState)(n?.language||"en"),[g,p]=(0,i.useState)(null);(0,i.useEffect)((()=>{!async function(){const e=await s.A.build(n,r);p(e)}()}),[n]),(0,i.useEffect)((()=>{!async function(){if(g){const e=g.fromDosageToText(t);c(e)}}()}),[t,g]);return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{style:{display:"flex"},children:[(0,o.jsxs)("select",{value:d,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,o.jsx)("option",{value:"en",children:"English"}),(0,o.jsx)("option",{value:"fr",children:"French"}),(0,o.jsx)("option",{value:"nl",children:"Dutch"}),(0,o.jsx)("option",{value:"de",children:"German"})]}),(0,o.jsx)("button",{onClick:async()=>{if(g){await g.changeLanguage(d);const e=g.fromDosageToText(t);c(e)}},children:"Confirm"})]}),(0,o.jsx)("div",{style:{marginTop:"10px"},children:(0,o.jsx)(a.default,{language:"markup",children:(m=l,m.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var m}}}]); \ No newline at end of file diff --git a/assets/js/133d1207.6b5eed78.js b/assets/js/133d1207.3fb61e5f.js similarity index 92% rename from assets/js/133d1207.6b5eed78.js rename to assets/js/133d1207.3fb61e5f.js index a04f736c..2404651d 100644 --- a/assets/js/133d1207.6b5eed78.js +++ b/assets/js/133d1207.3fb61e5f.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[5276],{2596:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>x,contentTitle:()=>f,default:()=>g,frontMatter:()=>l,metadata:()=>d,toc:()=>y});var a=r(4848),t=r(8453),c=r(1812);const s=JSON.parse('{"timing":{"repeat":{"frequencyMax":5}}}');var u=r(4865),i=r(9365),o=r(816);const l={description:"frequencyMax only",title:"\ud83d\udd01 frequencyMax"},f=void 0,d={id:"specs/frequencyFrequencyMax/frequencyMax_only",title:"\ud83d\udd01 frequencyMax",description:"frequencyMax only",source:"@site/docs/specs/frequencyFrequencyMax/frequencyMax_only.mdx",sourceDirName:"specs/frequencyFrequencyMax",slug:"/specs/frequencyFrequencyMax/frequencyMax_only",permalink:"/fhir-dosage-utils/docs/specs/frequencyFrequencyMax/frequencyMax_only",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/frequencyFrequencyMax/frequencyMax_only.mdx",tags:[],version:"current",frontMatter:{description:"frequencyMax only",title:"\ud83d\udd01 frequencyMax"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udd01 frequencyFrequencyMax",permalink:"/fhir-dosage-utils/docs/category/-frequencyfrequencymax"},next:{title:"\ud83d\udd01 frequency and frequencyMax",permalink:"/fhir-dosage-utils/docs/specs/frequencyFrequencyMax/frequency_and_frequencyMax"}},x={},y=[];function p(e){return(0,a.jsxs)(u.A,{children:[(0,a.jsx)(i.A,{value:"text",label:"Human readable text",default:!0,children:(0,a.jsx)(o.A,{dosage:s})}),(0,a.jsx)(i.A,{value:"json",label:"Dosage",children:(0,a.jsx)(c.default,{language:"json",children:JSON.stringify(s,null,2)})})]})}function g(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(p,{...e})}):p()}},816:(e,n,r)=>{r.d(n,{A:()=>u});var a=r(6540),t=r(6300),c=r(1812),s=r(4848);function u(e){let{dosage:n,config:r,i18nConfig:u}=e;const[i,o]=(0,a.useState)(""),[l,f]=(0,a.useState)(r?.language||"en"),[d,x]=(0,a.useState)(null);(0,a.useEffect)((()=>{!async function(){const e=await t.A.build(r,u);x(e)}()}),[r]),(0,a.useEffect)((()=>{!async function(){if(d){const e=d.fromDosageToText(n);o(e)}}()}),[n,d]);return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{style:{display:"flex"},children:[(0,s.jsxs)("select",{value:l,onChange:e=>f(e.target.value),style:{marginRight:"10px"},children:[(0,s.jsx)("option",{value:"en",children:"English"}),(0,s.jsx)("option",{value:"fr",children:"French"}),(0,s.jsx)("option",{value:"nl",children:"Dutch"}),(0,s.jsx)("option",{value:"de",children:"German"})]}),(0,s.jsx)("button",{onClick:async()=>{if(d){await d.changeLanguage(l);const e=d.fromDosageToText(n);o(e)}},children:"Confirm"})]}),(0,s.jsx)("div",{style:{marginTop:"10px"},children:(0,s.jsx)(c.default,{language:"markup",children:(y=i,y.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var y}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[5276],{2596:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>x,contentTitle:()=>f,default:()=>g,frontMatter:()=>l,metadata:()=>d,toc:()=>y});var a=r(4848),t=r(8453),c=r(1812);const s=JSON.parse('{"timing":{"repeat":{"frequencyMax":5}}}');var u=r(4865),i=r(9365),o=r(816);const l={description:"frequencyMax only",title:"\ud83d\udd01 frequencyMax"},f=void 0,d={id:"specs/frequencyFrequencyMax/frequencyMax_only",title:"\ud83d\udd01 frequencyMax",description:"frequencyMax only",source:"@site/docs/specs/frequencyFrequencyMax/frequencyMax_only.mdx",sourceDirName:"specs/frequencyFrequencyMax",slug:"/specs/frequencyFrequencyMax/frequencyMax_only",permalink:"/fhir-dosage-utils/docs/specs/frequencyFrequencyMax/frequencyMax_only",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/frequencyFrequencyMax/frequencyMax_only.mdx",tags:[],version:"current",frontMatter:{description:"frequencyMax only",title:"\ud83d\udd01 frequencyMax"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udd01 frequencyFrequencyMax",permalink:"/fhir-dosage-utils/docs/category/-frequencyfrequencymax"},next:{title:"\ud83d\udd01 frequency and frequencyMax",permalink:"/fhir-dosage-utils/docs/specs/frequencyFrequencyMax/frequency_and_frequencyMax"}},x={},y=[];function p(e){return(0,a.jsxs)(u.A,{children:[(0,a.jsx)(i.A,{value:"text",label:"Human readable text",default:!0,children:(0,a.jsx)(o.A,{dosage:s})}),(0,a.jsx)(i.A,{value:"json",label:"Dosage",children:(0,a.jsx)(c.default,{language:"json",children:JSON.stringify(s,null,2)})})]})}function g(e={}){const{wrapper:n}={...(0,t.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(p,{...e})}):p()}},816:(e,n,r)=>{r.d(n,{A:()=>u});var a=r(6540),t=r(6300),c=r(1812),s=r(4848);function u(e){let{dosage:n,config:r,i18nConfig:u}=e;const[i,o]=(0,a.useState)(""),[l,f]=(0,a.useState)(r?.language||"en"),[d,x]=(0,a.useState)(null);(0,a.useEffect)((()=>{!async function(){const e=await t.A.build(r,u);x(e)}()}),[r]),(0,a.useEffect)((()=>{!async function(){if(d){const e=d.fromDosageToText(n);o(e)}}()}),[n,d]);return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{style:{display:"flex"},children:[(0,s.jsxs)("select",{value:l,onChange:e=>f(e.target.value),style:{marginRight:"10px"},children:[(0,s.jsx)("option",{value:"en",children:"English"}),(0,s.jsx)("option",{value:"fr",children:"French"}),(0,s.jsx)("option",{value:"nl",children:"Dutch"}),(0,s.jsx)("option",{value:"de",children:"German"})]}),(0,s.jsx)("button",{onClick:async()=>{if(d){await d.changeLanguage(l);const e=d.fromDosageToText(n);o(e)}},children:"Confirm"})]}),(0,s.jsx)("div",{style:{marginTop:"10px"},children:(0,s.jsx)(c.default,{language:"markup",children:(y=i,y.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var y}}}]); \ No newline at end of file diff --git a/assets/js/139f9fbc.0d839473.js b/assets/js/139f9fbc.4a034eaa.js similarity index 62% rename from assets/js/139f9fbc.0d839473.js rename to assets/js/139f9fbc.4a034eaa.js index 01c45afa..3ac58338 100644 --- a/assets/js/139f9fbc.0d839473.js +++ b/assets/js/139f9fbc.4a034eaa.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[578],{4697:(e,i,r)=>{r.r(i),r.d(i,{assets:()=>f,contentTitle:()=>u,default:()=>h,frontMatter:()=>c,metadata:()=>p,toc:()=>g});var t=r(4848),o=r(8453),n=r(1812);const a=JSON.parse('{"timing":{"repeat":{"period":1,"periodUnit":"d"}}}');var s=r(4865),d=r(9365),l=r(816);const c={description:"period (only)",title:"\u267b\ufe0f period (only)"},u=void 0,p={id:"specs/periodPeriodMax/period_only",title:"\u267b\ufe0f period (only)",description:"period (only)",source:"@site/docs/specs/periodPeriodMax/period_only.mdx",sourceDirName:"specs/periodPeriodMax",slug:"/specs/periodPeriodMax/period_only",permalink:"/fhir-dosage-utils/docs/specs/periodPeriodMax/period_only",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/periodPeriodMax/period_only.mdx",tags:[],version:"current",frontMatter:{description:"period (only)",title:"\u267b\ufe0f period (only)"},sidebar:"tutorialSidebar",previous:{title:"\u267b\ufe0f period & periodMax",permalink:"/fhir-dosage-utils/docs/specs/periodPeriodMax/period_and_periodMax"},next:{title:"\u23f2\ufe0f rateQuantity",permalink:"/fhir-dosage-utils/docs/category/\ufe0f-ratequantity"}},f={},g=[];function x(e){return(0,t.jsxs)(s.A,{children:[(0,t.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,t.jsx)(l.A,{dosage:a})}),(0,t.jsx)(d.A,{value:"json",label:"Dosage",children:(0,t.jsx)(n.default,{language:"json",children:JSON.stringify(a,null,2)})})]})}function h(e={}){const{wrapper:i}={...(0,o.R)(),...e.components};return i?(0,t.jsx)(i,{...e,children:(0,t.jsx)(x,{...e})}):x()}},816:(e,i,r)=>{r.d(i,{A:()=>s});var t=r(6540),o=r(6300),n=r(1812),a=r(4848);function s(e){let{dosage:i,config:r,i18nConfig:s}=e;const[d,l]=(0,t.useState)(""),[c,u]=(0,t.useState)(r?.language||"en"),[p,f]=(0,t.useState)(null);(0,t.useEffect)((()=>{!async function(){const e=await o.A.build(r,s);f(e)}()}),[r]),(0,t.useEffect)((()=>{!async function(){if(p){const e=p.fromDosageToText(i);l(e)}}()}),[i,p]);return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{style:{display:"flex"},children:[(0,a.jsxs)("select",{value:c,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,a.jsx)("option",{value:"en",children:"English"}),(0,a.jsx)("option",{value:"fr",children:"French"}),(0,a.jsx)("option",{value:"nl",children:"Dutch"}),(0,a.jsx)("option",{value:"de",children:"German"})]}),(0,a.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(c);const e=p.fromDosageToText(i);l(e)}},children:"Confirm"})]}),(0,a.jsx)("div",{style:{marginTop:"10px"},children:(0,a.jsx)(n.default,{language:"markup",children:(g=d,g.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,i){return String.fromCharCode(i)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,i){return String.fromCharCode(parseInt(i,16))})))})})]});var g}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[578],{4697:(e,r,i)=>{i.r(r),i.d(r,{assets:()=>g,contentTitle:()=>u,default:()=>h,frontMatter:()=>c,metadata:()=>p,toc:()=>f});var t=i(4848),o=i(8453),n=i(1812);const a=JSON.parse('{"timing":{"repeat":{"period":1,"periodUnit":"d"}}}');var s=i(4865),d=i(9365),l=i(816);const c={description:"period (only)",title:"\u267b\ufe0f period (only)"},u=void 0,p={id:"specs/periodPeriodMax/period_only",title:"\u267b\ufe0f period (only)",description:"period (only)",source:"@site/docs/specs/periodPeriodMax/period_only.mdx",sourceDirName:"specs/periodPeriodMax",slug:"/specs/periodPeriodMax/period_only",permalink:"/fhir-dosage-utils/docs/specs/periodPeriodMax/period_only",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/periodPeriodMax/period_only.mdx",tags:[],version:"current",frontMatter:{description:"period (only)",title:"\u267b\ufe0f period (only)"},sidebar:"tutorialSidebar",previous:{title:"\u267b\ufe0f period & periodMax",permalink:"/fhir-dosage-utils/docs/specs/periodPeriodMax/period_and_periodMax"},next:{title:"\u23f2\ufe0f rateQuantity",permalink:"/fhir-dosage-utils/docs/category/\ufe0f-ratequantity"}},g={},f=[];function x(e){return(0,t.jsxs)(s.A,{children:[(0,t.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,t.jsx)(l.A,{dosage:a})}),(0,t.jsx)(d.A,{value:"json",label:"Dosage",children:(0,t.jsx)(n.default,{language:"json",children:JSON.stringify(a,null,2)})})]})}function h(e={}){const{wrapper:r}={...(0,o.R)(),...e.components};return r?(0,t.jsx)(r,{...e,children:(0,t.jsx)(x,{...e})}):x()}},816:(e,r,i)=>{i.d(r,{A:()=>s});var t=i(6540),o=i(6300),n=i(1812),a=i(4848);function s(e){let{dosage:r,config:i,i18nConfig:s}=e;const[d,l]=(0,t.useState)(""),[c,u]=(0,t.useState)(i?.language||"en"),[p,g]=(0,t.useState)(null);(0,t.useEffect)((()=>{!async function(){const e=await o.A.build(i,s);g(e)}()}),[i]),(0,t.useEffect)((()=>{!async function(){if(p){const e=p.fromDosageToText(r);l(e)}}()}),[r,p]);return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{style:{display:"flex"},children:[(0,a.jsxs)("select",{value:c,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,a.jsx)("option",{value:"en",children:"English"}),(0,a.jsx)("option",{value:"fr",children:"French"}),(0,a.jsx)("option",{value:"nl",children:"Dutch"}),(0,a.jsx)("option",{value:"de",children:"German"})]}),(0,a.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(c);const e=p.fromDosageToText(r);l(e)}},children:"Confirm"})]}),(0,a.jsx)("div",{style:{marginTop:"10px"},children:(0,a.jsx)(n.default,{language:"markup",children:(f=d,f.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,r){return String.fromCharCode(r)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,r){return String.fromCharCode(parseInt(r,16))})))})})]});var f}}}]); \ No newline at end of file diff --git a/assets/js/162bd28d.1f2d64d4.js b/assets/js/162bd28d.314f1e02.js similarity index 68% rename from assets/js/162bd28d.1f2d64d4.js rename to assets/js/162bd28d.314f1e02.js index 128b3942..c80ebe2d 100644 --- a/assets/js/162bd28d.1f2d64d4.js +++ b/assets/js/162bd28d.314f1e02.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[1740],{9300:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>h,contentTitle:()=>d,default:()=>m,frontMatter:()=>c,metadata:()=>g,toc:()=>p});var s=t(4848),o=t(8453),i=t(1812);const a=JSON.parse('{"timing":{"repeat":{"boundsRange":{"high":{"system":"http://hl7.org/fhir/ValueSet/duration-units","value":5,"code":"d"}}}}}');var r=t(4865),l=t(9365),u=t(816);const c={description:"High only",title:"\ud83d\udcd0 boundsDuration (High only)"},d=void 0,g={id:"specs/boundsRange/high_only",title:"\ud83d\udcd0 boundsDuration (High only)",description:"High only",source:"@site/docs/specs/boundsRange/high_only.mdx",sourceDirName:"specs/boundsRange",slug:"/specs/boundsRange/high_only",permalink:"/fhir-dosage-utils/docs/specs/boundsRange/high_only",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/boundsRange/high_only.mdx",tags:[],version:"current",frontMatter:{description:"High only",title:"\ud83d\udcd0 boundsDuration (High only)"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udcd0 boundsRange",permalink:"/fhir-dosage-utils/docs/category/-boundsrange"},next:{title:"\ud83d\udcd0 boundsDuration (Low & High)",permalink:"/fhir-dosage-utils/docs/specs/boundsRange/low_and_high"}},h={},p=[];function f(e){const n={a:"a",admonition:"admonition",p:"p",...(0,o.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(r.A,{children:[(0,s.jsx)(l.A,{value:"text",label:"Human readable text",default:!0,children:(0,s.jsx)(u.A,{dosage:a})}),(0,s.jsx)(l.A,{value:"json",label:"Dosage",children:(0,s.jsx)(i.default,{language:"json",children:JSON.stringify(a,null,2)})})]}),"\n",(0,s.jsx)(n.admonition,{type:"tip",children:(0,s.jsxs)(n.p,{children:["Don't forget you can use ",(0,s.jsx)(n.a,{href:"/api/interface/Params",children:"fromFHIRQuantityUnitToString"})," option to fit your needs"]})})]})}function m(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(f,{...e})}):f(e)}},816:(e,n,t)=>{t.d(n,{A:()=>r});var s=t(6540),o=t(6300),i=t(1812),a=t(4848);function r(e){let{dosage:n,config:t,i18nConfig:r}=e;const[l,u]=(0,s.useState)(""),[c,d]=(0,s.useState)(t?.language||"en"),[g,h]=(0,s.useState)(null);(0,s.useEffect)((()=>{!async function(){const e=await o.A.build(t,r);h(e)}()}),[t]),(0,s.useEffect)((()=>{!async function(){if(g){const e=g.fromDosageToText(n);u(e)}}()}),[n,g]);return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{style:{display:"flex"},children:[(0,a.jsxs)("select",{value:c,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,a.jsx)("option",{value:"en",children:"English"}),(0,a.jsx)("option",{value:"fr",children:"French"}),(0,a.jsx)("option",{value:"nl",children:"Dutch"}),(0,a.jsx)("option",{value:"de",children:"German"})]}),(0,a.jsx)("button",{onClick:async()=>{if(g){await g.changeLanguage(c);const e=g.fromDosageToText(n);u(e)}},children:"Confirm"})]}),(0,a.jsx)("div",{style:{marginTop:"10px"},children:(0,a.jsx)(i.default,{language:"markup",children:(p=l,p.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var p}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[1740],{9300:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>h,contentTitle:()=>d,default:()=>m,frontMatter:()=>c,metadata:()=>g,toc:()=>p});var s=t(4848),o=t(8453),a=t(1812);const i=JSON.parse('{"timing":{"repeat":{"boundsRange":{"high":{"system":"http://hl7.org/fhir/ValueSet/duration-units","value":5,"code":"d"}}}}}');var r=t(4865),l=t(9365),u=t(816);const c={description:"High only",title:"\ud83d\udcd0 boundsDuration (High only)"},d=void 0,g={id:"specs/boundsRange/high_only",title:"\ud83d\udcd0 boundsDuration (High only)",description:"High only",source:"@site/docs/specs/boundsRange/high_only.mdx",sourceDirName:"specs/boundsRange",slug:"/specs/boundsRange/high_only",permalink:"/fhir-dosage-utils/docs/specs/boundsRange/high_only",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/boundsRange/high_only.mdx",tags:[],version:"current",frontMatter:{description:"High only",title:"\ud83d\udcd0 boundsDuration (High only)"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udcd0 boundsRange",permalink:"/fhir-dosage-utils/docs/category/-boundsrange"},next:{title:"\ud83d\udcd0 boundsDuration (Low & High)",permalink:"/fhir-dosage-utils/docs/specs/boundsRange/low_and_high"}},h={},p=[];function f(e){const n={a:"a",admonition:"admonition",p:"p",...(0,o.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(r.A,{children:[(0,s.jsx)(l.A,{value:"text",label:"Human readable text",default:!0,children:(0,s.jsx)(u.A,{dosage:i})}),(0,s.jsx)(l.A,{value:"json",label:"Dosage",children:(0,s.jsx)(a.default,{language:"json",children:JSON.stringify(i,null,2)})})]}),"\n",(0,s.jsx)(n.admonition,{type:"tip",children:(0,s.jsxs)(n.p,{children:["Don't forget you can use ",(0,s.jsx)(n.a,{href:"/api/interface/Params",children:"fromFHIRQuantityUnitToString"})," option to fit your needs"]})})]})}function m(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(f,{...e})}):f(e)}},816:(e,n,t)=>{t.d(n,{A:()=>r});var s=t(6540),o=t(6300),a=t(1812),i=t(4848);function r(e){let{dosage:n,config:t,i18nConfig:r}=e;const[l,u]=(0,s.useState)(""),[c,d]=(0,s.useState)(t?.language||"en"),[g,h]=(0,s.useState)(null);(0,s.useEffect)((()=>{!async function(){const e=await o.A.build(t,r);h(e)}()}),[t]),(0,s.useEffect)((()=>{!async function(){if(g){const e=g.fromDosageToText(n);u(e)}}()}),[n,g]);return(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{style:{display:"flex"},children:[(0,i.jsxs)("select",{value:c,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,i.jsx)("option",{value:"en",children:"English"}),(0,i.jsx)("option",{value:"fr",children:"French"}),(0,i.jsx)("option",{value:"nl",children:"Dutch"}),(0,i.jsx)("option",{value:"de",children:"German"})]}),(0,i.jsx)("button",{onClick:async()=>{if(g){await g.changeLanguage(c);const e=g.fromDosageToText(n);u(e)}},children:"Confirm"})]}),(0,i.jsx)("div",{style:{marginTop:"10px"},children:(0,i.jsx)(a.default,{language:"markup",children:(p=l,p.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var p}}}]); \ No newline at end of file diff --git a/assets/js/1668a7c3.cc09ca6a.js b/assets/js/1668a7c3.4c35ddec.js similarity index 79% rename from assets/js/1668a7c3.cc09ca6a.js rename to assets/js/1668a7c3.4c35ddec.js index 0c5841da..d57af291 100644 --- a/assets/js/1668a7c3.cc09ca6a.js +++ b/assets/js/1668a7c3.4c35ddec.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[3790],{7141:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>f,contentTitle:()=>c,default:()=>x,frontMatter:()=>u,metadata:()=>p,toc:()=>g});var t=s(4848),o=s(8453),r=s(1812);const d=JSON.parse('{"timing":{"repeat":{"boundsPeriod":{"end":"2011-05-27"}}}}');var i=s(4865),a=s(9365),l=s(816);const u={description:"end only",title:"\u23f3 boundsPeriod (end only)"},c=void 0,p={id:"specs/boundsPeriod/end_only",title:"\u23f3 boundsPeriod (end only)",description:"end only",source:"@site/docs/specs/boundsPeriod/end_only.mdx",sourceDirName:"specs/boundsPeriod",slug:"/specs/boundsPeriod/end_only",permalink:"/fhir-dosage-utils/docs/specs/boundsPeriod/end_only",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/boundsPeriod/end_only.mdx",tags:[],version:"current",frontMatter:{description:"end only",title:"\u23f3 boundsPeriod (end only)"},sidebar:"tutorialSidebar",previous:{title:"\u23f3 boundsPeriod",permalink:"/fhir-dosage-utils/docs/category/-boundsperiod"},next:{title:"\u23f3 boundsPeriod (start & end)",permalink:"/fhir-dosage-utils/docs/specs/boundsPeriod/start_and_end"}},f={},g=[];function h(e){return(0,t.jsxs)(i.A,{children:[(0,t.jsx)(a.A,{value:"text",label:"Human readable text",default:!0,children:(0,t.jsx)(l.A,{dosage:d})}),(0,t.jsx)(a.A,{value:"json",label:"Dosage",children:(0,t.jsx)(r.default,{language:"json",children:JSON.stringify(d,null,2)})})]})}function x(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(h,{...e})}):h()}},816:(e,n,s)=>{s.d(n,{A:()=>i});var t=s(6540),o=s(6300),r=s(1812),d=s(4848);function i(e){let{dosage:n,config:s,i18nConfig:i}=e;const[a,l]=(0,t.useState)(""),[u,c]=(0,t.useState)(s?.language||"en"),[p,f]=(0,t.useState)(null);(0,t.useEffect)((()=>{!async function(){const e=await o.A.build(s,i);f(e)}()}),[s]),(0,t.useEffect)((()=>{!async function(){if(p){const e=p.fromDosageToText(n);l(e)}}()}),[n,p]);return(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{style:{display:"flex"},children:[(0,d.jsxs)("select",{value:u,onChange:e=>c(e.target.value),style:{marginRight:"10px"},children:[(0,d.jsx)("option",{value:"en",children:"English"}),(0,d.jsx)("option",{value:"fr",children:"French"}),(0,d.jsx)("option",{value:"nl",children:"Dutch"}),(0,d.jsx)("option",{value:"de",children:"German"})]}),(0,d.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(u);const e=p.fromDosageToText(n);l(e)}},children:"Confirm"})]}),(0,d.jsx)("div",{style:{marginTop:"10px"},children:(0,d.jsx)(r.default,{language:"markup",children:(g=a,g.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var g}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[3790],{7141:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>g,contentTitle:()=>c,default:()=>x,frontMatter:()=>u,metadata:()=>p,toc:()=>f});var t=s(4848),o=s(8453),r=s(1812);const d=JSON.parse('{"timing":{"repeat":{"boundsPeriod":{"end":"2011-05-27"}}}}');var i=s(4865),a=s(9365),l=s(816);const u={description:"end only",title:"\u23f3 boundsPeriod (end only)"},c=void 0,p={id:"specs/boundsPeriod/end_only",title:"\u23f3 boundsPeriod (end only)",description:"end only",source:"@site/docs/specs/boundsPeriod/end_only.mdx",sourceDirName:"specs/boundsPeriod",slug:"/specs/boundsPeriod/end_only",permalink:"/fhir-dosage-utils/docs/specs/boundsPeriod/end_only",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/boundsPeriod/end_only.mdx",tags:[],version:"current",frontMatter:{description:"end only",title:"\u23f3 boundsPeriod (end only)"},sidebar:"tutorialSidebar",previous:{title:"\u23f3 boundsPeriod",permalink:"/fhir-dosage-utils/docs/category/-boundsperiod"},next:{title:"\u23f3 boundsPeriod (start & end)",permalink:"/fhir-dosage-utils/docs/specs/boundsPeriod/start_and_end"}},g={},f=[];function h(e){return(0,t.jsxs)(i.A,{children:[(0,t.jsx)(a.A,{value:"text",label:"Human readable text",default:!0,children:(0,t.jsx)(l.A,{dosage:d})}),(0,t.jsx)(a.A,{value:"json",label:"Dosage",children:(0,t.jsx)(r.default,{language:"json",children:JSON.stringify(d,null,2)})})]})}function x(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(h,{...e})}):h()}},816:(e,n,s)=>{s.d(n,{A:()=>i});var t=s(6540),o=s(6300),r=s(1812),d=s(4848);function i(e){let{dosage:n,config:s,i18nConfig:i}=e;const[a,l]=(0,t.useState)(""),[u,c]=(0,t.useState)(s?.language||"en"),[p,g]=(0,t.useState)(null);(0,t.useEffect)((()=>{!async function(){const e=await o.A.build(s,i);g(e)}()}),[s]),(0,t.useEffect)((()=>{!async function(){if(p){const e=p.fromDosageToText(n);l(e)}}()}),[n,p]);return(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{style:{display:"flex"},children:[(0,d.jsxs)("select",{value:u,onChange:e=>c(e.target.value),style:{marginRight:"10px"},children:[(0,d.jsx)("option",{value:"en",children:"English"}),(0,d.jsx)("option",{value:"fr",children:"French"}),(0,d.jsx)("option",{value:"nl",children:"Dutch"}),(0,d.jsx)("option",{value:"de",children:"German"})]}),(0,d.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(u);const e=p.fromDosageToText(n);l(e)}},children:"Confirm"})]}),(0,d.jsx)("div",{style:{marginTop:"10px"},children:(0,d.jsx)(r.default,{language:"markup",children:(f=a,f.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var f}}}]); \ No newline at end of file diff --git a/assets/js/17baba0b.3d2ac1a2.js b/assets/js/17baba0b.36fcb8a1.js similarity index 93% rename from assets/js/17baba0b.3d2ac1a2.js rename to assets/js/17baba0b.36fcb8a1.js index f22b68f2..c329540c 100644 --- a/assets/js/17baba0b.3d2ac1a2.js +++ b/assets/js/17baba0b.36fcb8a1.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[3709],{2092:(t,e,i)=>{i.r(e),i.d(e,{assets:()=>m,contentTitle:()=>d,default:()=>h,frontMatter:()=>u,metadata:()=>p,toc:()=>f});var n=i(4848),s=i(8453),a=i(1812);const o=JSON.parse('{"additionalInstruction":[{"text":"Instruction 1"},{"text":"Instruction 2"}]}');var l=i(4865),r=i(9365),c=i(816);const u={description:"Multiple items",title:"\u2795 Multiple items"},d=void 0,p={id:"specs/additionalInstruction/multiple_items",title:"\u2795 Multiple items",description:"Multiple items",source:"@site/docs/specs/additionalInstruction/multiple_items.mdx",sourceDirName:"specs/additionalInstruction",slug:"/specs/additionalInstruction/multiple_items",permalink:"/fhir-dosage-utils/docs/specs/additionalInstruction/multiple_items",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/additionalInstruction/multiple_items.mdx",tags:[],version:"current",frontMatter:{description:"Multiple items",title:"\u2795 Multiple items"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udcdd additionalInstruction",permalink:"/fhir-dosage-utils/docs/category/-additionalinstruction"},next:{title:"\u274c Single item",permalink:"/fhir-dosage-utils/docs/specs/additionalInstruction/single_item"}},m={},f=[];function g(t){const e={a:"a",admonition:"admonition",p:"p",...(0,s.R)(),...t.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(l.A,{children:[(0,n.jsx)(r.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(c.A,{dosage:o})}),(0,n.jsx)(r.A,{value:"json",label:"Dosage",children:(0,n.jsx)(a.default,{language:"json",children:JSON.stringify(o,null,2)})})]}),"\n",(0,n.jsx)(e.admonition,{type:"tip",children:(0,n.jsxs)(e.p,{children:["Don't forget you can use ",(0,n.jsx)(e.a,{href:"/api/interface/Params",children:"fromCodeableConceptToString"})," option to fit your needs"]})})]})}function h(t={}){const{wrapper:e}={...(0,s.R)(),...t.components};return e?(0,n.jsx)(e,{...t,children:(0,n.jsx)(g,{...t})}):g(t)}},816:(t,e,i)=>{i.d(e,{A:()=>l});var n=i(6540),s=i(6300),a=i(1812),o=i(4848);function l(t){let{dosage:e,config:i,i18nConfig:l}=t;const[r,c]=(0,n.useState)(""),[u,d]=(0,n.useState)(i?.language||"en"),[p,m]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const t=await s.A.build(i,l);m(t)}()}),[i]),(0,n.useEffect)((()=>{!async function(){if(p){const t=p.fromDosageToText(e);c(t)}}()}),[e,p]);return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{style:{display:"flex"},children:[(0,o.jsxs)("select",{value:u,onChange:t=>d(t.target.value),style:{marginRight:"10px"},children:[(0,o.jsx)("option",{value:"en",children:"English"}),(0,o.jsx)("option",{value:"fr",children:"French"}),(0,o.jsx)("option",{value:"nl",children:"Dutch"}),(0,o.jsx)("option",{value:"de",children:"German"})]}),(0,o.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(u);const t=p.fromDosageToText(e);c(t)}},children:"Confirm"})]}),(0,o.jsx)("div",{style:{marginTop:"10px"},children:(0,o.jsx)(a.default,{language:"markup",children:(f=r,f.replace(/"/g,'"').replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(e)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(t,e){return String.fromCharCode(parseInt(e,16))})))})})]});var f}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[3709],{2092:(t,e,i)=>{i.r(e),i.d(e,{assets:()=>m,contentTitle:()=>d,default:()=>h,frontMatter:()=>u,metadata:()=>p,toc:()=>f});var n=i(4848),s=i(8453),a=i(1812);const o=JSON.parse('{"additionalInstruction":[{"text":"Instruction 1"},{"text":"Instruction 2"}]}');var l=i(4865),r=i(9365),c=i(816);const u={description:"Multiple items",title:"\u2795 Multiple items"},d=void 0,p={id:"specs/additionalInstruction/multiple_items",title:"\u2795 Multiple items",description:"Multiple items",source:"@site/docs/specs/additionalInstruction/multiple_items.mdx",sourceDirName:"specs/additionalInstruction",slug:"/specs/additionalInstruction/multiple_items",permalink:"/fhir-dosage-utils/docs/specs/additionalInstruction/multiple_items",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/additionalInstruction/multiple_items.mdx",tags:[],version:"current",frontMatter:{description:"Multiple items",title:"\u2795 Multiple items"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udcdd additionalInstruction",permalink:"/fhir-dosage-utils/docs/category/-additionalinstruction"},next:{title:"\u274c Single item",permalink:"/fhir-dosage-utils/docs/specs/additionalInstruction/single_item"}},m={},f=[];function g(t){const e={a:"a",admonition:"admonition",p:"p",...(0,s.R)(),...t.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(l.A,{children:[(0,n.jsx)(r.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(c.A,{dosage:o})}),(0,n.jsx)(r.A,{value:"json",label:"Dosage",children:(0,n.jsx)(a.default,{language:"json",children:JSON.stringify(o,null,2)})})]}),"\n",(0,n.jsx)(e.admonition,{type:"tip",children:(0,n.jsxs)(e.p,{children:["Don't forget you can use ",(0,n.jsx)(e.a,{href:"/api/interface/Params",children:"fromCodeableConceptToString"})," option to fit your needs"]})})]})}function h(t={}){const{wrapper:e}={...(0,s.R)(),...t.components};return e?(0,n.jsx)(e,{...t,children:(0,n.jsx)(g,{...t})}):g(t)}},816:(t,e,i)=>{i.d(e,{A:()=>l});var n=i(6540),s=i(6300),a=i(1812),o=i(4848);function l(t){let{dosage:e,config:i,i18nConfig:l}=t;const[r,c]=(0,n.useState)(""),[u,d]=(0,n.useState)(i?.language||"en"),[p,m]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const t=await s.A.build(i,l);m(t)}()}),[i]),(0,n.useEffect)((()=>{!async function(){if(p){const t=p.fromDosageToText(e);c(t)}}()}),[e,p]);return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{style:{display:"flex"},children:[(0,o.jsxs)("select",{value:u,onChange:t=>d(t.target.value),style:{marginRight:"10px"},children:[(0,o.jsx)("option",{value:"en",children:"English"}),(0,o.jsx)("option",{value:"fr",children:"French"}),(0,o.jsx)("option",{value:"nl",children:"Dutch"}),(0,o.jsx)("option",{value:"de",children:"German"})]}),(0,o.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(u);const t=p.fromDosageToText(e);c(t)}},children:"Confirm"})]}),(0,o.jsx)("div",{style:{marginTop:"10px"},children:(0,o.jsx)(a.default,{language:"markup",children:(f=r,f.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(e)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(t,e){return String.fromCharCode(parseInt(e,16))})))})})]});var f}}}]); \ No newline at end of file diff --git a/assets/js/1c1d0071.5e58e581.js b/assets/js/1c1d0071.ff9e7b0c.js similarity index 92% rename from assets/js/1c1d0071.5e58e581.js rename to assets/js/1c1d0071.ff9e7b0c.js index 72a35e26..0d11f0d5 100644 --- a/assets/js/1c1d0071.5e58e581.js +++ b/assets/js/1c1d0071.ff9e7b0c.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[9748],{6693:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>f,contentTitle:()=>d,default:()=>g,frontMatter:()=>u,metadata:()=>h,toc:()=>p});var s=n(4848),i=n(8453),l=n(1812);const a=JSON.parse('{"timing":{"repeat":{"when":["MORN","AFT"]}}}');var r=n(4865),o=n(9365),c=n(816);const u={description:"when - multiple items",title:"\ud83d\udd52 When (Multiple items)"},d=void 0,h={id:"specs/offsetWhen/when/multiple_items",title:"\ud83d\udd52 When (Multiple items)",description:"when - multiple items",source:"@site/docs/specs/offsetWhen/when/multiple_items.mdx",sourceDirName:"specs/offsetWhen/when",slug:"/specs/offsetWhen/when/multiple_items",permalink:"/fhir-dosage-utils/docs/specs/offsetWhen/when/multiple_items",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/offsetWhen/when/multiple_items.mdx",tags:[],version:"current",frontMatter:{description:"when - multiple items",title:"\ud83d\udd52 When (Multiple items)"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udd52 when",permalink:"/fhir-dosage-utils/docs/category/-when"},next:{title:"\ud83d\udd52 When (Single item)",permalink:"/fhir-dosage-utils/docs/specs/offsetWhen/when/single_item"}},f={},p=[];function m(e){return(0,s.jsxs)(r.A,{children:[(0,s.jsx)(o.A,{value:"text",label:"Human readable text",default:!0,children:(0,s.jsx)(c.A,{dosage:a})}),(0,s.jsx)(o.A,{value:"json",label:"Dosage",children:(0,s.jsx)(l.default,{language:"json",children:JSON.stringify(a,null,2)})})]})}function g(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(m,{...e})}):m()}},816:(e,t,n)=>{n.d(t,{A:()=>r});var s=n(6540),i=n(6300),l=n(1812),a=n(4848);function r(e){let{dosage:t,config:n,i18nConfig:r}=e;const[o,c]=(0,s.useState)(""),[u,d]=(0,s.useState)(n?.language||"en"),[h,f]=(0,s.useState)(null);(0,s.useEffect)((()=>{!async function(){const e=await i.A.build(n,r);f(e)}()}),[n]),(0,s.useEffect)((()=>{!async function(){if(h){const e=h.fromDosageToText(t);c(e)}}()}),[t,h]);return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{style:{display:"flex"},children:[(0,a.jsxs)("select",{value:u,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,a.jsx)("option",{value:"en",children:"English"}),(0,a.jsx)("option",{value:"fr",children:"French"}),(0,a.jsx)("option",{value:"nl",children:"Dutch"}),(0,a.jsx)("option",{value:"de",children:"German"})]}),(0,a.jsx)("button",{onClick:async()=>{if(h){await h.changeLanguage(u);const e=h.fromDosageToText(t);c(e)}},children:"Confirm"})]}),(0,a.jsx)("div",{style:{marginTop:"10px"},children:(0,a.jsx)(l.default,{language:"markup",children:(p=o,p.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var p}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[9748],{6693:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>f,contentTitle:()=>d,default:()=>g,frontMatter:()=>u,metadata:()=>h,toc:()=>p});var s=n(4848),i=n(8453),l=n(1812);const a=JSON.parse('{"timing":{"repeat":{"when":["MORN","AFT"]}}}');var r=n(4865),o=n(9365),c=n(816);const u={description:"when - multiple items",title:"\ud83d\udd52 When (Multiple items)"},d=void 0,h={id:"specs/offsetWhen/when/multiple_items",title:"\ud83d\udd52 When (Multiple items)",description:"when - multiple items",source:"@site/docs/specs/offsetWhen/when/multiple_items.mdx",sourceDirName:"specs/offsetWhen/when",slug:"/specs/offsetWhen/when/multiple_items",permalink:"/fhir-dosage-utils/docs/specs/offsetWhen/when/multiple_items",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/offsetWhen/when/multiple_items.mdx",tags:[],version:"current",frontMatter:{description:"when - multiple items",title:"\ud83d\udd52 When (Multiple items)"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udd52 when",permalink:"/fhir-dosage-utils/docs/category/-when"},next:{title:"\ud83d\udd52 When (Single item)",permalink:"/fhir-dosage-utils/docs/specs/offsetWhen/when/single_item"}},f={},p=[];function m(e){return(0,s.jsxs)(r.A,{children:[(0,s.jsx)(o.A,{value:"text",label:"Human readable text",default:!0,children:(0,s.jsx)(c.A,{dosage:a})}),(0,s.jsx)(o.A,{value:"json",label:"Dosage",children:(0,s.jsx)(l.default,{language:"json",children:JSON.stringify(a,null,2)})})]})}function g(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(m,{...e})}):m()}},816:(e,t,n)=>{n.d(t,{A:()=>r});var s=n(6540),i=n(6300),l=n(1812),a=n(4848);function r(e){let{dosage:t,config:n,i18nConfig:r}=e;const[o,c]=(0,s.useState)(""),[u,d]=(0,s.useState)(n?.language||"en"),[h,f]=(0,s.useState)(null);(0,s.useEffect)((()=>{!async function(){const e=await i.A.build(n,r);f(e)}()}),[n]),(0,s.useEffect)((()=>{!async function(){if(h){const e=h.fromDosageToText(t);c(e)}}()}),[t,h]);return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{style:{display:"flex"},children:[(0,a.jsxs)("select",{value:u,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,a.jsx)("option",{value:"en",children:"English"}),(0,a.jsx)("option",{value:"fr",children:"French"}),(0,a.jsx)("option",{value:"nl",children:"Dutch"}),(0,a.jsx)("option",{value:"de",children:"German"})]}),(0,a.jsx)("button",{onClick:async()=>{if(h){await h.changeLanguage(u);const e=h.fromDosageToText(t);c(e)}},children:"Confirm"})]}),(0,a.jsx)("div",{style:{marginTop:"10px"},children:(0,a.jsx)(l.default,{language:"markup",children:(p=o,p.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var p}}}]); \ No newline at end of file diff --git a/assets/js/1cd656ab.5e013c43.js b/assets/js/1cd656ab.edcda32f.js similarity index 91% rename from assets/js/1cd656ab.5e013c43.js rename to assets/js/1cd656ab.edcda32f.js index a34ad752..884a893e 100644 --- a/assets/js/1cd656ab.5e013c43.js +++ b/assets/js/1cd656ab.edcda32f.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[4697],{1553:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>f,contentTitle:()=>u,default:()=>x,frontMatter:()=>d,metadata:()=>p,toc:()=>g});var n=s(4848),i=s(8453),a=s(1812);const r=JSON.parse('{"site":{"coding":[{"system":"http://hl7.org/fhir/ValueSet/approach-site-codes","code":"1910005","display":"Entire ear"}]}}');var o=s(4865),c=s(9365),l=s(816);const d={description:"site",title:"\ud83d\udccd site"},u=void 0,p={id:"specs/site/site",title:"\ud83d\udccd site",description:"site",source:"@site/docs/specs/site/site.mdx",sourceDirName:"specs/site",slug:"/specs/site/",permalink:"/fhir-dosage-utils/docs/specs/site/",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/site/site.mdx",tags:[],version:"current",frontMatter:{description:"site",title:"\ud83d\udccd site"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udccd site",permalink:"/fhir-dosage-utils/docs/category/-site"},next:{title:"\ud83d\udcdd text",permalink:"/fhir-dosage-utils/docs/category/-text"}},f={},g=[];function h(e){const t={a:"a",admonition:"admonition",p:"p",...(0,i.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(o.A,{children:[(0,n.jsx)(c.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(l.A,{dosage:r})}),(0,n.jsx)(c.A,{value:"json",label:"Dosage",children:(0,n.jsx)(a.default,{language:"json",children:JSON.stringify(r,null,2)})})]}),"\n",(0,n.jsx)(t.admonition,{type:"tip",children:(0,n.jsxs)(t.p,{children:["Don't forget you can use ",(0,n.jsx)(t.a,{href:"/api/interface/Params",children:"fromCodeableConceptToString"})," option to fit your needs"]})})]})}function x(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(h,{...e})}):h(e)}},816:(e,t,s)=>{s.d(t,{A:()=>o});var n=s(6540),i=s(6300),a=s(1812),r=s(4848);function o(e){let{dosage:t,config:s,i18nConfig:o}=e;const[c,l]=(0,n.useState)(""),[d,u]=(0,n.useState)(s?.language||"en"),[p,f]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await i.A.build(s,o);f(e)}()}),[s]),(0,n.useEffect)((()=>{!async function(){if(p){const e=p.fromDosageToText(t);l(e)}}()}),[t,p]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:d,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(d);const e=p.fromDosageToText(t);l(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(a.default,{language:"markup",children:(g=c,g.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[4697],{1553:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>f,contentTitle:()=>u,default:()=>x,frontMatter:()=>d,metadata:()=>p,toc:()=>g});var n=s(4848),i=s(8453),a=s(1812);const r=JSON.parse('{"site":{"coding":[{"system":"http://hl7.org/fhir/ValueSet/approach-site-codes","code":"1910005","display":"Entire ear"}]}}');var o=s(4865),c=s(9365),l=s(816);const d={description:"site",title:"\ud83d\udccd site"},u=void 0,p={id:"specs/site/site",title:"\ud83d\udccd site",description:"site",source:"@site/docs/specs/site/site.mdx",sourceDirName:"specs/site",slug:"/specs/site/",permalink:"/fhir-dosage-utils/docs/specs/site/",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/site/site.mdx",tags:[],version:"current",frontMatter:{description:"site",title:"\ud83d\udccd site"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udccd site",permalink:"/fhir-dosage-utils/docs/category/-site"},next:{title:"\ud83d\udcdd text",permalink:"/fhir-dosage-utils/docs/category/-text"}},f={},g=[];function h(e){const t={a:"a",admonition:"admonition",p:"p",...(0,i.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(o.A,{children:[(0,n.jsx)(c.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(l.A,{dosage:r})}),(0,n.jsx)(c.A,{value:"json",label:"Dosage",children:(0,n.jsx)(a.default,{language:"json",children:JSON.stringify(r,null,2)})})]}),"\n",(0,n.jsx)(t.admonition,{type:"tip",children:(0,n.jsxs)(t.p,{children:["Don't forget you can use ",(0,n.jsx)(t.a,{href:"/api/interface/Params",children:"fromCodeableConceptToString"})," option to fit your needs"]})})]})}function x(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(h,{...e})}):h(e)}},816:(e,t,s)=>{s.d(t,{A:()=>o});var n=s(6540),i=s(6300),a=s(1812),r=s(4848);function o(e){let{dosage:t,config:s,i18nConfig:o}=e;const[c,l]=(0,n.useState)(""),[d,u]=(0,n.useState)(s?.language||"en"),[p,f]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await i.A.build(s,o);f(e)}()}),[s]),(0,n.useEffect)((()=>{!async function(){if(p){const e=p.fromDosageToText(t);l(e)}}()}),[t,p]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:d,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(d);const e=p.fromDosageToText(t);l(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(a.default,{language:"markup",children:(g=c,g.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}}}]); \ No newline at end of file diff --git a/assets/js/1f927e7e.cded6b75.js b/assets/js/1f927e7e.8701a39d.js similarity index 92% rename from assets/js/1f927e7e.cded6b75.js rename to assets/js/1f927e7e.8701a39d.js index 2917d423..a1a4bb2c 100644 --- a/assets/js/1f927e7e.cded6b75.js +++ b/assets/js/1f927e7e.8701a39d.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[4471],{6558:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>h,contentTitle:()=>d,default:()=>x,frontMatter:()=>l,metadata:()=>u,toc:()=>g});var s=n(4848),a=n(8453),o=n(1812);const i=JSON.parse('{"timing":{"repeat":{"offset":15,"when":["MORN"]}}}');var r=n(4865),c=n(9365),f=n(816);const l={description:"offset and when together",title:"\ud83d\udd52 offset and when"},d=void 0,u={id:"specs/offsetWhen/when_and_offset",title:"\ud83d\udd52 offset and when",description:"offset and when together",source:"@site/docs/specs/offsetWhen/when_and_offset.mdx",sourceDirName:"specs/offsetWhen",slug:"/specs/offsetWhen/when_and_offset",permalink:"/fhir-dosage-utils/docs/specs/offsetWhen/when_and_offset",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/offsetWhen/when_and_offset.mdx",tags:[],version:"current",frontMatter:{description:"offset and when together",title:"\ud83d\udd52 offset and when"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udd52 When (Single item)",permalink:"/fhir-dosage-utils/docs/specs/offsetWhen/when/single_item"},next:{title:"\ud83d\udccb patientInstruction",permalink:"/fhir-dosage-utils/docs/category/-patientinstruction"}},h={},g=[];function p(e){return(0,s.jsxs)(r.A,{children:[(0,s.jsx)(c.A,{value:"text",label:"Human readable text",default:!0,children:(0,s.jsx)(f.A,{dosage:i})}),(0,s.jsx)(c.A,{value:"json",label:"Dosage",children:(0,s.jsx)(o.default,{language:"json",children:JSON.stringify(i,null,2)})})]})}function x(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(p,{...e})}):p()}},816:(e,t,n)=>{n.d(t,{A:()=>r});var s=n(6540),a=n(6300),o=n(1812),i=n(4848);function r(e){let{dosage:t,config:n,i18nConfig:r}=e;const[c,f]=(0,s.useState)(""),[l,d]=(0,s.useState)(n?.language||"en"),[u,h]=(0,s.useState)(null);(0,s.useEffect)((()=>{!async function(){const e=await a.A.build(n,r);h(e)}()}),[n]),(0,s.useEffect)((()=>{!async function(){if(u){const e=u.fromDosageToText(t);f(e)}}()}),[t,u]);return(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{style:{display:"flex"},children:[(0,i.jsxs)("select",{value:l,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,i.jsx)("option",{value:"en",children:"English"}),(0,i.jsx)("option",{value:"fr",children:"French"}),(0,i.jsx)("option",{value:"nl",children:"Dutch"}),(0,i.jsx)("option",{value:"de",children:"German"})]}),(0,i.jsx)("button",{onClick:async()=>{if(u){await u.changeLanguage(l);const e=u.fromDosageToText(t);f(e)}},children:"Confirm"})]}),(0,i.jsx)("div",{style:{marginTop:"10px"},children:(0,i.jsx)(o.default,{language:"markup",children:(g=c,g.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[4471],{6558:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>h,contentTitle:()=>d,default:()=>x,frontMatter:()=>l,metadata:()=>u,toc:()=>g});var s=n(4848),a=n(8453),o=n(1812);const i=JSON.parse('{"timing":{"repeat":{"offset":15,"when":["MORN"]}}}');var r=n(4865),c=n(9365),f=n(816);const l={description:"offset and when together",title:"\ud83d\udd52 offset and when"},d=void 0,u={id:"specs/offsetWhen/when_and_offset",title:"\ud83d\udd52 offset and when",description:"offset and when together",source:"@site/docs/specs/offsetWhen/when_and_offset.mdx",sourceDirName:"specs/offsetWhen",slug:"/specs/offsetWhen/when_and_offset",permalink:"/fhir-dosage-utils/docs/specs/offsetWhen/when_and_offset",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/offsetWhen/when_and_offset.mdx",tags:[],version:"current",frontMatter:{description:"offset and when together",title:"\ud83d\udd52 offset and when"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udd52 When (Single item)",permalink:"/fhir-dosage-utils/docs/specs/offsetWhen/when/single_item"},next:{title:"\ud83d\udccb patientInstruction",permalink:"/fhir-dosage-utils/docs/category/-patientinstruction"}},h={},g=[];function p(e){return(0,s.jsxs)(r.A,{children:[(0,s.jsx)(c.A,{value:"text",label:"Human readable text",default:!0,children:(0,s.jsx)(f.A,{dosage:i})}),(0,s.jsx)(c.A,{value:"json",label:"Dosage",children:(0,s.jsx)(o.default,{language:"json",children:JSON.stringify(i,null,2)})})]})}function x(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(p,{...e})}):p()}},816:(e,t,n)=>{n.d(t,{A:()=>r});var s=n(6540),a=n(6300),o=n(1812),i=n(4848);function r(e){let{dosage:t,config:n,i18nConfig:r}=e;const[c,f]=(0,s.useState)(""),[l,d]=(0,s.useState)(n?.language||"en"),[u,h]=(0,s.useState)(null);(0,s.useEffect)((()=>{!async function(){const e=await a.A.build(n,r);h(e)}()}),[n]),(0,s.useEffect)((()=>{!async function(){if(u){const e=u.fromDosageToText(t);f(e)}}()}),[t,u]);return(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{style:{display:"flex"},children:[(0,i.jsxs)("select",{value:l,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,i.jsx)("option",{value:"en",children:"English"}),(0,i.jsx)("option",{value:"fr",children:"French"}),(0,i.jsx)("option",{value:"nl",children:"Dutch"}),(0,i.jsx)("option",{value:"de",children:"German"})]}),(0,i.jsx)("button",{onClick:async()=>{if(u){await u.changeLanguage(l);const e=u.fromDosageToText(t);f(e)}},children:"Confirm"})]}),(0,i.jsx)("div",{style:{marginTop:"10px"},children:(0,i.jsx)(o.default,{language:"markup",children:(g=c,g.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}}}]); \ No newline at end of file diff --git a/assets/js/201e0385.f93e38ed.js b/assets/js/201e0385.e822c840.js similarity index 95% rename from assets/js/201e0385.f93e38ed.js rename to assets/js/201e0385.e822c840.js index d4d5096a..8dca304b 100644 --- a/assets/js/201e0385.f93e38ed.js +++ b/assets/js/201e0385.e822c840.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[4081],{5368:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>c,default:()=>f,frontMatter:()=>l,metadata:()=>m,toc:()=>g});var s=n(4848),i=n(8453),o=n(1812);const a=JSON.parse('[{"sequence":2,"text":"inject 10 units subcut 10 minutes before breakfast","timing":{"repeat":{"frequency":1,"period":1,"periodUnit":"d","when":["ACM"],"offset":10}},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":10,"unit":"U","system":"http://unitsofmeasure.org","code":"U"}}]},{"sequence":2,"text":"15 units before lunch","additionalInstruction":[{"text":"Before Lunch"}],"timing":{"repeat":{"frequency":1,"period":1,"periodUnit":"d"}},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":15,"unit":"U","system":"http://unitsofmeasure.org","code":"U"}}]},{"sequence":1,"text":"20 units before dinner","additionalInstruction":[{"text":"Before Dinner"}],"timing":{"repeat":{"frequency":1,"period":1,"periodUnit":"d"}},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":20,"unit":"U","system":"http://unitsofmeasure.org","code":"U"}}]}]');var r=n(4865),d=n(9365),u=n(8264);const l={description:"Request for Subcutaneous injection with multiple dosage lines - Insulin - Novolog - active - includes reasonCode and note. Dosage includes additionalInstructions as text",title:"medrx0321"},c=void 0,m={id:"examples/medicationrequest/medrx0321",title:"medrx0321",description:"Request for Subcutaneous injection with multiple dosage lines - Insulin - Novolog - active - includes reasonCode and note. Dosage includes additionalInstructions as text",source:"@site/docs/examples/medicationrequest/medrx0321.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx0321",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0321",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx0321.mdx",tags:[],version:"current",frontMatter:{description:"Request for Subcutaneous injection with multiple dosage lines - Insulin - Novolog - active - includes reasonCode and note. Dosage includes additionalInstructions as text",title:"medrx0321"},sidebar:"tutorialSidebar",previous:{title:"medrx0319",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0319"},next:{title:"medrx0331",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0331"}},p={},g=[];function x(e){const t={a:"a",admonition:"admonition",p:"p",...(0,i.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.admonition,{type:"info",children:(0,s.jsxs)(t.p,{children:["Source: ",(0,s.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequest0321.html",children:"HL7"}),' - "Request for Subcutaneous injection with multiple dosage lines - Insulin - Novolog - active - includes reasonCode and note. Dosage includes additionalInstructions as text"']})}),"\n",(0,s.jsxs)(r.A,{children:[(0,s.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,s.jsx)(u.A,{dosages:a,config:{}})}),(0,s.jsx)(d.A,{value:"json",label:"Dosage",children:(0,s.jsx)(o.default,{language:"json",children:JSON.stringify(a,null,2)})})]})]})}function f(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(x,{...e})}):x(e)}},8264:(e,t,n)=>{n.d(t,{A:()=>r});var s=n(6540),i=n(6300),o=n(1812),a=n(4848);function r(e){let{dosages:t,config:n,i18nConfig:r}=e;const[d,u]=(0,s.useState)(""),[l,c]=(0,s.useState)(n?.language||"en"),[m,p]=(0,s.useState)(null);(0,s.useEffect)((()=>{!async function(){const e=await i.A.build(n,r);p(e)}()}),[n]),(0,s.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);u(e)}}()}),[t,m]);return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{style:{display:"flex"},children:[(0,a.jsxs)("select",{value:l,onChange:e=>c(e.target.value),style:{marginRight:"10px"},children:[(0,a.jsx)("option",{value:"en",children:"English"}),(0,a.jsx)("option",{value:"fr",children:"French"}),(0,a.jsx)("option",{value:"nl",children:"Dutch"}),(0,a.jsx)("option",{value:"de",children:"German"})]}),(0,a.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(l);const e=m.fromMultipleDosageToText(t);u(e)}},children:"Confirm"})]}),(0,a.jsx)("div",{style:{marginTop:"10px"},children:(0,a.jsx)(o.default,{language:"markup",children:(g=d,g.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[4081],{5368:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>c,default:()=>f,frontMatter:()=>l,metadata:()=>m,toc:()=>g});var s=n(4848),i=n(8453),o=n(1812);const a=JSON.parse('[{"sequence":2,"text":"inject 10 units subcut 10 minutes before breakfast","timing":{"repeat":{"frequency":1,"period":1,"periodUnit":"d","when":["ACM"],"offset":10}},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":10,"unit":"U","system":"http://unitsofmeasure.org","code":"U"}}]},{"sequence":2,"text":"15 units before lunch","additionalInstruction":[{"text":"Before Lunch"}],"timing":{"repeat":{"frequency":1,"period":1,"periodUnit":"d"}},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":15,"unit":"U","system":"http://unitsofmeasure.org","code":"U"}}]},{"sequence":1,"text":"20 units before dinner","additionalInstruction":[{"text":"Before Dinner"}],"timing":{"repeat":{"frequency":1,"period":1,"periodUnit":"d"}},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":20,"unit":"U","system":"http://unitsofmeasure.org","code":"U"}}]}]');var r=n(4865),d=n(9365),u=n(8264);const l={description:"Request for Subcutaneous injection with multiple dosage lines - Insulin - Novolog - active - includes reasonCode and note. Dosage includes additionalInstructions as text",title:"medrx0321"},c=void 0,m={id:"examples/medicationrequest/medrx0321",title:"medrx0321",description:"Request for Subcutaneous injection with multiple dosage lines - Insulin - Novolog - active - includes reasonCode and note. Dosage includes additionalInstructions as text",source:"@site/docs/examples/medicationrequest/medrx0321.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx0321",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0321",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx0321.mdx",tags:[],version:"current",frontMatter:{description:"Request for Subcutaneous injection with multiple dosage lines - Insulin - Novolog - active - includes reasonCode and note. Dosage includes additionalInstructions as text",title:"medrx0321"},sidebar:"tutorialSidebar",previous:{title:"medrx0319",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0319"},next:{title:"medrx0331",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0331"}},p={},g=[];function x(e){const t={a:"a",admonition:"admonition",p:"p",...(0,i.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.admonition,{type:"info",children:(0,s.jsxs)(t.p,{children:["Source: ",(0,s.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequest0321.html",children:"HL7"}),' - "Request for Subcutaneous injection with multiple dosage lines - Insulin - Novolog - active - includes reasonCode and note. Dosage includes additionalInstructions as text"']})}),"\n",(0,s.jsxs)(r.A,{children:[(0,s.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,s.jsx)(u.A,{dosages:a,config:{}})}),(0,s.jsx)(d.A,{value:"json",label:"Dosage",children:(0,s.jsx)(o.default,{language:"json",children:JSON.stringify(a,null,2)})})]})]})}function f(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(x,{...e})}):x(e)}},8264:(e,t,n)=>{n.d(t,{A:()=>r});var s=n(6540),i=n(6300),o=n(1812),a=n(4848);function r(e){let{dosages:t,config:n,i18nConfig:r}=e;const[d,u]=(0,s.useState)(""),[l,c]=(0,s.useState)(n?.language||"en"),[m,p]=(0,s.useState)(null);(0,s.useEffect)((()=>{!async function(){const e=await i.A.build(n,r);p(e)}()}),[n]),(0,s.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);u(e)}}()}),[t,m]);return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{style:{display:"flex"},children:[(0,a.jsxs)("select",{value:l,onChange:e=>c(e.target.value),style:{marginRight:"10px"},children:[(0,a.jsx)("option",{value:"en",children:"English"}),(0,a.jsx)("option",{value:"fr",children:"French"}),(0,a.jsx)("option",{value:"nl",children:"Dutch"}),(0,a.jsx)("option",{value:"de",children:"German"})]}),(0,a.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(l);const e=m.fromMultipleDosageToText(t);u(e)}},children:"Confirm"})]}),(0,a.jsx)("div",{style:{marginTop:"10px"},children:(0,a.jsx)(o.default,{language:"markup",children:(g=d,g.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}}}]); \ No newline at end of file diff --git a/assets/js/20a65861.a01d5a95.js b/assets/js/20a65861.029a7013.js similarity index 94% rename from assets/js/20a65861.a01d5a95.js rename to assets/js/20a65861.029a7013.js index 4edc498b..47e21206 100644 --- a/assets/js/20a65861.a01d5a95.js +++ b/assets/js/20a65861.029a7013.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[1796],{1300:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>u,default:()=>f,frontMatter:()=>l,metadata:()=>m,toc:()=>h});var s=n(4848),i=n(8453),d=n(1812);const o=JSON.parse('[{"sequence":1,"text":"1 tablet every four hours as needed for pain","additionalInstruction":[{"coding":[{"system":"http://snomed.info/sct","code":"418914006","display":"Warning. May cause drowsiness. If affected do not drive or operate machinery. Avoid alcoholic drink (qualifier value)"}]}],"timing":{"repeat":{"frequency":1,"period":4,"periodUnit":"h"}},"asNeededFor":[{"coding":[{"system":"http://snomed.info/sct","code":"203082005","display":"Fibromyalgia (disorder)"}]}],"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral Route"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":1,"unit":"TAB","system":"http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm","code":"TAB"}}]}]');var a=n(4865),r=n(9365),c=n(8264);const l={description:"Order for as needed (PRN) dosage - Vicodin - completed with dosageInstruction with additionalInstruction (coded) and as needed with reason, dispenseRequest and substitution",title:"medrx0308"},u=void 0,m={id:"examples/medicationrequest/medrx0308",title:"medrx0308",description:"Order for as needed (PRN) dosage - Vicodin - completed with dosageInstruction with additionalInstruction (coded) and as needed with reason, dispenseRequest and substitution",source:"@site/docs/examples/medicationrequest/medrx0308.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx0308",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0308",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx0308.mdx",tags:[],version:"current",frontMatter:{description:"Order for as needed (PRN) dosage - Vicodin - completed with dosageInstruction with additionalInstruction (coded) and as needed with reason, dispenseRequest and substitution",title:"medrx0308"},sidebar:"tutorialSidebar",previous:{title:"medrx0307",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0307"},next:{title:"medrx0310",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0310"}},p={},h=[];function g(e){const t={a:"a",admonition:"admonition",p:"p",...(0,i.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.admonition,{type:"info",children:(0,s.jsxs)(t.p,{children:["Source: ",(0,s.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequest0308.html",children:"HL7"}),' - "Order for as needed (PRN) dosage - Vicodin - completed with dosageInstruction with additionalInstruction (coded) and as needed with reason, dispenseRequest and substitution"']})}),"\n",(0,s.jsxs)(a.A,{children:[(0,s.jsx)(r.A,{value:"text",label:"Human readable text",default:!0,children:(0,s.jsx)(c.A,{dosages:o,config:{}})}),(0,s.jsx)(r.A,{value:"json",label:"Dosage",children:(0,s.jsx)(d.default,{language:"json",children:JSON.stringify(o,null,2)})})]})]})}function f(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(g,{...e})}):g(e)}},8264:(e,t,n)=>{n.d(t,{A:()=>a});var s=n(6540),i=n(6300),d=n(1812),o=n(4848);function a(e){let{dosages:t,config:n,i18nConfig:a}=e;const[r,c]=(0,s.useState)(""),[l,u]=(0,s.useState)(n?.language||"en"),[m,p]=(0,s.useState)(null);(0,s.useEffect)((()=>{!async function(){const e=await i.A.build(n,a);p(e)}()}),[n]),(0,s.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);c(e)}}()}),[t,m]);return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{style:{display:"flex"},children:[(0,o.jsxs)("select",{value:l,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,o.jsx)("option",{value:"en",children:"English"}),(0,o.jsx)("option",{value:"fr",children:"French"}),(0,o.jsx)("option",{value:"nl",children:"Dutch"}),(0,o.jsx)("option",{value:"de",children:"German"})]}),(0,o.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(l);const e=m.fromMultipleDosageToText(t);c(e)}},children:"Confirm"})]}),(0,o.jsx)("div",{style:{marginTop:"10px"},children:(0,o.jsx)(d.default,{language:"markup",children:(h=r,h.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var h}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[1796],{1300:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>u,default:()=>f,frontMatter:()=>l,metadata:()=>m,toc:()=>h});var s=n(4848),i=n(8453),d=n(1812);const o=JSON.parse('[{"sequence":1,"text":"1 tablet every four hours as needed for pain","additionalInstruction":[{"coding":[{"system":"http://snomed.info/sct","code":"418914006","display":"Warning. May cause drowsiness. If affected do not drive or operate machinery. Avoid alcoholic drink (qualifier value)"}]}],"timing":{"repeat":{"frequency":1,"period":4,"periodUnit":"h"}},"asNeededFor":[{"coding":[{"system":"http://snomed.info/sct","code":"203082005","display":"Fibromyalgia (disorder)"}]}],"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral Route"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":1,"unit":"TAB","system":"http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm","code":"TAB"}}]}]');var a=n(4865),r=n(9365),c=n(8264);const l={description:"Order for as needed (PRN) dosage - Vicodin - completed with dosageInstruction with additionalInstruction (coded) and as needed with reason, dispenseRequest and substitution",title:"medrx0308"},u=void 0,m={id:"examples/medicationrequest/medrx0308",title:"medrx0308",description:"Order for as needed (PRN) dosage - Vicodin - completed with dosageInstruction with additionalInstruction (coded) and as needed with reason, dispenseRequest and substitution",source:"@site/docs/examples/medicationrequest/medrx0308.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx0308",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0308",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx0308.mdx",tags:[],version:"current",frontMatter:{description:"Order for as needed (PRN) dosage - Vicodin - completed with dosageInstruction with additionalInstruction (coded) and as needed with reason, dispenseRequest and substitution",title:"medrx0308"},sidebar:"tutorialSidebar",previous:{title:"medrx0307",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0307"},next:{title:"medrx0310",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0310"}},p={},h=[];function g(e){const t={a:"a",admonition:"admonition",p:"p",...(0,i.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.admonition,{type:"info",children:(0,s.jsxs)(t.p,{children:["Source: ",(0,s.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequest0308.html",children:"HL7"}),' - "Order for as needed (PRN) dosage - Vicodin - completed with dosageInstruction with additionalInstruction (coded) and as needed with reason, dispenseRequest and substitution"']})}),"\n",(0,s.jsxs)(a.A,{children:[(0,s.jsx)(r.A,{value:"text",label:"Human readable text",default:!0,children:(0,s.jsx)(c.A,{dosages:o,config:{}})}),(0,s.jsx)(r.A,{value:"json",label:"Dosage",children:(0,s.jsx)(d.default,{language:"json",children:JSON.stringify(o,null,2)})})]})]})}function f(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(g,{...e})}):g(e)}},8264:(e,t,n)=>{n.d(t,{A:()=>a});var s=n(6540),i=n(6300),d=n(1812),o=n(4848);function a(e){let{dosages:t,config:n,i18nConfig:a}=e;const[r,c]=(0,s.useState)(""),[l,u]=(0,s.useState)(n?.language||"en"),[m,p]=(0,s.useState)(null);(0,s.useEffect)((()=>{!async function(){const e=await i.A.build(n,a);p(e)}()}),[n]),(0,s.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);c(e)}}()}),[t,m]);return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{style:{display:"flex"},children:[(0,o.jsxs)("select",{value:l,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,o.jsx)("option",{value:"en",children:"English"}),(0,o.jsx)("option",{value:"fr",children:"French"}),(0,o.jsx)("option",{value:"nl",children:"Dutch"}),(0,o.jsx)("option",{value:"de",children:"German"})]}),(0,o.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(l);const e=m.fromMultipleDosageToText(t);c(e)}},children:"Confirm"})]}),(0,o.jsx)("div",{style:{marginTop:"10px"},children:(0,o.jsx)(d.default,{language:"markup",children:(h=r,h.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var h}}}]); \ No newline at end of file diff --git a/assets/js/20b5be5c.48a2fc86.js b/assets/js/20b5be5c.dae37993.js similarity index 93% rename from assets/js/20b5be5c.48a2fc86.js rename to assets/js/20b5be5c.dae37993.js index 8cd06761..c71bdef9 100644 --- a/assets/js/20b5be5c.48a2fc86.js +++ b/assets/js/20b5be5c.dae37993.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[6193],{7189:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>p,contentTitle:()=>d,default:()=>x,frontMatter:()=>l,metadata:()=>u,toc:()=>g});var n=t(4848),o=t(8453),a=t(1812);const f=JSON.parse('{"timing":{"repeat":{"offset":1440}}}');var r=t(4865),i=t(9365),c=t(816);const l={description:"offset, expressing day(s)",title:"\ud83d\udd52 offset (Days)"},d=void 0,u={id:"specs/offsetWhen/offset/offset_days",title:"\ud83d\udd52 offset (Days)",description:"offset, expressing day(s)",source:"@site/docs/specs/offsetWhen/offset/offset_days.mdx",sourceDirName:"specs/offsetWhen/offset",slug:"/specs/offsetWhen/offset/offset_days",permalink:"/fhir-dosage-utils/docs/specs/offsetWhen/offset/offset_days",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/offsetWhen/offset/offset_days.mdx",tags:[],version:"current",frontMatter:{description:"offset, expressing day(s)",title:"\ud83d\udd52 offset (Days)"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udd52 offset",permalink:"/fhir-dosage-utils/docs/category/-offset"},next:{title:"\ud83d\udd52 offset (Hours)",permalink:"/fhir-dosage-utils/docs/specs/offsetWhen/offset/offset_hours"}},p={},g=[];function h(e){return(0,n.jsxs)(r.A,{children:[(0,n.jsx)(i.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(c.A,{dosage:f})}),(0,n.jsx)(i.A,{value:"json",label:"Dosage",children:(0,n.jsx)(a.default,{language:"json",children:JSON.stringify(f,null,2)})})]})}function x(e={}){const{wrapper:s}={...(0,o.R)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(h,{...e})}):h()}},816:(e,s,t)=>{t.d(s,{A:()=>r});var n=t(6540),o=t(6300),a=t(1812),f=t(4848);function r(e){let{dosage:s,config:t,i18nConfig:r}=e;const[i,c]=(0,n.useState)(""),[l,d]=(0,n.useState)(t?.language||"en"),[u,p]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await o.A.build(t,r);p(e)}()}),[t]),(0,n.useEffect)((()=>{!async function(){if(u){const e=u.fromDosageToText(s);c(e)}}()}),[s,u]);return(0,f.jsxs)("div",{children:[(0,f.jsxs)("div",{style:{display:"flex"},children:[(0,f.jsxs)("select",{value:l,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,f.jsx)("option",{value:"en",children:"English"}),(0,f.jsx)("option",{value:"fr",children:"French"}),(0,f.jsx)("option",{value:"nl",children:"Dutch"}),(0,f.jsx)("option",{value:"de",children:"German"})]}),(0,f.jsx)("button",{onClick:async()=>{if(u){await u.changeLanguage(l);const e=u.fromDosageToText(s);c(e)}},children:"Confirm"})]}),(0,f.jsx)("div",{style:{marginTop:"10px"},children:(0,f.jsx)(a.default,{language:"markup",children:(g=i,g.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,s){return String.fromCharCode(s)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,s){return String.fromCharCode(parseInt(s,16))})))})})]});var g}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[6193],{7189:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>p,contentTitle:()=>d,default:()=>x,frontMatter:()=>l,metadata:()=>u,toc:()=>g});var n=t(4848),o=t(8453),a=t(1812);const f=JSON.parse('{"timing":{"repeat":{"offset":1440}}}');var r=t(4865),i=t(9365),c=t(816);const l={description:"offset, expressing day(s)",title:"\ud83d\udd52 offset (Days)"},d=void 0,u={id:"specs/offsetWhen/offset/offset_days",title:"\ud83d\udd52 offset (Days)",description:"offset, expressing day(s)",source:"@site/docs/specs/offsetWhen/offset/offset_days.mdx",sourceDirName:"specs/offsetWhen/offset",slug:"/specs/offsetWhen/offset/offset_days",permalink:"/fhir-dosage-utils/docs/specs/offsetWhen/offset/offset_days",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/offsetWhen/offset/offset_days.mdx",tags:[],version:"current",frontMatter:{description:"offset, expressing day(s)",title:"\ud83d\udd52 offset (Days)"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udd52 offset",permalink:"/fhir-dosage-utils/docs/category/-offset"},next:{title:"\ud83d\udd52 offset (Hours)",permalink:"/fhir-dosage-utils/docs/specs/offsetWhen/offset/offset_hours"}},p={},g=[];function h(e){return(0,n.jsxs)(r.A,{children:[(0,n.jsx)(i.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(c.A,{dosage:f})}),(0,n.jsx)(i.A,{value:"json",label:"Dosage",children:(0,n.jsx)(a.default,{language:"json",children:JSON.stringify(f,null,2)})})]})}function x(e={}){const{wrapper:s}={...(0,o.R)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(h,{...e})}):h()}},816:(e,s,t)=>{t.d(s,{A:()=>r});var n=t(6540),o=t(6300),a=t(1812),f=t(4848);function r(e){let{dosage:s,config:t,i18nConfig:r}=e;const[i,c]=(0,n.useState)(""),[l,d]=(0,n.useState)(t?.language||"en"),[u,p]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await o.A.build(t,r);p(e)}()}),[t]),(0,n.useEffect)((()=>{!async function(){if(u){const e=u.fromDosageToText(s);c(e)}}()}),[s,u]);return(0,f.jsxs)("div",{children:[(0,f.jsxs)("div",{style:{display:"flex"},children:[(0,f.jsxs)("select",{value:l,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,f.jsx)("option",{value:"en",children:"English"}),(0,f.jsx)("option",{value:"fr",children:"French"}),(0,f.jsx)("option",{value:"nl",children:"Dutch"}),(0,f.jsx)("option",{value:"de",children:"German"})]}),(0,f.jsx)("button",{onClick:async()=>{if(u){await u.changeLanguage(l);const e=u.fromDosageToText(s);c(e)}},children:"Confirm"})]}),(0,f.jsx)("div",{style:{marginTop:"10px"},children:(0,f.jsx)(a.default,{language:"markup",children:(g=i,g.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,s){return String.fromCharCode(s)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,s){return String.fromCharCode(parseInt(s,16))})))})})]});var g}}}]); \ No newline at end of file diff --git a/assets/js/21119077.2656966a.js b/assets/js/21119077.4fecbcb9.js similarity index 83% rename from assets/js/21119077.2656966a.js rename to assets/js/21119077.4fecbcb9.js index a345bdc4..68addbec 100644 --- a/assets/js/21119077.2656966a.js +++ b/assets/js/21119077.4fecbcb9.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[6499],{8310:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>m,default:()=>f,frontMatter:()=>u,metadata:()=>c,toc:()=>g});var i=n(4848),o=n(8453),s=n(1812);const a=JSON.parse('[{"sequence":1,"text":"Rapid daily-dose escalation, until tolerated, from 3 mg/d, and then 10 mg/d, to the recommended maintenance dose of 30 mg IV over 120 min, 3 times per wk on alternate days for up to 12 wk","additionalInstruction":[{"text":"Rapidly increase dose until tolerated"},{"text":"Administer on alternate days"}],"timing":{"repeat":{"duration":12,"durationUnit":"wk","frequency":3,"period":1,"periodUnit":"wk"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"47625008","display":"Intravenous route (qualifier value)"}]},"method":{"coding":[{"system":"http://snomed.info/sct","code":"422145002","display":"Inject - dosing instruction imperative (qualifier value)"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":3,"unit":"mg","system":"http://unitsofmeasure.org","code":"mg"}}]},{"sequence":2,"text":"Rapid daily-dose escalation, until tolerated, from 3 mg/d, and then 10 mg/d, to the recommended maintenance dose of 30 mg IV over 120 min, 3 times per wk on alternate days for up to 12 wk","additionalInstruction":[{"text":"Rapidly increase dose until tolerated"},{"text":"Administer on alternate days"}],"timing":{"repeat":{"duration":12,"durationUnit":"wk","frequency":3,"period":1,"periodUnit":"wk"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"47625008","display":"Intravenous route (qualifier value)"}]},"method":{"coding":[{"system":"http://snomed.info/sct","code":"422145002","display":"Inject - dosing instruction imperative (qualifier value)"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":10,"unit":"mg","system":"http://unitsofmeasure.org","code":"mg"}}]},{"sequence":3,"text":"Rapid daily-dose escalation, until tolerated, from 3 mg/d, and then 10 mg/d, to the recommended maintenance dose of 30 mg IV over 120 min, 3 times per wk on alternate days for up to 12 wk","additionalInstruction":[{"text":"Rapidly increase dose until tolerated"},{"text":"Administer on alternate days"}],"timing":{"repeat":{"duration":12,"durationUnit":"wk","frequency":3,"period":1,"periodUnit":"wk"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"47625008","display":"Intravenous route (qualifier value)"}]},"method":{"coding":[{"system":"http://snomed.info/sct","code":"422145002","display":"Inject - dosing instruction imperative (qualifier value)"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":30,"unit":"mg","system":"http://unitsofmeasure.org","code":"mg"}}]}]');var r=n(4865),d=n(9365),l=n(8264);const u={description:"Request for Intravenous Chemotherapy (inpatient order) - Alemtuzumab - completed with multiple dosageInstruction lines",title:"medrx0317"},m=void 0,c={id:"examples/medicationrequest/medrx0317",title:"medrx0317",description:"Request for Intravenous Chemotherapy (inpatient order) - Alemtuzumab - completed with multiple dosageInstruction lines",source:"@site/docs/examples/medicationrequest/medrx0317.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx0317",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0317",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx0317.mdx",tags:[],version:"current",frontMatter:{description:"Request for Intravenous Chemotherapy (inpatient order) - Alemtuzumab - completed with multiple dosageInstruction lines",title:"medrx0317"},sidebar:"tutorialSidebar",previous:{title:"medrx0315",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0315"},next:{title:"medrx0319",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0319"}},p={},g=[];function h(e){const t={a:"a",admonition:"admonition",p:"p",...(0,o.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.admonition,{type:"info",children:(0,i.jsxs)(t.p,{children:["Source: ",(0,i.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequest0317.html",children:"HL7"}),' - "Request for Intravenous Chemotherapy (inpatient order) - Alemtuzumab - completed with multiple dosageInstruction lines"']})}),"\n",(0,i.jsxs)(r.A,{children:[(0,i.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,i.jsx)(l.A,{dosages:a,config:{}})}),(0,i.jsx)(d.A,{value:"json",label:"Dosage",children:(0,i.jsx)(s.default,{language:"json",children:JSON.stringify(a,null,2)})})]})]})}function f(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(h,{...e})}):h(e)}},8264:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(6540),o=n(6300),s=n(1812),a=n(4848);function r(e){let{dosages:t,config:n,i18nConfig:r}=e;const[d,l]=(0,i.useState)(""),[u,m]=(0,i.useState)(n?.language||"en"),[c,p]=(0,i.useState)(null);(0,i.useEffect)((()=>{!async function(){const e=await o.A.build(n,r);p(e)}()}),[n]),(0,i.useEffect)((()=>{!async function(){if(c){const e=c.fromMultipleDosageToText(t);l(e)}}()}),[t,c]);return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{style:{display:"flex"},children:[(0,a.jsxs)("select",{value:u,onChange:e=>m(e.target.value),style:{marginRight:"10px"},children:[(0,a.jsx)("option",{value:"en",children:"English"}),(0,a.jsx)("option",{value:"fr",children:"French"}),(0,a.jsx)("option",{value:"nl",children:"Dutch"}),(0,a.jsx)("option",{value:"de",children:"German"})]}),(0,a.jsx)("button",{onClick:async()=>{if(c){await c.changeLanguage(u);const e=c.fromMultipleDosageToText(t);l(e)}},children:"Confirm"})]}),(0,a.jsx)("div",{style:{marginTop:"10px"},children:(0,a.jsx)(s.default,{language:"markup",children:(g=d,g.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[6499],{8310:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>m,default:()=>f,frontMatter:()=>u,metadata:()=>c,toc:()=>g});var i=n(4848),o=n(8453),a=n(1812);const s=JSON.parse('[{"sequence":1,"text":"Rapid daily-dose escalation, until tolerated, from 3 mg/d, and then 10 mg/d, to the recommended maintenance dose of 30 mg IV over 120 min, 3 times per wk on alternate days for up to 12 wk","additionalInstruction":[{"text":"Rapidly increase dose until tolerated"},{"text":"Administer on alternate days"}],"timing":{"repeat":{"duration":12,"durationUnit":"wk","frequency":3,"period":1,"periodUnit":"wk"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"47625008","display":"Intravenous route (qualifier value)"}]},"method":{"coding":[{"system":"http://snomed.info/sct","code":"422145002","display":"Inject - dosing instruction imperative (qualifier value)"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":3,"unit":"mg","system":"http://unitsofmeasure.org","code":"mg"}}]},{"sequence":2,"text":"Rapid daily-dose escalation, until tolerated, from 3 mg/d, and then 10 mg/d, to the recommended maintenance dose of 30 mg IV over 120 min, 3 times per wk on alternate days for up to 12 wk","additionalInstruction":[{"text":"Rapidly increase dose until tolerated"},{"text":"Administer on alternate days"}],"timing":{"repeat":{"duration":12,"durationUnit":"wk","frequency":3,"period":1,"periodUnit":"wk"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"47625008","display":"Intravenous route (qualifier value)"}]},"method":{"coding":[{"system":"http://snomed.info/sct","code":"422145002","display":"Inject - dosing instruction imperative (qualifier value)"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":10,"unit":"mg","system":"http://unitsofmeasure.org","code":"mg"}}]},{"sequence":3,"text":"Rapid daily-dose escalation, until tolerated, from 3 mg/d, and then 10 mg/d, to the recommended maintenance dose of 30 mg IV over 120 min, 3 times per wk on alternate days for up to 12 wk","additionalInstruction":[{"text":"Rapidly increase dose until tolerated"},{"text":"Administer on alternate days"}],"timing":{"repeat":{"duration":12,"durationUnit":"wk","frequency":3,"period":1,"periodUnit":"wk"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"47625008","display":"Intravenous route (qualifier value)"}]},"method":{"coding":[{"system":"http://snomed.info/sct","code":"422145002","display":"Inject - dosing instruction imperative (qualifier value)"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":30,"unit":"mg","system":"http://unitsofmeasure.org","code":"mg"}}]}]');var r=n(4865),d=n(9365),l=n(8264);const u={description:"Request for Intravenous Chemotherapy (inpatient order) - Alemtuzumab - completed with multiple dosageInstruction lines",title:"medrx0317"},m=void 0,c={id:"examples/medicationrequest/medrx0317",title:"medrx0317",description:"Request for Intravenous Chemotherapy (inpatient order) - Alemtuzumab - completed with multiple dosageInstruction lines",source:"@site/docs/examples/medicationrequest/medrx0317.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx0317",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0317",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx0317.mdx",tags:[],version:"current",frontMatter:{description:"Request for Intravenous Chemotherapy (inpatient order) - Alemtuzumab - completed with multiple dosageInstruction lines",title:"medrx0317"},sidebar:"tutorialSidebar",previous:{title:"medrx0315",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0315"},next:{title:"medrx0319",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0319"}},p={},g=[];function h(e){const t={a:"a",admonition:"admonition",p:"p",...(0,o.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.admonition,{type:"info",children:(0,i.jsxs)(t.p,{children:["Source: ",(0,i.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequest0317.html",children:"HL7"}),' - "Request for Intravenous Chemotherapy (inpatient order) - Alemtuzumab - completed with multiple dosageInstruction lines"']})}),"\n",(0,i.jsxs)(r.A,{children:[(0,i.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,i.jsx)(l.A,{dosages:s,config:{}})}),(0,i.jsx)(d.A,{value:"json",label:"Dosage",children:(0,i.jsx)(a.default,{language:"json",children:JSON.stringify(s,null,2)})})]})]})}function f(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(h,{...e})}):h(e)}},8264:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(6540),o=n(6300),a=n(1812),s=n(4848);function r(e){let{dosages:t,config:n,i18nConfig:r}=e;const[d,l]=(0,i.useState)(""),[u,m]=(0,i.useState)(n?.language||"en"),[c,p]=(0,i.useState)(null);(0,i.useEffect)((()=>{!async function(){const e=await o.A.build(n,r);p(e)}()}),[n]),(0,i.useEffect)((()=>{!async function(){if(c){const e=c.fromMultipleDosageToText(t);l(e)}}()}),[t,c]);return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{style:{display:"flex"},children:[(0,s.jsxs)("select",{value:u,onChange:e=>m(e.target.value),style:{marginRight:"10px"},children:[(0,s.jsx)("option",{value:"en",children:"English"}),(0,s.jsx)("option",{value:"fr",children:"French"}),(0,s.jsx)("option",{value:"nl",children:"Dutch"}),(0,s.jsx)("option",{value:"de",children:"German"})]}),(0,s.jsx)("button",{onClick:async()=>{if(c){await c.changeLanguage(u);const e=c.fromMultipleDosageToText(t);l(e)}},children:"Confirm"})]}),(0,s.jsx)("div",{style:{marginTop:"10px"},children:(0,s.jsx)(a.default,{language:"markup",children:(g=d,g.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}}}]); \ No newline at end of file diff --git a/assets/js/254404d2.b7bfc856.js b/assets/js/254404d2.82233377.js similarity index 92% rename from assets/js/254404d2.b7bfc856.js rename to assets/js/254404d2.82233377.js index cce26ee4..07752215 100644 --- a/assets/js/254404d2.b7bfc856.js +++ b/assets/js/254404d2.82233377.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[7762],{1088:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>f,contentTitle:()=>l,default:()=>x,frontMatter:()=>c,metadata:()=>p,toc:()=>g});var s=n(4848),r=n(8453),a=n(1812);const o=JSON.parse('{"timing":{"repeat":{"boundsPeriod":{"start":"2011-05-23","end":"2011-05-27"}}}}');var d=n(4865),i=n(9365),u=n(816);const c={description:"Start & end",title:"\u23f3 boundsPeriod (start & end)"},l=void 0,p={id:"specs/boundsPeriod/start_and_end",title:"\u23f3 boundsPeriod (start & end)",description:"Start & end",source:"@site/docs/specs/boundsPeriod/start_and_end.mdx",sourceDirName:"specs/boundsPeriod",slug:"/specs/boundsPeriod/start_and_end",permalink:"/fhir-dosage-utils/docs/specs/boundsPeriod/start_and_end",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/boundsPeriod/start_and_end.mdx",tags:[],version:"current",frontMatter:{description:"Start & end",title:"\u23f3 boundsPeriod (start & end)"},sidebar:"tutorialSidebar",previous:{title:"\u23f3 boundsPeriod (end only)",permalink:"/fhir-dosage-utils/docs/specs/boundsPeriod/end_only"},next:{title:"\u23f3 boundsPeriod (start only)",permalink:"/fhir-dosage-utils/docs/specs/boundsPeriod/start_only"}},f={},g=[];function h(e){return(0,s.jsxs)(d.A,{children:[(0,s.jsx)(i.A,{value:"text",label:"Human readable text",default:!0,children:(0,s.jsx)(u.A,{dosage:o})}),(0,s.jsx)(i.A,{value:"json",label:"Dosage",children:(0,s.jsx)(a.default,{language:"json",children:JSON.stringify(o,null,2)})})]})}function x(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(h,{...e})}):h()}},816:(e,t,n)=>{n.d(t,{A:()=>d});var s=n(6540),r=n(6300),a=n(1812),o=n(4848);function d(e){let{dosage:t,config:n,i18nConfig:d}=e;const[i,u]=(0,s.useState)(""),[c,l]=(0,s.useState)(n?.language||"en"),[p,f]=(0,s.useState)(null);(0,s.useEffect)((()=>{!async function(){const e=await r.A.build(n,d);f(e)}()}),[n]),(0,s.useEffect)((()=>{!async function(){if(p){const e=p.fromDosageToText(t);u(e)}}()}),[t,p]);return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{style:{display:"flex"},children:[(0,o.jsxs)("select",{value:c,onChange:e=>l(e.target.value),style:{marginRight:"10px"},children:[(0,o.jsx)("option",{value:"en",children:"English"}),(0,o.jsx)("option",{value:"fr",children:"French"}),(0,o.jsx)("option",{value:"nl",children:"Dutch"}),(0,o.jsx)("option",{value:"de",children:"German"})]}),(0,o.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(c);const e=p.fromDosageToText(t);u(e)}},children:"Confirm"})]}),(0,o.jsx)("div",{style:{marginTop:"10px"},children:(0,o.jsx)(a.default,{language:"markup",children:(g=i,g.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[7762],{1088:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>f,contentTitle:()=>l,default:()=>x,frontMatter:()=>c,metadata:()=>p,toc:()=>g});var s=n(4848),r=n(8453),a=n(1812);const o=JSON.parse('{"timing":{"repeat":{"boundsPeriod":{"start":"2011-05-23","end":"2011-05-27"}}}}');var d=n(4865),i=n(9365),u=n(816);const c={description:"Start & end",title:"\u23f3 boundsPeriod (start & end)"},l=void 0,p={id:"specs/boundsPeriod/start_and_end",title:"\u23f3 boundsPeriod (start & end)",description:"Start & end",source:"@site/docs/specs/boundsPeriod/start_and_end.mdx",sourceDirName:"specs/boundsPeriod",slug:"/specs/boundsPeriod/start_and_end",permalink:"/fhir-dosage-utils/docs/specs/boundsPeriod/start_and_end",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/boundsPeriod/start_and_end.mdx",tags:[],version:"current",frontMatter:{description:"Start & end",title:"\u23f3 boundsPeriod (start & end)"},sidebar:"tutorialSidebar",previous:{title:"\u23f3 boundsPeriod (end only)",permalink:"/fhir-dosage-utils/docs/specs/boundsPeriod/end_only"},next:{title:"\u23f3 boundsPeriod (start only)",permalink:"/fhir-dosage-utils/docs/specs/boundsPeriod/start_only"}},f={},g=[];function h(e){return(0,s.jsxs)(d.A,{children:[(0,s.jsx)(i.A,{value:"text",label:"Human readable text",default:!0,children:(0,s.jsx)(u.A,{dosage:o})}),(0,s.jsx)(i.A,{value:"json",label:"Dosage",children:(0,s.jsx)(a.default,{language:"json",children:JSON.stringify(o,null,2)})})]})}function x(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(h,{...e})}):h()}},816:(e,t,n)=>{n.d(t,{A:()=>d});var s=n(6540),r=n(6300),a=n(1812),o=n(4848);function d(e){let{dosage:t,config:n,i18nConfig:d}=e;const[i,u]=(0,s.useState)(""),[c,l]=(0,s.useState)(n?.language||"en"),[p,f]=(0,s.useState)(null);(0,s.useEffect)((()=>{!async function(){const e=await r.A.build(n,d);f(e)}()}),[n]),(0,s.useEffect)((()=>{!async function(){if(p){const e=p.fromDosageToText(t);u(e)}}()}),[t,p]);return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{style:{display:"flex"},children:[(0,o.jsxs)("select",{value:c,onChange:e=>l(e.target.value),style:{marginRight:"10px"},children:[(0,o.jsx)("option",{value:"en",children:"English"}),(0,o.jsx)("option",{value:"fr",children:"French"}),(0,o.jsx)("option",{value:"nl",children:"Dutch"}),(0,o.jsx)("option",{value:"de",children:"German"})]}),(0,o.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(c);const e=p.fromDosageToText(t);u(e)}},children:"Confirm"})]}),(0,o.jsx)("div",{style:{marginTop:"10px"},children:(0,o.jsx)(a.default,{language:"markup",children:(g=i,g.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}}}]); \ No newline at end of file diff --git a/assets/js/265a61ea.48f873f6.js b/assets/js/265a61ea.33c4d54b.js similarity index 88% rename from assets/js/265a61ea.48f873f6.js rename to assets/js/265a61ea.33c4d54b.js index b7a343ce..67f62c39 100644 --- a/assets/js/265a61ea.48f873f6.js +++ b/assets/js/265a61ea.33c4d54b.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[5184],{904:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>p,contentTitle:()=>u,default:()=>g,frontMatter:()=>c,metadata:()=>m,toc:()=>h});var n=i(4848),s=i(8453),a=i(1812);const r=JSON.parse('[{"sequence":1,"text":"4.5 grams in D5W 250 ml. IV every 6 hours.Infuse over 30 min at 8L/min ","timing":{"repeat":{"frequency":1,"period":6,"periodUnit":"h"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"47625008","display":"Intravenous route (qualifier value)"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":4.5,"unit":"g","system":"http://unitsofmeasure.org","code":"g"},"rateQuantity":{"value":50,"system":"http://unitsofmeasure.org","code":"ml/h"}}]}]');var o=i(4865),d=i(9365),l=i(8264);const c={description:"Request for Intravenous Antibiotic with a Dosage Rate - Piperacillin - completed with reason code",title:"medrx0319"},u=void 0,m={id:"examples/medicationrequest/medrx0319",title:"medrx0319",description:"Request for Intravenous Antibiotic with a Dosage Rate - Piperacillin - completed with reason code",source:"@site/docs/examples/medicationrequest/medrx0319.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx0319",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0319",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx0319.mdx",tags:[],version:"current",frontMatter:{description:"Request for Intravenous Antibiotic with a Dosage Rate - Piperacillin - completed with reason code",title:"medrx0319"},sidebar:"tutorialSidebar",previous:{title:"medrx0317",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0317"},next:{title:"medrx0321",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0321"}},p={},h=[];function x(e){const t={a:"a",admonition:"admonition",p:"p",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.admonition,{type:"info",children:(0,n.jsxs)(t.p,{children:["Source: ",(0,n.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequest0319.html",children:"HL7"}),' - "Request for Intravenous Antibiotic with a Dosage Rate - Piperacillin - completed with reason code"']})}),"\n",(0,n.jsxs)(o.A,{children:[(0,n.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(l.A,{dosages:r,config:{}})}),(0,n.jsx)(d.A,{value:"json",label:"Dosage",children:(0,n.jsx)(a.default,{language:"json",children:JSON.stringify(r,null,2)})})]})]})}function g(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(x,{...e})}):x(e)}},8264:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(6540),s=i(6300),a=i(1812),r=i(4848);function o(e){let{dosages:t,config:i,i18nConfig:o}=e;const[d,l]=(0,n.useState)(""),[c,u]=(0,n.useState)(i?.language||"en"),[m,p]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await s.A.build(i,o);p(e)}()}),[i]),(0,n.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);l(e)}}()}),[t,m]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:c,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(c);const e=m.fromMultipleDosageToText(t);l(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(a.default,{language:"markup",children:(h=d,h.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var h}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[5184],{904:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>p,contentTitle:()=>u,default:()=>x,frontMatter:()=>c,metadata:()=>m,toc:()=>h});var n=i(4848),s=i(8453),a=i(1812);const r=JSON.parse('[{"sequence":1,"text":"4.5 grams in D5W 250 ml. IV every 6 hours.Infuse over 30 min at 8L/min ","timing":{"repeat":{"frequency":1,"period":6,"periodUnit":"h"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"47625008","display":"Intravenous route (qualifier value)"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":4.5,"unit":"g","system":"http://unitsofmeasure.org","code":"g"},"rateQuantity":{"value":50,"system":"http://unitsofmeasure.org","code":"ml/h"}}]}]');var o=i(4865),d=i(9365),l=i(8264);const c={description:"Request for Intravenous Antibiotic with a Dosage Rate - Piperacillin - completed with reason code",title:"medrx0319"},u=void 0,m={id:"examples/medicationrequest/medrx0319",title:"medrx0319",description:"Request for Intravenous Antibiotic with a Dosage Rate - Piperacillin - completed with reason code",source:"@site/docs/examples/medicationrequest/medrx0319.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx0319",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0319",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx0319.mdx",tags:[],version:"current",frontMatter:{description:"Request for Intravenous Antibiotic with a Dosage Rate - Piperacillin - completed with reason code",title:"medrx0319"},sidebar:"tutorialSidebar",previous:{title:"medrx0317",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0317"},next:{title:"medrx0321",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0321"}},p={},h=[];function g(e){const t={a:"a",admonition:"admonition",p:"p",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.admonition,{type:"info",children:(0,n.jsxs)(t.p,{children:["Source: ",(0,n.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequest0319.html",children:"HL7"}),' - "Request for Intravenous Antibiotic with a Dosage Rate - Piperacillin - completed with reason code"']})}),"\n",(0,n.jsxs)(o.A,{children:[(0,n.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(l.A,{dosages:r,config:{}})}),(0,n.jsx)(d.A,{value:"json",label:"Dosage",children:(0,n.jsx)(a.default,{language:"json",children:JSON.stringify(r,null,2)})})]})]})}function x(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(g,{...e})}):g(e)}},8264:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(6540),s=i(6300),a=i(1812),r=i(4848);function o(e){let{dosages:t,config:i,i18nConfig:o}=e;const[d,l]=(0,n.useState)(""),[c,u]=(0,n.useState)(i?.language||"en"),[m,p]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await s.A.build(i,o);p(e)}()}),[i]),(0,n.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);l(e)}}()}),[t,m]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:c,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(c);const e=m.fromMultipleDosageToText(t);l(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(a.default,{language:"markup",children:(h=d,h.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var h}}}]); \ No newline at end of file diff --git a/assets/js/2a331aeb.f367845e.js b/assets/js/2a331aeb.f367845e.js new file mode 100644 index 00000000..50007bcc --- /dev/null +++ b/assets/js/2a331aeb.f367845e.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[5317],{6358:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>x,contentTitle:()=>d,default:()=>h,frontMatter:()=>l,metadata:()=>p,toc:()=>g});var o=n(4848),a=n(8453),s=n(1812);const c=JSON.parse('{"timing":{"repeat":{"count":1}}}');var u=n(4865),r=n(9365),i=n(816);const l={description:"count (only)",title:"\ud83d\udd22 count (only)"},d=void 0,p={id:"specs/countCountMax/count",title:"\ud83d\udd22 count (only)",description:"count (only)",source:"@site/docs/specs/countCountMax/count.mdx",sourceDirName:"specs/countCountMax",slug:"/specs/countCountMax/count",permalink:"/fhir-dosage-utils/docs/specs/countCountMax/count",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/countCountMax/count.mdx",tags:[],version:"current",frontMatter:{description:"count (only)",title:"\ud83d\udd22 count (only)"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udd22 count / countMax",permalink:"/fhir-dosage-utils/docs/category/-count--countmax"},next:{title:"\ud83d\udd22 countMax (only)",permalink:"/fhir-dosage-utils/docs/specs/countCountMax/countMax_only"}},x={},g=[];function f(e){return(0,o.jsxs)(u.A,{children:[(0,o.jsx)(r.A,{value:"text",label:"Human readable text",default:!0,children:(0,o.jsx)(i.A,{dosage:c})}),(0,o.jsx)(r.A,{value:"json",label:"Dosage",children:(0,o.jsx)(s.default,{language:"json",children:JSON.stringify(c,null,2)})})]})}function h(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(f,{...e})}):f()}},816:(e,t,n)=>{n.d(t,{A:()=>u});var o=n(6540),a=n(6300),s=n(1812),c=n(4848);function u(e){let{dosage:t,config:n,i18nConfig:u}=e;const[r,i]=(0,o.useState)(""),[l,d]=(0,o.useState)(n?.language||"en"),[p,x]=(0,o.useState)(null);(0,o.useEffect)((()=>{!async function(){const e=await a.A.build(n,u);x(e)}()}),[n]),(0,o.useEffect)((()=>{!async function(){if(p){const e=p.fromDosageToText(t);i(e)}}()}),[t,p]);return(0,c.jsxs)("div",{children:[(0,c.jsxs)("div",{style:{display:"flex"},children:[(0,c.jsxs)("select",{value:l,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,c.jsx)("option",{value:"en",children:"English"}),(0,c.jsx)("option",{value:"fr",children:"French"}),(0,c.jsx)("option",{value:"nl",children:"Dutch"}),(0,c.jsx)("option",{value:"de",children:"German"})]}),(0,c.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(l);const e=p.fromDosageToText(t);i(e)}},children:"Confirm"})]}),(0,c.jsx)("div",{style:{marginTop:"10px"},children:(0,c.jsx)(s.default,{language:"markup",children:(g=r,g.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}}}]); \ No newline at end of file diff --git a/assets/js/2a331aeb.fe824162.js b/assets/js/2a331aeb.fe824162.js deleted file mode 100644 index b2803878..00000000 --- a/assets/js/2a331aeb.fe824162.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[5317],{6358:(t,e,n)=>{n.r(e),n.d(e,{assets:()=>p,contentTitle:()=>d,default:()=>h,frontMatter:()=>l,metadata:()=>x,toc:()=>f});var o=n(4848),s=n(8453),a=n(1812);const c=JSON.parse('{"timing":{"repeat":{"count":1}}}');var u=n(4865),r=n(9365),i=n(816);const l={description:"count (only)",title:"\ud83d\udd22 count (only)"},d=void 0,x={id:"specs/countCountMax/count",title:"\ud83d\udd22 count (only)",description:"count (only)",source:"@site/docs/specs/countCountMax/count.mdx",sourceDirName:"specs/countCountMax",slug:"/specs/countCountMax/count",permalink:"/fhir-dosage-utils/docs/specs/countCountMax/count",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/countCountMax/count.mdx",tags:[],version:"current",frontMatter:{description:"count (only)",title:"\ud83d\udd22 count (only)"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udd22 count / countMax",permalink:"/fhir-dosage-utils/docs/category/-count--countmax"},next:{title:"\ud83d\udd22 countMax (only)",permalink:"/fhir-dosage-utils/docs/specs/countCountMax/countMax_only"}},p={},f=[];function g(t){return(0,o.jsxs)(u.A,{children:[(0,o.jsx)(r.A,{value:"text",label:"Human readable text",default:!0,children:(0,o.jsx)(i.A,{dosage:c})}),(0,o.jsx)(r.A,{value:"json",label:"Dosage",children:(0,o.jsx)(a.default,{language:"json",children:JSON.stringify(c,null,2)})})]})}function h(t={}){const{wrapper:e}={...(0,s.R)(),...t.components};return e?(0,o.jsx)(e,{...t,children:(0,o.jsx)(g,{...t})}):g()}},816:(t,e,n)=>{n.d(e,{A:()=>u});var o=n(6540),s=n(6300),a=n(1812),c=n(4848);function u(t){let{dosage:e,config:n,i18nConfig:u}=t;const[r,i]=(0,o.useState)(""),[l,d]=(0,o.useState)(n?.language||"en"),[x,p]=(0,o.useState)(null);(0,o.useEffect)((()=>{!async function(){const t=await s.A.build(n,u);p(t)}()}),[n]),(0,o.useEffect)((()=>{!async function(){if(x){const t=x.fromDosageToText(e);i(t)}}()}),[e,x]);return(0,c.jsxs)("div",{children:[(0,c.jsxs)("div",{style:{display:"flex"},children:[(0,c.jsxs)("select",{value:l,onChange:t=>d(t.target.value),style:{marginRight:"10px"},children:[(0,c.jsx)("option",{value:"en",children:"English"}),(0,c.jsx)("option",{value:"fr",children:"French"}),(0,c.jsx)("option",{value:"nl",children:"Dutch"}),(0,c.jsx)("option",{value:"de",children:"German"})]}),(0,c.jsx)("button",{onClick:async()=>{if(x){await x.changeLanguage(l);const t=x.fromDosageToText(e);i(t)}},children:"Confirm"})]}),(0,c.jsx)("div",{style:{marginTop:"10px"},children:(0,c.jsx)(a.default,{language:"markup",children:(f=r,f.replace(/"/g,'"').replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(e)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(t,e){return String.fromCharCode(parseInt(e,16))})))})})]});var f}}}]); \ No newline at end of file diff --git a/assets/js/2c4b321a.e0b0dffd.js b/assets/js/2c4b321a.1d03661d.js similarity index 94% rename from assets/js/2c4b321a.e0b0dffd.js rename to assets/js/2c4b321a.1d03661d.js index d472aa5b..cf85f33a 100644 --- a/assets/js/2c4b321a.e0b0dffd.js +++ b/assets/js/2c4b321a.1d03661d.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[585],{7954:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>h,contentTitle:()=>c,default:()=>m,frontMatter:()=>d,metadata:()=>g,toc:()=>p});var s=t(4848),o=t(8453),a=t(1812);const i=JSON.parse('{"timing":{"repeat":{"boundsRange":{"low":{"system":"http://hl7.org/fhir/ValueSet/duration-units","value":3,"code":"d"},"high":{"system":"http://hl7.org/fhir/ValueSet/duration-units","value":5,"code":"d"}}}}}');var r=t(4865),u=t(9365),l=t(816);const d={description:"Low & High",title:"\ud83d\udcd0 boundsDuration (Low & High)"},c=void 0,g={id:"specs/boundsRange/low_and_high",title:"\ud83d\udcd0 boundsDuration (Low & High)",description:"Low & High",source:"@site/docs/specs/boundsRange/low_and_high.mdx",sourceDirName:"specs/boundsRange",slug:"/specs/boundsRange/low_and_high",permalink:"/fhir-dosage-utils/docs/specs/boundsRange/low_and_high",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/boundsRange/low_and_high.mdx",tags:[],version:"current",frontMatter:{description:"Low & High",title:"\ud83d\udcd0 boundsDuration (Low & High)"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udcd0 boundsDuration (High only)",permalink:"/fhir-dosage-utils/docs/specs/boundsRange/high_only"},next:{title:"\ud83d\udcd0 boundsDuration (Low only)",permalink:"/fhir-dosage-utils/docs/specs/boundsRange/low_only"}},h={},p=[];function f(e){const n={a:"a",admonition:"admonition",p:"p",...(0,o.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(r.A,{children:[(0,s.jsx)(u.A,{value:"text",label:"Human readable text",default:!0,children:(0,s.jsx)(l.A,{dosage:i})}),(0,s.jsx)(u.A,{value:"json",label:"Dosage",children:(0,s.jsx)(a.default,{language:"json",children:JSON.stringify(i,null,2)})})]}),"\n",(0,s.jsx)(n.admonition,{type:"tip",children:(0,s.jsxs)(n.p,{children:["Don't forget you can use ",(0,s.jsx)(n.a,{href:"/api/interface/Params",children:"fromFHIRQuantityUnitToString"})," option to fit your needs"]})})]})}function m(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(f,{...e})}):f(e)}},816:(e,n,t)=>{t.d(n,{A:()=>r});var s=t(6540),o=t(6300),a=t(1812),i=t(4848);function r(e){let{dosage:n,config:t,i18nConfig:r}=e;const[u,l]=(0,s.useState)(""),[d,c]=(0,s.useState)(t?.language||"en"),[g,h]=(0,s.useState)(null);(0,s.useEffect)((()=>{!async function(){const e=await o.A.build(t,r);h(e)}()}),[t]),(0,s.useEffect)((()=>{!async function(){if(g){const e=g.fromDosageToText(n);l(e)}}()}),[n,g]);return(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{style:{display:"flex"},children:[(0,i.jsxs)("select",{value:d,onChange:e=>c(e.target.value),style:{marginRight:"10px"},children:[(0,i.jsx)("option",{value:"en",children:"English"}),(0,i.jsx)("option",{value:"fr",children:"French"}),(0,i.jsx)("option",{value:"nl",children:"Dutch"}),(0,i.jsx)("option",{value:"de",children:"German"})]}),(0,i.jsx)("button",{onClick:async()=>{if(g){await g.changeLanguage(d);const e=g.fromDosageToText(n);l(e)}},children:"Confirm"})]}),(0,i.jsx)("div",{style:{marginTop:"10px"},children:(0,i.jsx)(a.default,{language:"markup",children:(p=u,p.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var p}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[585],{7954:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>h,contentTitle:()=>c,default:()=>m,frontMatter:()=>d,metadata:()=>g,toc:()=>p});var s=t(4848),o=t(8453),a=t(1812);const i=JSON.parse('{"timing":{"repeat":{"boundsRange":{"low":{"system":"http://hl7.org/fhir/ValueSet/duration-units","value":3,"code":"d"},"high":{"system":"http://hl7.org/fhir/ValueSet/duration-units","value":5,"code":"d"}}}}}');var r=t(4865),u=t(9365),l=t(816);const d={description:"Low & High",title:"\ud83d\udcd0 boundsDuration (Low & High)"},c=void 0,g={id:"specs/boundsRange/low_and_high",title:"\ud83d\udcd0 boundsDuration (Low & High)",description:"Low & High",source:"@site/docs/specs/boundsRange/low_and_high.mdx",sourceDirName:"specs/boundsRange",slug:"/specs/boundsRange/low_and_high",permalink:"/fhir-dosage-utils/docs/specs/boundsRange/low_and_high",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/boundsRange/low_and_high.mdx",tags:[],version:"current",frontMatter:{description:"Low & High",title:"\ud83d\udcd0 boundsDuration (Low & High)"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udcd0 boundsDuration (High only)",permalink:"/fhir-dosage-utils/docs/specs/boundsRange/high_only"},next:{title:"\ud83d\udcd0 boundsDuration (Low only)",permalink:"/fhir-dosage-utils/docs/specs/boundsRange/low_only"}},h={},p=[];function f(e){const n={a:"a",admonition:"admonition",p:"p",...(0,o.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(r.A,{children:[(0,s.jsx)(u.A,{value:"text",label:"Human readable text",default:!0,children:(0,s.jsx)(l.A,{dosage:i})}),(0,s.jsx)(u.A,{value:"json",label:"Dosage",children:(0,s.jsx)(a.default,{language:"json",children:JSON.stringify(i,null,2)})})]}),"\n",(0,s.jsx)(n.admonition,{type:"tip",children:(0,s.jsxs)(n.p,{children:["Don't forget you can use ",(0,s.jsx)(n.a,{href:"/api/interface/Params",children:"fromFHIRQuantityUnitToString"})," option to fit your needs"]})})]})}function m(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(f,{...e})}):f(e)}},816:(e,n,t)=>{t.d(n,{A:()=>r});var s=t(6540),o=t(6300),a=t(1812),i=t(4848);function r(e){let{dosage:n,config:t,i18nConfig:r}=e;const[u,l]=(0,s.useState)(""),[d,c]=(0,s.useState)(t?.language||"en"),[g,h]=(0,s.useState)(null);(0,s.useEffect)((()=>{!async function(){const e=await o.A.build(t,r);h(e)}()}),[t]),(0,s.useEffect)((()=>{!async function(){if(g){const e=g.fromDosageToText(n);l(e)}}()}),[n,g]);return(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{style:{display:"flex"},children:[(0,i.jsxs)("select",{value:d,onChange:e=>c(e.target.value),style:{marginRight:"10px"},children:[(0,i.jsx)("option",{value:"en",children:"English"}),(0,i.jsx)("option",{value:"fr",children:"French"}),(0,i.jsx)("option",{value:"nl",children:"Dutch"}),(0,i.jsx)("option",{value:"de",children:"German"})]}),(0,i.jsx)("button",{onClick:async()=>{if(g){await g.changeLanguage(d);const e=g.fromDosageToText(n);l(e)}},children:"Confirm"})]}),(0,i.jsx)("div",{style:{marginTop:"10px"},children:(0,i.jsx)(a.default,{language:"markup",children:(p=u,p.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var p}}}]); \ No newline at end of file diff --git a/assets/js/3216d4c8.bb5edfd9.js b/assets/js/3216d4c8.22bde2dd.js similarity index 87% rename from assets/js/3216d4c8.bb5edfd9.js rename to assets/js/3216d4c8.22bde2dd.js index ca119a41..a13b4f57 100644 --- a/assets/js/3216d4c8.bb5edfd9.js +++ b/assets/js/3216d4c8.22bde2dd.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[4892],{5614:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>m,contentTitle:()=>u,default:()=>g,frontMatter:()=>l,metadata:()=>h,toc:()=>p});var o=n(4848),s=n(8453),a=n(1812),i=n(5286),r=n(4865),d=n(9365),c=n(816);const l={description:"method",title:"\ud83d\udee0\ufe0f method"},u=void 0,h={id:"specs/method/method",title:"\ud83d\udee0\ufe0f method",description:"method",source:"@site/docs/specs/method/method.mdx",sourceDirName:"specs/method",slug:"/specs/method/",permalink:"/fhir-dosage-utils/docs/specs/method/",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/method/method.mdx",tags:[],version:"current",frontMatter:{description:"method",title:"\ud83d\udee0\ufe0f method"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udee0\ufe0f method",permalink:"/fhir-dosage-utils/docs/category/\ufe0f-method"},next:{title:"\ud83d\udd52 offset when",permalink:"/fhir-dosage-utils/docs/category/-offset-when"}},m={},p=[];function f(e){const t={a:"a",admonition:"admonition",p:"p",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(r.A,{children:[(0,o.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,o.jsx)(c.A,{dosage:i})}),(0,o.jsx)(d.A,{value:"json",label:"Dosage",children:(0,o.jsx)(a.default,{language:"json",children:JSON.stringify(i,null,2)})})]}),"\n",(0,o.jsx)(t.admonition,{type:"tip",children:(0,o.jsxs)(t.p,{children:["Don't forget you can use ",(0,o.jsx)(t.a,{href:"/api/interface/Params",children:"fromCodeableConceptToString"})," option to fit your needs"]})})]})}function g(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(f,{...e})}):f(e)}},816:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(6540),s=n(6300),a=n(1812),i=n(4848);function r(e){let{dosage:t,config:n,i18nConfig:r}=e;const[d,c]=(0,o.useState)(""),[l,u]=(0,o.useState)(n?.language||"en"),[h,m]=(0,o.useState)(null);(0,o.useEffect)((()=>{!async function(){const e=await s.A.build(n,r);m(e)}()}),[n]),(0,o.useEffect)((()=>{!async function(){if(h){const e=h.fromDosageToText(t);c(e)}}()}),[t,h]);return(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{style:{display:"flex"},children:[(0,i.jsxs)("select",{value:l,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,i.jsx)("option",{value:"en",children:"English"}),(0,i.jsx)("option",{value:"fr",children:"French"}),(0,i.jsx)("option",{value:"nl",children:"Dutch"}),(0,i.jsx)("option",{value:"de",children:"German"})]}),(0,i.jsx)("button",{onClick:async()=>{if(h){await h.changeLanguage(l);const e=h.fromDosageToText(t);c(e)}},children:"Confirm"})]}),(0,i.jsx)("div",{style:{marginTop:"10px"},children:(0,i.jsx)(a.default,{language:"markup",children:(p=d,p.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var p}},5286:e=>{e.exports=JSON.parse('{"method":{"coding":[{"system":"http://hl7.org/fhir/ValueSet/administration-method-codes","code":"738996007","display":"Spray"}]}}')}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[4892],{5614:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>m,contentTitle:()=>u,default:()=>g,frontMatter:()=>l,metadata:()=>h,toc:()=>p});var o=n(4848),s=n(8453),a=n(1812),i=n(5286),r=n(4865),d=n(9365),c=n(816);const l={description:"method",title:"\ud83d\udee0\ufe0f method"},u=void 0,h={id:"specs/method/method",title:"\ud83d\udee0\ufe0f method",description:"method",source:"@site/docs/specs/method/method.mdx",sourceDirName:"specs/method",slug:"/specs/method/",permalink:"/fhir-dosage-utils/docs/specs/method/",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/method/method.mdx",tags:[],version:"current",frontMatter:{description:"method",title:"\ud83d\udee0\ufe0f method"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udee0\ufe0f method",permalink:"/fhir-dosage-utils/docs/category/\ufe0f-method"},next:{title:"\ud83d\udd52 offset when",permalink:"/fhir-dosage-utils/docs/category/-offset-when"}},m={},p=[];function f(e){const t={a:"a",admonition:"admonition",p:"p",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(r.A,{children:[(0,o.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,o.jsx)(c.A,{dosage:i})}),(0,o.jsx)(d.A,{value:"json",label:"Dosage",children:(0,o.jsx)(a.default,{language:"json",children:JSON.stringify(i,null,2)})})]}),"\n",(0,o.jsx)(t.admonition,{type:"tip",children:(0,o.jsxs)(t.p,{children:["Don't forget you can use ",(0,o.jsx)(t.a,{href:"/api/interface/Params",children:"fromCodeableConceptToString"})," option to fit your needs"]})})]})}function g(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(f,{...e})}):f(e)}},816:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(6540),s=n(6300),a=n(1812),i=n(4848);function r(e){let{dosage:t,config:n,i18nConfig:r}=e;const[d,c]=(0,o.useState)(""),[l,u]=(0,o.useState)(n?.language||"en"),[h,m]=(0,o.useState)(null);(0,o.useEffect)((()=>{!async function(){const e=await s.A.build(n,r);m(e)}()}),[n]),(0,o.useEffect)((()=>{!async function(){if(h){const e=h.fromDosageToText(t);c(e)}}()}),[t,h]);return(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{style:{display:"flex"},children:[(0,i.jsxs)("select",{value:l,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,i.jsx)("option",{value:"en",children:"English"}),(0,i.jsx)("option",{value:"fr",children:"French"}),(0,i.jsx)("option",{value:"nl",children:"Dutch"}),(0,i.jsx)("option",{value:"de",children:"German"})]}),(0,i.jsx)("button",{onClick:async()=>{if(h){await h.changeLanguage(l);const e=h.fromDosageToText(t);c(e)}},children:"Confirm"})]}),(0,i.jsx)("div",{style:{marginTop:"10px"},children:(0,i.jsx)(a.default,{language:"markup",children:(p=d,p.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var p}},5286:e=>{e.exports=JSON.parse('{"method":{"coding":[{"system":"http://hl7.org/fhir/ValueSet/administration-method-codes","code":"738996007","display":"Spray"}]}}')}}]); \ No newline at end of file diff --git a/assets/js/36cdde70.35912c5d.js b/assets/js/36cdde70.d459cc80.js similarity index 85% rename from assets/js/36cdde70.35912c5d.js rename to assets/js/36cdde70.d459cc80.js index b39907bc..177558a6 100644 --- a/assets/js/36cdde70.35912c5d.js +++ b/assets/js/36cdde70.d459cc80.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[2229],{1027:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>u,default:()=>x,frontMatter:()=>l,metadata:()=>m,toc:()=>h});var i=n(4848),o=n(8453),s=n(1812);const r=JSON.parse('[{"sequence":1,"text":"one to two tablets every 4-6 hours as needed for rib pain","additionalInstruction":[{"coding":[{"system":"http://snomed.info/sct","code":"418914006","display":"Warning. May cause drowsiness. If affected do not drive or operate machinery. Avoid alcoholic drink (qualifier value)"}]}],"patientInstruction":"Take one to two tablets every four to six hours as needed for rib pain","timing":{"repeat":{"frequency":1,"period":4,"periodMax":6,"periodUnit":"h"}},"asNeededFor":[{"coding":[{"system":"http://snomed.info/sct","code":"297217002","display":"Rib Pain (finding)"}]}],"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral Route"}]},"method":{"coding":[{"system":"http://snomed.info/sct","code":"421521009","display":"Swallow - dosing instruction imperative (qualifier value)"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseRange":{"low":{"value":1,"unit":"TAB","system":"http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm","code":"TAB"},"high":{"value":2,"unit":"TAB","system":"http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm","code":"TAB"}}}]}]');var d=n(4865),a=n(9365),c=n(8264);const l={description:"Order with as needed (PRN) dosage with pre-condition - Oxycodone - active with reasonCode, note, dispenseRequest and substitution",title:"medrx0301"},u=void 0,m={id:"examples/medicationrequest/medrx0301",title:"medrx0301",description:"Order with as needed (PRN) dosage with pre-condition - Oxycodone - active with reasonCode, note, dispenseRequest and substitution",source:"@site/docs/examples/medicationrequest/medrx0301.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx0301",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0301",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx0301.mdx",tags:[],version:"current",frontMatter:{description:"Order with as needed (PRN) dosage with pre-condition - Oxycodone - active with reasonCode, note, dispenseRequest and substitution",title:"medrx0301"},sidebar:"tutorialSidebar",previous:{title:"medrx004",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx004"},next:{title:"medrx0302",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0302"}},p={},h=[];function g(e){const t={a:"a",admonition:"admonition",p:"p",...(0,o.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.admonition,{type:"info",children:(0,i.jsxs)(t.p,{children:["Source: ",(0,i.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequest0301.html",children:"HL7"}),' - "Order with as needed (PRN) dosage with pre-condition - Oxycodone - active with reasonCode, note, dispenseRequest and substitution"']})}),"\n",(0,i.jsxs)(d.A,{children:[(0,i.jsx)(a.A,{value:"text",label:"Human readable text",default:!0,children:(0,i.jsx)(c.A,{dosages:r,config:{}})}),(0,i.jsx)(a.A,{value:"json",label:"Dosage",children:(0,i.jsx)(s.default,{language:"json",children:JSON.stringify(r,null,2)})})]})]})}function x(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(g,{...e})}):g(e)}},8264:(e,t,n)=>{n.d(t,{A:()=>d});var i=n(6540),o=n(6300),s=n(1812),r=n(4848);function d(e){let{dosages:t,config:n,i18nConfig:d}=e;const[a,c]=(0,i.useState)(""),[l,u]=(0,i.useState)(n?.language||"en"),[m,p]=(0,i.useState)(null);(0,i.useEffect)((()=>{!async function(){const e=await o.A.build(n,d);p(e)}()}),[n]),(0,i.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);c(e)}}()}),[t,m]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:l,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(l);const e=m.fromMultipleDosageToText(t);c(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(s.default,{language:"markup",children:(h=a,h.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var h}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[2229],{1027:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>u,default:()=>x,frontMatter:()=>l,metadata:()=>m,toc:()=>h});var i=n(4848),o=n(8453),s=n(1812);const r=JSON.parse('[{"sequence":1,"text":"one to two tablets every 4-6 hours as needed for rib pain","additionalInstruction":[{"coding":[{"system":"http://snomed.info/sct","code":"418914006","display":"Warning. May cause drowsiness. If affected do not drive or operate machinery. Avoid alcoholic drink (qualifier value)"}]}],"patientInstruction":"Take one to two tablets every four to six hours as needed for rib pain","timing":{"repeat":{"frequency":1,"period":4,"periodMax":6,"periodUnit":"h"}},"asNeededFor":[{"coding":[{"system":"http://snomed.info/sct","code":"297217002","display":"Rib Pain (finding)"}]}],"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral Route"}]},"method":{"coding":[{"system":"http://snomed.info/sct","code":"421521009","display":"Swallow - dosing instruction imperative (qualifier value)"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseRange":{"low":{"value":1,"unit":"TAB","system":"http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm","code":"TAB"},"high":{"value":2,"unit":"TAB","system":"http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm","code":"TAB"}}}]}]');var a=n(4865),d=n(9365),c=n(8264);const l={description:"Order with as needed (PRN) dosage with pre-condition - Oxycodone - active with reasonCode, note, dispenseRequest and substitution",title:"medrx0301"},u=void 0,m={id:"examples/medicationrequest/medrx0301",title:"medrx0301",description:"Order with as needed (PRN) dosage with pre-condition - Oxycodone - active with reasonCode, note, dispenseRequest and substitution",source:"@site/docs/examples/medicationrequest/medrx0301.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx0301",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0301",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx0301.mdx",tags:[],version:"current",frontMatter:{description:"Order with as needed (PRN) dosage with pre-condition - Oxycodone - active with reasonCode, note, dispenseRequest and substitution",title:"medrx0301"},sidebar:"tutorialSidebar",previous:{title:"medrx004",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx004"},next:{title:"medrx0302",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0302"}},p={},h=[];function g(e){const t={a:"a",admonition:"admonition",p:"p",...(0,o.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.admonition,{type:"info",children:(0,i.jsxs)(t.p,{children:["Source: ",(0,i.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequest0301.html",children:"HL7"}),' - "Order with as needed (PRN) dosage with pre-condition - Oxycodone - active with reasonCode, note, dispenseRequest and substitution"']})}),"\n",(0,i.jsxs)(a.A,{children:[(0,i.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,i.jsx)(c.A,{dosages:r,config:{}})}),(0,i.jsx)(d.A,{value:"json",label:"Dosage",children:(0,i.jsx)(s.default,{language:"json",children:JSON.stringify(r,null,2)})})]})]})}function x(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(g,{...e})}):g(e)}},8264:(e,t,n)=>{n.d(t,{A:()=>a});var i=n(6540),o=n(6300),s=n(1812),r=n(4848);function a(e){let{dosages:t,config:n,i18nConfig:a}=e;const[d,c]=(0,i.useState)(""),[l,u]=(0,i.useState)(n?.language||"en"),[m,p]=(0,i.useState)(null);(0,i.useEffect)((()=>{!async function(){const e=await o.A.build(n,a);p(e)}()}),[n]),(0,i.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);c(e)}}()}),[t,m]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:l,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(l);const e=m.fromMultipleDosageToText(t);c(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(s.default,{language:"markup",children:(h=d,h.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var h}}}]); \ No newline at end of file diff --git a/assets/js/3766ff12.fec53e3c.js b/assets/js/3766ff12.e8141891.js similarity index 85% rename from assets/js/3766ff12.fec53e3c.js rename to assets/js/3766ff12.e8141891.js index 64643630..678222d3 100644 --- a/assets/js/3766ff12.fec53e3c.js +++ b/assets/js/3766ff12.e8141891.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[8952],{4184:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>h,contentTitle:()=>u,default:()=>x,frontMatter:()=>c,metadata:()=>m,toc:()=>p});var o=n(4848),s=n(8453),r=n(1812);const i=JSON.parse('[{"sequence":1,"text":"Take 1-2 tablets once daily at bedtime as needed for restless legs","additionalInstruction":[{"text":"Take at bedtime"}],"timing":{"repeat":{"frequency":1,"period":1,"periodUnit":"d"}},"asNeededFor":[{"coding":[{"system":"http://snomed.info/sct","code":"32914008","display":"Restless Legs"}]}],"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral Route"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseRange":{"low":{"value":1,"unit":"TAB","system":"http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm","code":"TAB"},"high":{"value":2,"unit":"TAB","system":"http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm","code":"TAB"}}}]}]');var a=n(4865),d=n(9365),l=n(8264);const c={description:"Request for Over the Counter Medication - Tylenol PM - with dosage range as needed with pre-condition for use",title:"medrx0310"},u=void 0,m={id:"examples/medicationrequest/medrx0310",title:"medrx0310",description:"Request for Over the Counter Medication - Tylenol PM - with dosage range as needed with pre-condition for use",source:"@site/docs/examples/medicationrequest/medrx0310.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx0310",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0310",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx0310.mdx",tags:[],version:"current",frontMatter:{description:"Request for Over the Counter Medication - Tylenol PM - with dosage range as needed with pre-condition for use",title:"medrx0310"},sidebar:"tutorialSidebar",previous:{title:"medrx0308",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0308"},next:{title:"medrx0313",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0313"}},h={},p=[];function g(e){const t={a:"a",admonition:"admonition",p:"p",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.admonition,{type:"info",children:(0,o.jsxs)(t.p,{children:["Source: ",(0,o.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequest0310.html",children:"HL7"}),' - "Request for Over the Counter Medication - Tylenol PM - with dosage range as needed with pre-condition for use"']})}),"\n",(0,o.jsxs)(a.A,{children:[(0,o.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,o.jsx)(l.A,{dosages:i,config:{}})}),(0,o.jsx)(d.A,{value:"json",label:"Dosage",children:(0,o.jsx)(r.default,{language:"json",children:JSON.stringify(i,null,2)})})]})]})}function x(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(g,{...e})}):g(e)}},8264:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(6540),s=n(6300),r=n(1812),i=n(4848);function a(e){let{dosages:t,config:n,i18nConfig:a}=e;const[d,l]=(0,o.useState)(""),[c,u]=(0,o.useState)(n?.language||"en"),[m,h]=(0,o.useState)(null);(0,o.useEffect)((()=>{!async function(){const e=await s.A.build(n,a);h(e)}()}),[n]),(0,o.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);l(e)}}()}),[t,m]);return(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{style:{display:"flex"},children:[(0,i.jsxs)("select",{value:c,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,i.jsx)("option",{value:"en",children:"English"}),(0,i.jsx)("option",{value:"fr",children:"French"}),(0,i.jsx)("option",{value:"nl",children:"Dutch"}),(0,i.jsx)("option",{value:"de",children:"German"})]}),(0,i.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(c);const e=m.fromMultipleDosageToText(t);l(e)}},children:"Confirm"})]}),(0,i.jsx)("div",{style:{marginTop:"10px"},children:(0,i.jsx)(r.default,{language:"markup",children:(p=d,p.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var p}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[8952],{4184:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>u,default:()=>x,frontMatter:()=>c,metadata:()=>m,toc:()=>g});var o=n(4848),s=n(8453),r=n(1812);const i=JSON.parse('[{"sequence":1,"text":"Take 1-2 tablets once daily at bedtime as needed for restless legs","additionalInstruction":[{"text":"Take at bedtime"}],"timing":{"repeat":{"frequency":1,"period":1,"periodUnit":"d"}},"asNeededFor":[{"coding":[{"system":"http://snomed.info/sct","code":"32914008","display":"Restless Legs"}]}],"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral Route"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseRange":{"low":{"value":1,"unit":"TAB","system":"http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm","code":"TAB"},"high":{"value":2,"unit":"TAB","system":"http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm","code":"TAB"}}}]}]');var a=n(4865),d=n(9365),l=n(8264);const c={description:"Request for Over the Counter Medication - Tylenol PM - with dosage range as needed with pre-condition for use",title:"medrx0310"},u=void 0,m={id:"examples/medicationrequest/medrx0310",title:"medrx0310",description:"Request for Over the Counter Medication - Tylenol PM - with dosage range as needed with pre-condition for use",source:"@site/docs/examples/medicationrequest/medrx0310.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx0310",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0310",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx0310.mdx",tags:[],version:"current",frontMatter:{description:"Request for Over the Counter Medication - Tylenol PM - with dosage range as needed with pre-condition for use",title:"medrx0310"},sidebar:"tutorialSidebar",previous:{title:"medrx0308",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0308"},next:{title:"medrx0313",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0313"}},p={},g=[];function h(e){const t={a:"a",admonition:"admonition",p:"p",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.admonition,{type:"info",children:(0,o.jsxs)(t.p,{children:["Source: ",(0,o.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequest0310.html",children:"HL7"}),' - "Request for Over the Counter Medication - Tylenol PM - with dosage range as needed with pre-condition for use"']})}),"\n",(0,o.jsxs)(a.A,{children:[(0,o.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,o.jsx)(l.A,{dosages:i,config:{}})}),(0,o.jsx)(d.A,{value:"json",label:"Dosage",children:(0,o.jsx)(r.default,{language:"json",children:JSON.stringify(i,null,2)})})]})]})}function x(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(h,{...e})}):h(e)}},8264:(e,t,n)=>{n.d(t,{A:()=>a});var o=n(6540),s=n(6300),r=n(1812),i=n(4848);function a(e){let{dosages:t,config:n,i18nConfig:a}=e;const[d,l]=(0,o.useState)(""),[c,u]=(0,o.useState)(n?.language||"en"),[m,p]=(0,o.useState)(null);(0,o.useEffect)((()=>{!async function(){const e=await s.A.build(n,a);p(e)}()}),[n]),(0,o.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);l(e)}}()}),[t,m]);return(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{style:{display:"flex"},children:[(0,i.jsxs)("select",{value:c,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,i.jsx)("option",{value:"en",children:"English"}),(0,i.jsx)("option",{value:"fr",children:"French"}),(0,i.jsx)("option",{value:"nl",children:"Dutch"}),(0,i.jsx)("option",{value:"de",children:"German"})]}),(0,i.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(c);const e=m.fromMultipleDosageToText(t);l(e)}},children:"Confirm"})]}),(0,i.jsx)("div",{style:{marginTop:"10px"},children:(0,i.jsx)(r.default,{language:"markup",children:(g=d,g.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}}}]); \ No newline at end of file diff --git a/assets/js/38ae24f3.a5591665.js b/assets/js/38ae24f3.1ca83ecb.js similarity index 79% rename from assets/js/38ae24f3.a5591665.js rename to assets/js/38ae24f3.1ca83ecb.js index debb7859..e931e45c 100644 --- a/assets/js/38ae24f3.a5591665.js +++ b/assets/js/38ae24f3.1ca83ecb.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[8035],{4229:(n,t,e)=>{e.r(t),e.d(t,{assets:()=>f,contentTitle:()=>d,default:()=>h,frontMatter:()=>l,metadata:()=>x,toc:()=>p});var a=e(4848),o=e(8453),c=e(1812);const s=JSON.parse('{"timing":{"repeat":{"count":1,"countMax":3}}}');var u=e(4865),r=e(9365),i=e(816);const l={description:"count and countMax",title:"\ud83d\udd22 count and countMax"},d=void 0,x={id:"specs/countCountMax/count_and_countMax",title:"\ud83d\udd22 count and countMax",description:"count and countMax",source:"@site/docs/specs/countCountMax/count_and_countMax.mdx",sourceDirName:"specs/countCountMax",slug:"/specs/countCountMax/count_and_countMax",permalink:"/fhir-dosage-utils/docs/specs/countCountMax/count_and_countMax",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/countCountMax/count_and_countMax.mdx",tags:[],version:"current",frontMatter:{description:"count and countMax",title:"\ud83d\udd22 count and countMax"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udd22 countMax (only)",permalink:"/fhir-dosage-utils/docs/specs/countCountMax/countMax_only"},next:{title:"\ud83d\udcc5 dayOfWeek",permalink:"/fhir-dosage-utils/docs/category/-dayofweek"}},f={},p=[];function g(n){return(0,a.jsxs)(u.A,{children:[(0,a.jsx)(r.A,{value:"text",label:"Human readable text",default:!0,children:(0,a.jsx)(i.A,{dosage:s})}),(0,a.jsx)(r.A,{value:"json",label:"Dosage",children:(0,a.jsx)(c.default,{language:"json",children:JSON.stringify(s,null,2)})})]})}function h(n={}){const{wrapper:t}={...(0,o.R)(),...n.components};return t?(0,a.jsx)(t,{...n,children:(0,a.jsx)(g,{...n})}):g()}},816:(n,t,e)=>{e.d(t,{A:()=>u});var a=e(6540),o=e(6300),c=e(1812),s=e(4848);function u(n){let{dosage:t,config:e,i18nConfig:u}=n;const[r,i]=(0,a.useState)(""),[l,d]=(0,a.useState)(e?.language||"en"),[x,f]=(0,a.useState)(null);(0,a.useEffect)((()=>{!async function(){const n=await o.A.build(e,u);f(n)}()}),[e]),(0,a.useEffect)((()=>{!async function(){if(x){const n=x.fromDosageToText(t);i(n)}}()}),[t,x]);return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{style:{display:"flex"},children:[(0,s.jsxs)("select",{value:l,onChange:n=>d(n.target.value),style:{marginRight:"10px"},children:[(0,s.jsx)("option",{value:"en",children:"English"}),(0,s.jsx)("option",{value:"fr",children:"French"}),(0,s.jsx)("option",{value:"nl",children:"Dutch"}),(0,s.jsx)("option",{value:"de",children:"German"})]}),(0,s.jsx)("button",{onClick:async()=>{if(x){await x.changeLanguage(l);const n=x.fromDosageToText(t);i(n)}},children:"Confirm"})]}),(0,s.jsx)("div",{style:{marginTop:"10px"},children:(0,s.jsx)(c.default,{language:"markup",children:(p=r,p.replace(/"/g,'"').replace(/&#(\d+);/g,(function(n,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(n,t){return String.fromCharCode(parseInt(t,16))})))})})]});var p}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[8035],{4229:(n,t,e)=>{e.r(t),e.d(t,{assets:()=>p,contentTitle:()=>d,default:()=>h,frontMatter:()=>l,metadata:()=>x,toc:()=>f});var a=e(4848),o=e(8453),c=e(1812);const s=JSON.parse('{"timing":{"repeat":{"count":1,"countMax":3}}}');var u=e(4865),r=e(9365),i=e(816);const l={description:"count and countMax",title:"\ud83d\udd22 count and countMax"},d=void 0,x={id:"specs/countCountMax/count_and_countMax",title:"\ud83d\udd22 count and countMax",description:"count and countMax",source:"@site/docs/specs/countCountMax/count_and_countMax.mdx",sourceDirName:"specs/countCountMax",slug:"/specs/countCountMax/count_and_countMax",permalink:"/fhir-dosage-utils/docs/specs/countCountMax/count_and_countMax",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/countCountMax/count_and_countMax.mdx",tags:[],version:"current",frontMatter:{description:"count and countMax",title:"\ud83d\udd22 count and countMax"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udd22 countMax (only)",permalink:"/fhir-dosage-utils/docs/specs/countCountMax/countMax_only"},next:{title:"\ud83d\udcc5 dayOfWeek",permalink:"/fhir-dosage-utils/docs/category/-dayofweek"}},p={},f=[];function g(n){return(0,a.jsxs)(u.A,{children:[(0,a.jsx)(r.A,{value:"text",label:"Human readable text",default:!0,children:(0,a.jsx)(i.A,{dosage:s})}),(0,a.jsx)(r.A,{value:"json",label:"Dosage",children:(0,a.jsx)(c.default,{language:"json",children:JSON.stringify(s,null,2)})})]})}function h(n={}){const{wrapper:t}={...(0,o.R)(),...n.components};return t?(0,a.jsx)(t,{...n,children:(0,a.jsx)(g,{...n})}):g()}},816:(n,t,e)=>{e.d(t,{A:()=>u});var a=e(6540),o=e(6300),c=e(1812),s=e(4848);function u(n){let{dosage:t,config:e,i18nConfig:u}=n;const[r,i]=(0,a.useState)(""),[l,d]=(0,a.useState)(e?.language||"en"),[x,p]=(0,a.useState)(null);(0,a.useEffect)((()=>{!async function(){const n=await o.A.build(e,u);p(n)}()}),[e]),(0,a.useEffect)((()=>{!async function(){if(x){const n=x.fromDosageToText(t);i(n)}}()}),[t,x]);return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{style:{display:"flex"},children:[(0,s.jsxs)("select",{value:l,onChange:n=>d(n.target.value),style:{marginRight:"10px"},children:[(0,s.jsx)("option",{value:"en",children:"English"}),(0,s.jsx)("option",{value:"fr",children:"French"}),(0,s.jsx)("option",{value:"nl",children:"Dutch"}),(0,s.jsx)("option",{value:"de",children:"German"})]}),(0,s.jsx)("button",{onClick:async()=>{if(x){await x.changeLanguage(l);const n=x.fromDosageToText(t);i(n)}},children:"Confirm"})]}),(0,s.jsx)("div",{style:{marginTop:"10px"},children:(0,s.jsx)(c.default,{language:"markup",children:(f=r,f.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(n,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(n,t){return String.fromCharCode(parseInt(t,16))})))})})]});var f}}}]); \ No newline at end of file diff --git a/assets/js/3903b0d4.c121ad70.js b/assets/js/3903b0d4.f1ba4aa7.js similarity index 59% rename from assets/js/3903b0d4.c121ad70.js rename to assets/js/3903b0d4.f1ba4aa7.js index 5be6d8d4..edc71d1b 100644 --- a/assets/js/3903b0d4.c121ad70.js +++ b/assets/js/3903b0d4.f1ba4aa7.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[4726],{2129:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>f,contentTitle:()=>u,default:()=>x,frontMatter:()=>l,metadata:()=>p,toc:()=>g});var a=t(4848),n=t(8453),o=t(1812);const d=JSON.parse('{"asNeededFor":[{"text":"reason 1"},{"text":"reason 2"}]}');var r=t(4865),i=t(9365),c=t(816);const l={description:"asNeededFor",title:"\ud83e\uddec asNeededFor"},u=void 0,p={id:"specs/asNeeded/asNeededFor",title:"\ud83e\uddec asNeededFor",description:"asNeededFor",source:"@site/docs/specs/asNeeded/asNeededFor.mdx",sourceDirName:"specs/asNeeded",slug:"/specs/asNeeded/asNeededFor",permalink:"/fhir-dosage-utils/docs/specs/asNeeded/asNeededFor",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/asNeeded/asNeededFor.mdx",tags:[],version:"current",frontMatter:{description:"asNeededFor",title:"\ud83e\uddec asNeededFor"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udccc asNeededCodeableConcept",permalink:"/fhir-dosage-utils/docs/specs/asNeeded/asNeededCodeableConcept"},next:{title:"\ud83d\udd70\ufe0f boundsDuration",permalink:"/fhir-dosage-utils/docs/category/\ufe0f-boundsduration"}},f={},g=[];function h(e){const s={a:"a",admonition:"admonition",p:"p",...(0,n.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(r.A,{children:[(0,a.jsx)(i.A,{value:"text",label:"Human readable text",default:!0,children:(0,a.jsx)(c.A,{dosage:d})}),(0,a.jsx)(i.A,{value:"json",label:"Dosage",children:(0,a.jsx)(o.default,{language:"json",children:JSON.stringify(d,null,2)})})]}),"\n",(0,a.jsx)(s.admonition,{type:"tip",children:(0,a.jsxs)(s.p,{children:["Don't forget you can use ",(0,a.jsx)(s.a,{href:"/api/interface/Params",children:"fromCodeableConceptToString"})," option to fit your needs"]})})]})}function x(e={}){const{wrapper:s}={...(0,n.R)(),...e.components};return s?(0,a.jsx)(s,{...e,children:(0,a.jsx)(h,{...e})}):h(e)}},816:(e,s,t)=>{t.d(s,{A:()=>r});var a=t(6540),n=t(6300),o=t(1812),d=t(4848);function r(e){let{dosage:s,config:t,i18nConfig:r}=e;const[i,c]=(0,a.useState)(""),[l,u]=(0,a.useState)(t?.language||"en"),[p,f]=(0,a.useState)(null);(0,a.useEffect)((()=>{!async function(){const e=await n.A.build(t,r);f(e)}()}),[t]),(0,a.useEffect)((()=>{!async function(){if(p){const e=p.fromDosageToText(s);c(e)}}()}),[s,p]);return(0,d.jsxs)("div",{children:[(0,d.jsxs)("div",{style:{display:"flex"},children:[(0,d.jsxs)("select",{value:l,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,d.jsx)("option",{value:"en",children:"English"}),(0,d.jsx)("option",{value:"fr",children:"French"}),(0,d.jsx)("option",{value:"nl",children:"Dutch"}),(0,d.jsx)("option",{value:"de",children:"German"})]}),(0,d.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(l);const e=p.fromDosageToText(s);c(e)}},children:"Confirm"})]}),(0,d.jsx)("div",{style:{marginTop:"10px"},children:(0,d.jsx)(o.default,{language:"markup",children:(g=i,g.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,s){return String.fromCharCode(s)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,s){return String.fromCharCode(parseInt(s,16))})))})})]});var g}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[4726],{2129:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>f,contentTitle:()=>u,default:()=>x,frontMatter:()=>l,metadata:()=>p,toc:()=>g});var a=t(4848),n=t(8453),o=t(1812);const r=JSON.parse('{"asNeededFor":[{"text":"reason 1"},{"text":"reason 2"}]}');var d=t(4865),i=t(9365),c=t(816);const l={description:"asNeededFor",title:"\ud83e\uddec asNeededFor"},u=void 0,p={id:"specs/asNeeded/asNeededFor",title:"\ud83e\uddec asNeededFor",description:"asNeededFor",source:"@site/docs/specs/asNeeded/asNeededFor.mdx",sourceDirName:"specs/asNeeded",slug:"/specs/asNeeded/asNeededFor",permalink:"/fhir-dosage-utils/docs/specs/asNeeded/asNeededFor",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/asNeeded/asNeededFor.mdx",tags:[],version:"current",frontMatter:{description:"asNeededFor",title:"\ud83e\uddec asNeededFor"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udccc asNeededCodeableConcept",permalink:"/fhir-dosage-utils/docs/specs/asNeeded/asNeededCodeableConcept"},next:{title:"\ud83d\udd70\ufe0f boundsDuration",permalink:"/fhir-dosage-utils/docs/category/\ufe0f-boundsduration"}},f={},g=[];function h(e){const s={a:"a",admonition:"admonition",p:"p",...(0,n.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(d.A,{children:[(0,a.jsx)(i.A,{value:"text",label:"Human readable text",default:!0,children:(0,a.jsx)(c.A,{dosage:r})}),(0,a.jsx)(i.A,{value:"json",label:"Dosage",children:(0,a.jsx)(o.default,{language:"json",children:JSON.stringify(r,null,2)})})]}),"\n",(0,a.jsx)(s.admonition,{type:"tip",children:(0,a.jsxs)(s.p,{children:["Don't forget you can use ",(0,a.jsx)(s.a,{href:"/api/interface/Params",children:"fromCodeableConceptToString"})," option to fit your needs"]})})]})}function x(e={}){const{wrapper:s}={...(0,n.R)(),...e.components};return s?(0,a.jsx)(s,{...e,children:(0,a.jsx)(h,{...e})}):h(e)}},816:(e,s,t)=>{t.d(s,{A:()=>d});var a=t(6540),n=t(6300),o=t(1812),r=t(4848);function d(e){let{dosage:s,config:t,i18nConfig:d}=e;const[i,c]=(0,a.useState)(""),[l,u]=(0,a.useState)(t?.language||"en"),[p,f]=(0,a.useState)(null);(0,a.useEffect)((()=>{!async function(){const e=await n.A.build(t,d);f(e)}()}),[t]),(0,a.useEffect)((()=>{!async function(){if(p){const e=p.fromDosageToText(s);c(e)}}()}),[s,p]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:l,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(l);const e=p.fromDosageToText(s);c(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(o.default,{language:"markup",children:(g=i,g.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,s){return String.fromCharCode(s)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,s){return String.fromCharCode(parseInt(s,16))})))})})]});var g}}}]); \ No newline at end of file diff --git a/assets/js/3d23bc21.eae29f54.js b/assets/js/3d23bc21.cbbd6cfe.js similarity index 92% rename from assets/js/3d23bc21.eae29f54.js rename to assets/js/3d23bc21.cbbd6cfe.js index f04f7cc1..6a17a823 100644 --- a/assets/js/3d23bc21.eae29f54.js +++ b/assets/js/3d23bc21.cbbd6cfe.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[85],{8566:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>f,contentTitle:()=>d,default:()=>x,frontMatter:()=>l,metadata:()=>p,toc:()=>g});var s=t(4848),r=t(8453),c=t(1812);const i=JSON.parse('[{"sequence":1,"text":"Instructions 1"},{"sequence":2,"text":"Instructions 2A"},{"sequence":2,"text":"Instructions 2B"}]');var u=t(4865),o=t(9365),a=t(8264);const l={description:"Concurrent instructions",title:"\u27a1\ufe0f sequence (Concurrent instructions)"},d=void 0,p={id:"specs/sequence/concurrent_instructions",title:"\u27a1\ufe0f sequence (Concurrent instructions)",description:"Concurrent instructions",source:"@site/docs/specs/sequence/concurrent_instructions.mdx",sourceDirName:"specs/sequence",slug:"/specs/sequence/concurrent_instructions",permalink:"/fhir-dosage-utils/docs/specs/sequence/concurrent_instructions",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/sequence/concurrent_instructions.mdx",tags:[],version:"current",frontMatter:{description:"Concurrent instructions",title:"\u27a1\ufe0f sequence (Concurrent instructions)"},sidebar:"tutorialSidebar",previous:{title:"\u27a1\ufe0f sequence",permalink:"/fhir-dosage-utils/docs/category/\ufe0f-sequence"},next:{title:"\u27a1\ufe0f sequence (Sequential instructions 1)",permalink:"/fhir-dosage-utils/docs/specs/sequence/sequential_instructions_1"}},f={},g=[];function h(e){return(0,s.jsxs)(u.A,{children:[(0,s.jsx)(o.A,{value:"text",label:"Human readable text",default:!0,children:(0,s.jsx)(a.A,{dosages:i,config:{displayOrder:["text"]}})}),(0,s.jsx)(o.A,{value:"json",label:"Dosage",children:(0,s.jsx)(c.default,{language:"json",children:JSON.stringify(i,null,2)})})]})}function x(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(h,{...e})}):h()}},8264:(e,n,t)=>{t.d(n,{A:()=>u});var s=t(6540),r=t(6300),c=t(1812),i=t(4848);function u(e){let{dosages:n,config:t,i18nConfig:u}=e;const[o,a]=(0,s.useState)(""),[l,d]=(0,s.useState)(t?.language||"en"),[p,f]=(0,s.useState)(null);(0,s.useEffect)((()=>{!async function(){const e=await r.A.build(t,u);f(e)}()}),[t]),(0,s.useEffect)((()=>{!async function(){if(p){const e=p.fromMultipleDosageToText(n);a(e)}}()}),[n,p]);return(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{style:{display:"flex"},children:[(0,i.jsxs)("select",{value:l,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,i.jsx)("option",{value:"en",children:"English"}),(0,i.jsx)("option",{value:"fr",children:"French"}),(0,i.jsx)("option",{value:"nl",children:"Dutch"}),(0,i.jsx)("option",{value:"de",children:"German"})]}),(0,i.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(l);const e=p.fromMultipleDosageToText(n);a(e)}},children:"Confirm"})]}),(0,i.jsx)("div",{style:{marginTop:"10px"},children:(0,i.jsx)(c.default,{language:"markup",children:(g=o,g.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var g}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[85],{8566:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>f,contentTitle:()=>d,default:()=>x,frontMatter:()=>l,metadata:()=>p,toc:()=>g});var s=t(4848),r=t(8453),c=t(1812);const i=JSON.parse('[{"sequence":1,"text":"Instructions 1"},{"sequence":2,"text":"Instructions 2A"},{"sequence":2,"text":"Instructions 2B"}]');var u=t(4865),o=t(9365),a=t(8264);const l={description:"Concurrent instructions",title:"\u27a1\ufe0f sequence (Concurrent instructions)"},d=void 0,p={id:"specs/sequence/concurrent_instructions",title:"\u27a1\ufe0f sequence (Concurrent instructions)",description:"Concurrent instructions",source:"@site/docs/specs/sequence/concurrent_instructions.mdx",sourceDirName:"specs/sequence",slug:"/specs/sequence/concurrent_instructions",permalink:"/fhir-dosage-utils/docs/specs/sequence/concurrent_instructions",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/sequence/concurrent_instructions.mdx",tags:[],version:"current",frontMatter:{description:"Concurrent instructions",title:"\u27a1\ufe0f sequence (Concurrent instructions)"},sidebar:"tutorialSidebar",previous:{title:"\u27a1\ufe0f sequence",permalink:"/fhir-dosage-utils/docs/category/\ufe0f-sequence"},next:{title:"\u27a1\ufe0f sequence (Sequential instructions 1)",permalink:"/fhir-dosage-utils/docs/specs/sequence/sequential_instructions_1"}},f={},g=[];function h(e){return(0,s.jsxs)(u.A,{children:[(0,s.jsx)(o.A,{value:"text",label:"Human readable text",default:!0,children:(0,s.jsx)(a.A,{dosages:i,config:{displayOrder:["text"]}})}),(0,s.jsx)(o.A,{value:"json",label:"Dosage",children:(0,s.jsx)(c.default,{language:"json",children:JSON.stringify(i,null,2)})})]})}function x(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(h,{...e})}):h()}},8264:(e,n,t)=>{t.d(n,{A:()=>u});var s=t(6540),r=t(6300),c=t(1812),i=t(4848);function u(e){let{dosages:n,config:t,i18nConfig:u}=e;const[o,a]=(0,s.useState)(""),[l,d]=(0,s.useState)(t?.language||"en"),[p,f]=(0,s.useState)(null);(0,s.useEffect)((()=>{!async function(){const e=await r.A.build(t,u);f(e)}()}),[t]),(0,s.useEffect)((()=>{!async function(){if(p){const e=p.fromMultipleDosageToText(n);a(e)}}()}),[n,p]);return(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{style:{display:"flex"},children:[(0,i.jsxs)("select",{value:l,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,i.jsx)("option",{value:"en",children:"English"}),(0,i.jsx)("option",{value:"fr",children:"French"}),(0,i.jsx)("option",{value:"nl",children:"Dutch"}),(0,i.jsx)("option",{value:"de",children:"German"})]}),(0,i.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(l);const e=p.fromMultipleDosageToText(n);a(e)}},children:"Confirm"})]}),(0,i.jsx)("div",{style:{marginTop:"10px"},children:(0,i.jsx)(c.default,{language:"markup",children:(g=o,g.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var g}}}]); \ No newline at end of file diff --git a/assets/js/3f237283.7120cfd6.js b/assets/js/3f237283.b0d75f27.js similarity index 92% rename from assets/js/3f237283.7120cfd6.js rename to assets/js/3f237283.b0d75f27.js index 1dc43d6d..10203b03 100644 --- a/assets/js/3f237283.7120cfd6.js +++ b/assets/js/3f237283.b0d75f27.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[2309],{566:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>h,contentTitle:()=>u,default:()=>x,frontMatter:()=>d,metadata:()=>g,toc:()=>p});var a=t(4848),s=t(8453),i=t(1812);const o=JSON.parse('{"doseAndRate":[{"rateRange":{"low":{"value":3,"unit":"pills"},"high":{"value":5,"unit":"pills"}}}]}');var r=t(4865),l=t(9365),c=t(816);const d={description:"Low & High",title:"\u2696\ufe0f rateRange (Low & High)"},u=void 0,g={id:"specs/rateRange/low_and_high",title:"\u2696\ufe0f rateRange (Low & High)",description:"Low & High",source:"@site/docs/specs/rateRange/low_and_high.mdx",sourceDirName:"specs/rateRange",slug:"/specs/rateRange/low_and_high",permalink:"/fhir-dosage-utils/docs/specs/rateRange/low_and_high",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/rateRange/low_and_high.mdx",tags:[],version:"current",frontMatter:{description:"Low & High",title:"\u2696\ufe0f rateRange (Low & High)"},sidebar:"tutorialSidebar",previous:{title:"\u2696\ufe0f rateRange (High only)",permalink:"/fhir-dosage-utils/docs/specs/rateRange/high_only"},next:{title:"\u2696\ufe0f rateRange (Low only)",permalink:"/fhir-dosage-utils/docs/specs/rateRange/low_only"}},h={},p=[];function f(e){const n={a:"a",admonition:"admonition",p:"p",...(0,s.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(r.A,{children:[(0,a.jsx)(l.A,{value:"text",label:"Human readable text",default:!0,children:(0,a.jsx)(c.A,{dosage:o})}),(0,a.jsx)(l.A,{value:"json",label:"Dosage",children:(0,a.jsx)(i.default,{language:"json",children:JSON.stringify(o,null,2)})})]}),"\n",(0,a.jsx)(n.admonition,{type:"tip",children:(0,a.jsxs)(n.p,{children:["Don't forget you can use ",(0,a.jsx)(n.a,{href:"/api/interface/Params",children:"fromFHIRQuantityUnitToString"})," option to fit your needs"]})})]})}function x(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(f,{...e})}):f(e)}},816:(e,n,t)=>{t.d(n,{A:()=>r});var a=t(6540),s=t(6300),i=t(1812),o=t(4848);function r(e){let{dosage:n,config:t,i18nConfig:r}=e;const[l,c]=(0,a.useState)(""),[d,u]=(0,a.useState)(t?.language||"en"),[g,h]=(0,a.useState)(null);(0,a.useEffect)((()=>{!async function(){const e=await s.A.build(t,r);h(e)}()}),[t]),(0,a.useEffect)((()=>{!async function(){if(g){const e=g.fromDosageToText(n);c(e)}}()}),[n,g]);return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{style:{display:"flex"},children:[(0,o.jsxs)("select",{value:d,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,o.jsx)("option",{value:"en",children:"English"}),(0,o.jsx)("option",{value:"fr",children:"French"}),(0,o.jsx)("option",{value:"nl",children:"Dutch"}),(0,o.jsx)("option",{value:"de",children:"German"})]}),(0,o.jsx)("button",{onClick:async()=>{if(g){await g.changeLanguage(d);const e=g.fromDosageToText(n);c(e)}},children:"Confirm"})]}),(0,o.jsx)("div",{style:{marginTop:"10px"},children:(0,o.jsx)(i.default,{language:"markup",children:(p=l,p.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var p}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[2309],{566:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>h,contentTitle:()=>u,default:()=>x,frontMatter:()=>d,metadata:()=>g,toc:()=>p});var a=t(4848),s=t(8453),i=t(1812);const o=JSON.parse('{"doseAndRate":[{"rateRange":{"low":{"value":3,"unit":"pills"},"high":{"value":5,"unit":"pills"}}}]}');var r=t(4865),l=t(9365),c=t(816);const d={description:"Low & High",title:"\u2696\ufe0f rateRange (Low & High)"},u=void 0,g={id:"specs/rateRange/low_and_high",title:"\u2696\ufe0f rateRange (Low & High)",description:"Low & High",source:"@site/docs/specs/rateRange/low_and_high.mdx",sourceDirName:"specs/rateRange",slug:"/specs/rateRange/low_and_high",permalink:"/fhir-dosage-utils/docs/specs/rateRange/low_and_high",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/rateRange/low_and_high.mdx",tags:[],version:"current",frontMatter:{description:"Low & High",title:"\u2696\ufe0f rateRange (Low & High)"},sidebar:"tutorialSidebar",previous:{title:"\u2696\ufe0f rateRange (High only)",permalink:"/fhir-dosage-utils/docs/specs/rateRange/high_only"},next:{title:"\u2696\ufe0f rateRange (Low only)",permalink:"/fhir-dosage-utils/docs/specs/rateRange/low_only"}},h={},p=[];function f(e){const n={a:"a",admonition:"admonition",p:"p",...(0,s.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(r.A,{children:[(0,a.jsx)(l.A,{value:"text",label:"Human readable text",default:!0,children:(0,a.jsx)(c.A,{dosage:o})}),(0,a.jsx)(l.A,{value:"json",label:"Dosage",children:(0,a.jsx)(i.default,{language:"json",children:JSON.stringify(o,null,2)})})]}),"\n",(0,a.jsx)(n.admonition,{type:"tip",children:(0,a.jsxs)(n.p,{children:["Don't forget you can use ",(0,a.jsx)(n.a,{href:"/api/interface/Params",children:"fromFHIRQuantityUnitToString"})," option to fit your needs"]})})]})}function x(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(f,{...e})}):f(e)}},816:(e,n,t)=>{t.d(n,{A:()=>r});var a=t(6540),s=t(6300),i=t(1812),o=t(4848);function r(e){let{dosage:n,config:t,i18nConfig:r}=e;const[l,c]=(0,a.useState)(""),[d,u]=(0,a.useState)(t?.language||"en"),[g,h]=(0,a.useState)(null);(0,a.useEffect)((()=>{!async function(){const e=await s.A.build(t,r);h(e)}()}),[t]),(0,a.useEffect)((()=>{!async function(){if(g){const e=g.fromDosageToText(n);c(e)}}()}),[n,g]);return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{style:{display:"flex"},children:[(0,o.jsxs)("select",{value:d,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,o.jsx)("option",{value:"en",children:"English"}),(0,o.jsx)("option",{value:"fr",children:"French"}),(0,o.jsx)("option",{value:"nl",children:"Dutch"}),(0,o.jsx)("option",{value:"de",children:"German"})]}),(0,o.jsx)("button",{onClick:async()=>{if(g){await g.changeLanguage(d);const e=g.fromDosageToText(n);c(e)}},children:"Confirm"})]}),(0,o.jsx)("div",{style:{marginTop:"10px"},children:(0,o.jsx)(i.default,{language:"markup",children:(p=l,p.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var p}}}]); \ No newline at end of file diff --git a/assets/js/3fb26655.8bd48b17.js b/assets/js/3fb26655.9107aadf.js similarity index 81% rename from assets/js/3fb26655.8bd48b17.js rename to assets/js/3fb26655.9107aadf.js index 509c3114..d1c040e0 100644 --- a/assets/js/3fb26655.8bd48b17.js +++ b/assets/js/3fb26655.9107aadf.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[8678],{1334:(e,r,t)=>{t.r(r),t.d(r,{assets:()=>x,contentTitle:()=>u,default:()=>h,frontMatter:()=>l,metadata:()=>m,toc:()=>p});var o=t(4848),n=t(8453),s=t(1812);const a=JSON.parse('{"maxDosePerPeriod":[{"numerator":{"value":3,"unit":"pills"},"denominator":{"value":5,"unit":"hours"}},{"numerator":{"value":1000,"unit":"mg"},"denominator":{"value":1,"unit":"hour"}}]}');var i=t(4865),d=t(9365),c=t(816);const l={description:"maxDosePerPeriod (R5)",title:"\u23f3 maxDosePerPeriod (R5)"},u=void 0,m={id:"specs/maxDosePerPeriod/r5",title:"\u23f3 maxDosePerPeriod (R5)",description:"maxDosePerPeriod (R5)",source:"@site/docs/specs/maxDosePerPeriod/r5.mdx",sourceDirName:"specs/maxDosePerPeriod",slug:"/specs/maxDosePerPeriod/r5",permalink:"/fhir-dosage-utils/docs/specs/maxDosePerPeriod/r5",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/maxDosePerPeriod/r5.mdx",tags:[],version:"current",frontMatter:{description:"maxDosePerPeriod (R5)",title:"\u23f3 maxDosePerPeriod (R5)"},sidebar:"tutorialSidebar",previous:{title:"\u23f3 maxDosePerPeriod (R4)",permalink:"/fhir-dosage-utils/docs/specs/maxDosePerPeriod/r4"},next:{title:"\ud83d\udee0\ufe0f method",permalink:"/fhir-dosage-utils/docs/category/\ufe0f-method"}},x={},p=[];function f(e){const r={a:"a",admonition:"admonition",p:"p",...(0,n.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(i.A,{children:[(0,o.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,o.jsx)(c.A,{dosage:a})}),(0,o.jsx)(d.A,{value:"json",label:"Dosage",children:(0,o.jsx)(s.default,{language:"json",children:JSON.stringify(a,null,2)})})]}),"\n",(0,o.jsx)(r.admonition,{type:"tip",children:(0,o.jsxs)(r.p,{children:["Don't forget you can use ",(0,o.jsx)(r.a,{href:"/api/interface/Params",children:"fromFHIRQuantityUnitToString"})," option to fit your needs"]})})]})}function h(e={}){const{wrapper:r}={...(0,n.R)(),...e.components};return r?(0,o.jsx)(r,{...e,children:(0,o.jsx)(f,{...e})}):f(e)}},816:(e,r,t)=>{t.d(r,{A:()=>i});var o=t(6540),n=t(6300),s=t(1812),a=t(4848);function i(e){let{dosage:r,config:t,i18nConfig:i}=e;const[d,c]=(0,o.useState)(""),[l,u]=(0,o.useState)(t?.language||"en"),[m,x]=(0,o.useState)(null);(0,o.useEffect)((()=>{!async function(){const e=await n.A.build(t,i);x(e)}()}),[t]),(0,o.useEffect)((()=>{!async function(){if(m){const e=m.fromDosageToText(r);c(e)}}()}),[r,m]);return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{style:{display:"flex"},children:[(0,a.jsxs)("select",{value:l,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,a.jsx)("option",{value:"en",children:"English"}),(0,a.jsx)("option",{value:"fr",children:"French"}),(0,a.jsx)("option",{value:"nl",children:"Dutch"}),(0,a.jsx)("option",{value:"de",children:"German"})]}),(0,a.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(l);const e=m.fromDosageToText(r);c(e)}},children:"Confirm"})]}),(0,a.jsx)("div",{style:{marginTop:"10px"},children:(0,a.jsx)(s.default,{language:"markup",children:(p=d,p.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,r){return String.fromCharCode(r)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,r){return String.fromCharCode(parseInt(r,16))})))})})]});var p}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[8678],{1334:(e,r,t)=>{t.r(r),t.d(r,{assets:()=>p,contentTitle:()=>u,default:()=>g,frontMatter:()=>l,metadata:()=>m,toc:()=>x});var o=t(4848),n=t(8453),s=t(1812);const a=JSON.parse('{"maxDosePerPeriod":[{"numerator":{"value":3,"unit":"pills"},"denominator":{"value":5,"unit":"hours"}},{"numerator":{"value":1000,"unit":"mg"},"denominator":{"value":1,"unit":"hour"}}]}');var i=t(4865),d=t(9365),c=t(816);const l={description:"maxDosePerPeriod (R5)",title:"\u23f3 maxDosePerPeriod (R5)"},u=void 0,m={id:"specs/maxDosePerPeriod/r5",title:"\u23f3 maxDosePerPeriod (R5)",description:"maxDosePerPeriod (R5)",source:"@site/docs/specs/maxDosePerPeriod/r5.mdx",sourceDirName:"specs/maxDosePerPeriod",slug:"/specs/maxDosePerPeriod/r5",permalink:"/fhir-dosage-utils/docs/specs/maxDosePerPeriod/r5",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/maxDosePerPeriod/r5.mdx",tags:[],version:"current",frontMatter:{description:"maxDosePerPeriod (R5)",title:"\u23f3 maxDosePerPeriod (R5)"},sidebar:"tutorialSidebar",previous:{title:"\u23f3 maxDosePerPeriod (R4)",permalink:"/fhir-dosage-utils/docs/specs/maxDosePerPeriod/r4"},next:{title:"\ud83d\udee0\ufe0f method",permalink:"/fhir-dosage-utils/docs/category/\ufe0f-method"}},p={},x=[];function f(e){const r={a:"a",admonition:"admonition",p:"p",...(0,n.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(i.A,{children:[(0,o.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,o.jsx)(c.A,{dosage:a})}),(0,o.jsx)(d.A,{value:"json",label:"Dosage",children:(0,o.jsx)(s.default,{language:"json",children:JSON.stringify(a,null,2)})})]}),"\n",(0,o.jsx)(r.admonition,{type:"tip",children:(0,o.jsxs)(r.p,{children:["Don't forget you can use ",(0,o.jsx)(r.a,{href:"/api/interface/Params",children:"fromFHIRQuantityUnitToString"})," option to fit your needs"]})})]})}function g(e={}){const{wrapper:r}={...(0,n.R)(),...e.components};return r?(0,o.jsx)(r,{...e,children:(0,o.jsx)(f,{...e})}):f(e)}},816:(e,r,t)=>{t.d(r,{A:()=>i});var o=t(6540),n=t(6300),s=t(1812),a=t(4848);function i(e){let{dosage:r,config:t,i18nConfig:i}=e;const[d,c]=(0,o.useState)(""),[l,u]=(0,o.useState)(t?.language||"en"),[m,p]=(0,o.useState)(null);(0,o.useEffect)((()=>{!async function(){const e=await n.A.build(t,i);p(e)}()}),[t]),(0,o.useEffect)((()=>{!async function(){if(m){const e=m.fromDosageToText(r);c(e)}}()}),[r,m]);return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{style:{display:"flex"},children:[(0,a.jsxs)("select",{value:l,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,a.jsx)("option",{value:"en",children:"English"}),(0,a.jsx)("option",{value:"fr",children:"French"}),(0,a.jsx)("option",{value:"nl",children:"Dutch"}),(0,a.jsx)("option",{value:"de",children:"German"})]}),(0,a.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(l);const e=m.fromDosageToText(r);c(e)}},children:"Confirm"})]}),(0,a.jsx)("div",{style:{marginTop:"10px"},children:(0,a.jsx)(s.default,{language:"markup",children:(x=d,x.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,r){return String.fromCharCode(r)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,r){return String.fromCharCode(parseInt(r,16))})))})})]});var x}}}]); \ No newline at end of file diff --git a/assets/js/40c0f713.d3865322.js b/assets/js/40c0f713.1d2e2102.js similarity index 80% rename from assets/js/40c0f713.d3865322.js rename to assets/js/40c0f713.1d2e2102.js index ee9b8f9a..bbbe2eeb 100644 --- a/assets/js/40c0f713.d3865322.js +++ b/assets/js/40c0f713.1d2e2102.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[5251],{8531:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>p,contentTitle:()=>c,default:()=>x,frontMatter:()=>u,metadata:()=>g,toc:()=>f});var n=s(4848),o=s(8453),r=s(1812);const a=JSON.parse('{"timing":{"repeat":{"boundsPeriod":{"start":"2015-02-07T13:28:17"}}}}');var i=s(4865),d=s(9365),l=s(816);const u={description:"start only",title:"\u23f3 boundsPeriod (start only)"},c=void 0,g={id:"specs/boundsPeriod/start_only",title:"\u23f3 boundsPeriod (start only)",description:"start only",source:"@site/docs/specs/boundsPeriod/start_only.mdx",sourceDirName:"specs/boundsPeriod",slug:"/specs/boundsPeriod/start_only",permalink:"/fhir-dosage-utils/docs/specs/boundsPeriod/start_only",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/boundsPeriod/start_only.mdx",tags:[],version:"current",frontMatter:{description:"start only",title:"\u23f3 boundsPeriod (start only)"},sidebar:"tutorialSidebar",previous:{title:"\u23f3 boundsPeriod (start & end)",permalink:"/fhir-dosage-utils/docs/specs/boundsPeriod/start_and_end"},next:{title:"\ud83d\udcd0 boundsRange",permalink:"/fhir-dosage-utils/docs/category/-boundsrange"}},p={},f=[];function h(e){return(0,n.jsxs)(i.A,{children:[(0,n.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(l.A,{dosage:a})}),(0,n.jsx)(d.A,{value:"json",label:"Dosage",children:(0,n.jsx)(r.default,{language:"json",children:JSON.stringify(a,null,2)})})]})}function x(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(h,{...e})}):h()}},816:(e,t,s)=>{s.d(t,{A:()=>i});var n=s(6540),o=s(6300),r=s(1812),a=s(4848);function i(e){let{dosage:t,config:s,i18nConfig:i}=e;const[d,l]=(0,n.useState)(""),[u,c]=(0,n.useState)(s?.language||"en"),[g,p]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await o.A.build(s,i);p(e)}()}),[s]),(0,n.useEffect)((()=>{!async function(){if(g){const e=g.fromDosageToText(t);l(e)}}()}),[t,g]);return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{style:{display:"flex"},children:[(0,a.jsxs)("select",{value:u,onChange:e=>c(e.target.value),style:{marginRight:"10px"},children:[(0,a.jsx)("option",{value:"en",children:"English"}),(0,a.jsx)("option",{value:"fr",children:"French"}),(0,a.jsx)("option",{value:"nl",children:"Dutch"}),(0,a.jsx)("option",{value:"de",children:"German"})]}),(0,a.jsx)("button",{onClick:async()=>{if(g){await g.changeLanguage(u);const e=g.fromDosageToText(t);l(e)}},children:"Confirm"})]}),(0,a.jsx)("div",{style:{marginTop:"10px"},children:(0,a.jsx)(r.default,{language:"markup",children:(f=d,f.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var f}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[5251],{8531:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>p,contentTitle:()=>c,default:()=>x,frontMatter:()=>u,metadata:()=>g,toc:()=>f});var n=s(4848),r=s(8453),o=s(1812);const a=JSON.parse('{"timing":{"repeat":{"boundsPeriod":{"start":"2015-02-07T13:28:17"}}}}');var i=s(4865),d=s(9365),l=s(816);const u={description:"start only",title:"\u23f3 boundsPeriod (start only)"},c=void 0,g={id:"specs/boundsPeriod/start_only",title:"\u23f3 boundsPeriod (start only)",description:"start only",source:"@site/docs/specs/boundsPeriod/start_only.mdx",sourceDirName:"specs/boundsPeriod",slug:"/specs/boundsPeriod/start_only",permalink:"/fhir-dosage-utils/docs/specs/boundsPeriod/start_only",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/boundsPeriod/start_only.mdx",tags:[],version:"current",frontMatter:{description:"start only",title:"\u23f3 boundsPeriod (start only)"},sidebar:"tutorialSidebar",previous:{title:"\u23f3 boundsPeriod (start & end)",permalink:"/fhir-dosage-utils/docs/specs/boundsPeriod/start_and_end"},next:{title:"\ud83d\udcd0 boundsRange",permalink:"/fhir-dosage-utils/docs/category/-boundsrange"}},p={},f=[];function h(e){return(0,n.jsxs)(i.A,{children:[(0,n.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(l.A,{dosage:a})}),(0,n.jsx)(d.A,{value:"json",label:"Dosage",children:(0,n.jsx)(o.default,{language:"json",children:JSON.stringify(a,null,2)})})]})}function x(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(h,{...e})}):h()}},816:(e,t,s)=>{s.d(t,{A:()=>i});var n=s(6540),r=s(6300),o=s(1812),a=s(4848);function i(e){let{dosage:t,config:s,i18nConfig:i}=e;const[d,l]=(0,n.useState)(""),[u,c]=(0,n.useState)(s?.language||"en"),[g,p]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await r.A.build(s,i);p(e)}()}),[s]),(0,n.useEffect)((()=>{!async function(){if(g){const e=g.fromDosageToText(t);l(e)}}()}),[t,g]);return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{style:{display:"flex"},children:[(0,a.jsxs)("select",{value:u,onChange:e=>c(e.target.value),style:{marginRight:"10px"},children:[(0,a.jsx)("option",{value:"en",children:"English"}),(0,a.jsx)("option",{value:"fr",children:"French"}),(0,a.jsx)("option",{value:"nl",children:"Dutch"}),(0,a.jsx)("option",{value:"de",children:"German"})]}),(0,a.jsx)("button",{onClick:async()=>{if(g){await g.changeLanguage(u);const e=g.fromDosageToText(t);l(e)}},children:"Confirm"})]}),(0,a.jsx)("div",{style:{marginTop:"10px"},children:(0,a.jsx)(o.default,{language:"markup",children:(f=d,f.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var f}}}]); \ No newline at end of file diff --git a/assets/js/430bd102.4225414f.js b/assets/js/430bd102.349d61ad.js similarity index 73% rename from assets/js/430bd102.4225414f.js rename to assets/js/430bd102.349d61ad.js index 2b145381..89bfab4e 100644 --- a/assets/js/430bd102.4225414f.js +++ b/assets/js/430bd102.349d61ad.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[2485],{4539:(t,n,e)=>{e.r(n),e.d(n,{assets:()=>f,contentTitle:()=>d,default:()=>p,frontMatter:()=>c,metadata:()=>g,toc:()=>m});var i=e(4848),o=e(8453),a=e(1812);const r=JSON.parse('{"doseAndRate":[{"doseQuantity":{"value":"25","system":"http://unitsofmeasure.org","code":"ug"}}]}');var s=e(4865),u=e(9365),l=e(816);const c={description:'Function to turn a quantity unit (e.g UCUM "ml") into a string for humans (e.g "militier")',title:"\ud83d\udccf fromFHIRQuantityUnitToString"},d=void 0,g={id:"custom/fromFHIRQuantityUnitToString",title:"\ud83d\udccf fromFHIRQuantityUnitToString",description:'Function to turn a quantity unit (e.g UCUM "ml") into a string for humans (e.g "militier")',source:"@site/docs/custom/fromFHIRQuantityUnitToString.mdx",sourceDirName:"custom",slug:"/custom/fromFHIRQuantityUnitToString",permalink:"/fhir-dosage-utils/docs/custom/fromFHIRQuantityUnitToString",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/custom/fromFHIRQuantityUnitToString.mdx",tags:[],version:"current",frontMatter:{description:'Function to turn a quantity unit (e.g UCUM "ml") into a string for humans (e.g "militier")',title:"\ud83d\udccf fromFHIRQuantityUnitToString"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udd0c fromExtensionsToString",permalink:"/fhir-dosage-utils/docs/custom/fromExtensionsToString"},next:{title:"\ud83c\udf10 i18nConfig",permalink:"/fhir-dosage-utils/docs/custom/i18nConfig"}},f={},m=[];function h(t){const n={code:"code",pre:"pre",...(0,o.R)(),...t.components};return(0,i.jsxs)(s.A,{children:[(0,i.jsx)(u.A,{value:"text",label:"Human readable text",default:!0,children:(0,i.jsx)(l.A,{dosage:r,config:{fromFHIRQuantityUnitToString:({quantity:t,language:n})=>`[${n} translation of "${t.code||t.unit}" (${t.system||""})]`}})}),(0,i.jsx)(u.A,{value:"json",label:"Dosage",children:(0,i.jsx)(a.default,{language:"json",children:JSON.stringify(r,null,2)})}),(0,i.jsx)(u.A,{value:"config",label:"Configuration",children:(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-js",children:'{\n fromFHIRQuantityUnitToString: ({ quantity, language }) => {\n let unit = quantity.code || quantity.unit;\n let system = quantity.system || "";\n\n return `[${language} translation of "${unit}" (${system})]`;\n };\n}\n'})})})]})}function p(t={}){const{wrapper:n}={...(0,o.R)(),...t.components};return n?(0,i.jsx)(n,{...t,children:(0,i.jsx)(h,{...t})}):h(t)}},816:(t,n,e)=>{e.d(n,{A:()=>s});var i=e(6540),o=e(6300),a=e(1812),r=e(4848);function s(t){let{dosage:n,config:e,i18nConfig:s}=t;const[u,l]=(0,i.useState)(""),[c,d]=(0,i.useState)(e?.language||"en"),[g,f]=(0,i.useState)(null);(0,i.useEffect)((()=>{!async function(){const t=await o.A.build(e,s);f(t)}()}),[e]),(0,i.useEffect)((()=>{!async function(){if(g){const t=g.fromDosageToText(n);l(t)}}()}),[n,g]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:c,onChange:t=>d(t.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(g){await g.changeLanguage(c);const t=g.fromDosageToText(n);l(t)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(a.default,{language:"markup",children:(m=u,m.replace(/"/g,'"').replace(/&#(\d+);/g,(function(t,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(t,n){return String.fromCharCode(parseInt(n,16))})))})})]});var m}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[2485],{4539:(t,n,e)=>{e.r(n),e.d(n,{assets:()=>m,contentTitle:()=>g,default:()=>p,frontMatter:()=>c,metadata:()=>d,toc:()=>f});var i=e(4848),o=e(8453),a=e(1812);const r=JSON.parse('{"doseAndRate":[{"doseQuantity":{"value":"25","system":"http://unitsofmeasure.org","code":"ug"}}]}');var s=e(4865),u=e(9365),l=e(816);const c={description:'Function to turn a quantity unit (e.g UCUM "ml") into a string for humans (e.g "militier")',title:"\ud83d\udccf fromFHIRQuantityUnitToString"},g=void 0,d={id:"custom/fromFHIRQuantityUnitToString",title:"\ud83d\udccf fromFHIRQuantityUnitToString",description:'Function to turn a quantity unit (e.g UCUM "ml") into a string for humans (e.g "militier")',source:"@site/docs/custom/fromFHIRQuantityUnitToString.mdx",sourceDirName:"custom",slug:"/custom/fromFHIRQuantityUnitToString",permalink:"/fhir-dosage-utils/docs/custom/fromFHIRQuantityUnitToString",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/custom/fromFHIRQuantityUnitToString.mdx",tags:[],version:"current",frontMatter:{description:'Function to turn a quantity unit (e.g UCUM "ml") into a string for humans (e.g "militier")',title:"\ud83d\udccf fromFHIRQuantityUnitToString"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udd0c fromExtensionsToString",permalink:"/fhir-dosage-utils/docs/custom/fromExtensionsToString"},next:{title:"\ud83c\udf10 i18nConfig",permalink:"/fhir-dosage-utils/docs/custom/i18nConfig"}},m={},f=[];function h(t){const n={code:"code",pre:"pre",...(0,o.R)(),...t.components};return(0,i.jsxs)(s.A,{children:[(0,i.jsx)(u.A,{value:"text",label:"Human readable text",default:!0,children:(0,i.jsx)(l.A,{dosage:r,config:{fromFHIRQuantityUnitToString:({quantity:t,language:n})=>`[${n} translation of "${t.code||t.unit}" (${t.system||""})]`}})}),(0,i.jsx)(u.A,{value:"json",label:"Dosage",children:(0,i.jsx)(a.default,{language:"json",children:JSON.stringify(r,null,2)})}),(0,i.jsx)(u.A,{value:"config",label:"Configuration",children:(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-js",children:'{\n fromFHIRQuantityUnitToString: ({ quantity, language }) => {\n let unit = quantity.code || quantity.unit;\n let system = quantity.system || "";\n\n return `[${language} translation of "${unit}" (${system})]`;\n };\n}\n'})})})]})}function p(t={}){const{wrapper:n}={...(0,o.R)(),...t.components};return n?(0,i.jsx)(n,{...t,children:(0,i.jsx)(h,{...t})}):h(t)}},816:(t,n,e)=>{e.d(n,{A:()=>s});var i=e(6540),o=e(6300),a=e(1812),r=e(4848);function s(t){let{dosage:n,config:e,i18nConfig:s}=t;const[u,l]=(0,i.useState)(""),[c,g]=(0,i.useState)(e?.language||"en"),[d,m]=(0,i.useState)(null);(0,i.useEffect)((()=>{!async function(){const t=await o.A.build(e,s);m(t)}()}),[e]),(0,i.useEffect)((()=>{!async function(){if(d){const t=d.fromDosageToText(n);l(t)}}()}),[n,d]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:c,onChange:t=>g(t.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(d){await d.changeLanguage(c);const t=d.fromDosageToText(n);l(t)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(a.default,{language:"markup",children:(f=u,f.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(t,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(t,n){return String.fromCharCode(parseInt(n,16))})))})})]});var f}}}]); \ No newline at end of file diff --git a/assets/js/460a5c5b.12220cf3.js b/assets/js/460a5c5b.db2440a6.js similarity index 92% rename from assets/js/460a5c5b.12220cf3.js rename to assets/js/460a5c5b.db2440a6.js index 2b893890..658912bc 100644 --- a/assets/js/460a5c5b.12220cf3.js +++ b/assets/js/460a5c5b.db2440a6.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[2453],{2253:(a,n,t)=>{t.r(n),t.d(n,{assets:()=>p,contentTitle:()=>l,default:()=>h,frontMatter:()=>c,metadata:()=>x,toc:()=>f});var e=t(4848),i=t(8453),r=t(1812);const o=JSON.parse('{"timing":{"repeat":{"duration":1,"durationMax":3,"durationUnit":"d"}}}');var u=t(4865),d=t(9365),s=t(816);const c={description:"duration and durationMax",title:"\u23f0 duration and durationMax"},l=void 0,x={id:"specs/durationDurationMax/duration_and_durationMax",title:"\u23f0 duration and durationMax",description:"duration and durationMax",source:"@site/docs/specs/durationDurationMax/duration_and_durationMax.mdx",sourceDirName:"specs/durationDurationMax",slug:"/specs/durationDurationMax/duration_and_durationMax",permalink:"/fhir-dosage-utils/docs/specs/durationDurationMax/duration_and_durationMax",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/durationDurationMax/duration_and_durationMax.mdx",tags:[],version:"current",frontMatter:{description:"duration and durationMax",title:"\u23f0 duration and durationMax"},sidebar:"tutorialSidebar",previous:{title:"\u23f0 durationMax",permalink:"/fhir-dosage-utils/docs/specs/durationDurationMax/durationMax_only"},next:{title:"\u23f0 duration",permalink:"/fhir-dosage-utils/docs/specs/durationDurationMax/duration_only"}},p={},f=[];function g(a){return(0,e.jsxs)(u.A,{children:[(0,e.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,e.jsx)(s.A,{dosage:o})}),(0,e.jsx)(d.A,{value:"json",label:"Dosage",children:(0,e.jsx)(r.default,{language:"json",children:JSON.stringify(o,null,2)})})]})}function h(a={}){const{wrapper:n}={...(0,i.R)(),...a.components};return n?(0,e.jsx)(n,{...a,children:(0,e.jsx)(g,{...a})}):g()}},816:(a,n,t)=>{t.d(n,{A:()=>u});var e=t(6540),i=t(6300),r=t(1812),o=t(4848);function u(a){let{dosage:n,config:t,i18nConfig:u}=a;const[d,s]=(0,e.useState)(""),[c,l]=(0,e.useState)(t?.language||"en"),[x,p]=(0,e.useState)(null);(0,e.useEffect)((()=>{!async function(){const a=await i.A.build(t,u);p(a)}()}),[t]),(0,e.useEffect)((()=>{!async function(){if(x){const a=x.fromDosageToText(n);s(a)}}()}),[n,x]);return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{style:{display:"flex"},children:[(0,o.jsxs)("select",{value:c,onChange:a=>l(a.target.value),style:{marginRight:"10px"},children:[(0,o.jsx)("option",{value:"en",children:"English"}),(0,o.jsx)("option",{value:"fr",children:"French"}),(0,o.jsx)("option",{value:"nl",children:"Dutch"}),(0,o.jsx)("option",{value:"de",children:"German"})]}),(0,o.jsx)("button",{onClick:async()=>{if(x){await x.changeLanguage(c);const a=x.fromDosageToText(n);s(a)}},children:"Confirm"})]}),(0,o.jsx)("div",{style:{marginTop:"10px"},children:(0,o.jsx)(r.default,{language:"markup",children:(f=d,f.replace(/"/g,'"').replace(/&#(\d+);/g,(function(a,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(a,n){return String.fromCharCode(parseInt(n,16))})))})})]});var f}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[2453],{2253:(a,n,t)=>{t.r(n),t.d(n,{assets:()=>p,contentTitle:()=>l,default:()=>h,frontMatter:()=>c,metadata:()=>x,toc:()=>f});var e=t(4848),i=t(8453),r=t(1812);const o=JSON.parse('{"timing":{"repeat":{"duration":1,"durationMax":3,"durationUnit":"d"}}}');var u=t(4865),d=t(9365),s=t(816);const c={description:"duration and durationMax",title:"\u23f0 duration and durationMax"},l=void 0,x={id:"specs/durationDurationMax/duration_and_durationMax",title:"\u23f0 duration and durationMax",description:"duration and durationMax",source:"@site/docs/specs/durationDurationMax/duration_and_durationMax.mdx",sourceDirName:"specs/durationDurationMax",slug:"/specs/durationDurationMax/duration_and_durationMax",permalink:"/fhir-dosage-utils/docs/specs/durationDurationMax/duration_and_durationMax",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/durationDurationMax/duration_and_durationMax.mdx",tags:[],version:"current",frontMatter:{description:"duration and durationMax",title:"\u23f0 duration and durationMax"},sidebar:"tutorialSidebar",previous:{title:"\u23f0 durationMax",permalink:"/fhir-dosage-utils/docs/specs/durationDurationMax/durationMax_only"},next:{title:"\u23f0 duration",permalink:"/fhir-dosage-utils/docs/specs/durationDurationMax/duration_only"}},p={},f=[];function g(a){return(0,e.jsxs)(u.A,{children:[(0,e.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,e.jsx)(s.A,{dosage:o})}),(0,e.jsx)(d.A,{value:"json",label:"Dosage",children:(0,e.jsx)(r.default,{language:"json",children:JSON.stringify(o,null,2)})})]})}function h(a={}){const{wrapper:n}={...(0,i.R)(),...a.components};return n?(0,e.jsx)(n,{...a,children:(0,e.jsx)(g,{...a})}):g()}},816:(a,n,t)=>{t.d(n,{A:()=>u});var e=t(6540),i=t(6300),r=t(1812),o=t(4848);function u(a){let{dosage:n,config:t,i18nConfig:u}=a;const[d,s]=(0,e.useState)(""),[c,l]=(0,e.useState)(t?.language||"en"),[x,p]=(0,e.useState)(null);(0,e.useEffect)((()=>{!async function(){const a=await i.A.build(t,u);p(a)}()}),[t]),(0,e.useEffect)((()=>{!async function(){if(x){const a=x.fromDosageToText(n);s(a)}}()}),[n,x]);return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{style:{display:"flex"},children:[(0,o.jsxs)("select",{value:c,onChange:a=>l(a.target.value),style:{marginRight:"10px"},children:[(0,o.jsx)("option",{value:"en",children:"English"}),(0,o.jsx)("option",{value:"fr",children:"French"}),(0,o.jsx)("option",{value:"nl",children:"Dutch"}),(0,o.jsx)("option",{value:"de",children:"German"})]}),(0,o.jsx)("button",{onClick:async()=>{if(x){await x.changeLanguage(c);const a=x.fromDosageToText(n);s(a)}},children:"Confirm"})]}),(0,o.jsx)("div",{style:{marginTop:"10px"},children:(0,o.jsx)(r.default,{language:"markup",children:(f=d,f.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(a,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(a,n){return String.fromCharCode(parseInt(n,16))})))})})]});var f}}}]); \ No newline at end of file diff --git a/assets/js/4628893b.6251b86e.js b/assets/js/4628893b.ad92aae2.js similarity index 95% rename from assets/js/4628893b.6251b86e.js rename to assets/js/4628893b.ad92aae2.js index ebbd73ee..e0d479b3 100644 --- a/assets/js/4628893b.6251b86e.js +++ b/assets/js/4628893b.ad92aae2.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[2857],{3433:(e,t,o)=>{o.r(t),o.d(t,{assets:()=>p,contentTitle:()=>u,default:()=>x,frontMatter:()=>c,metadata:()=>m,toc:()=>h});var n=o(4848),i=o(8453),s=o(1812);const r=JSON.parse('[{"sequence":1,"text":"0.25mg PO every 6-12 hours as needed for menses from Jan 15-20, 2015. Do not exceed more than 4mg per day","additionalInstruction":[{"coding":[{"system":"http://snomed.info/sct","code":"418914006","display":"Warning. May cause drowsiness. If affected do not drive or operate machinery. Avoid alcoholic drink (qualifier value)"}]}],"timing":{"repeat":{"boundsPeriod":{"start":"2015-01-15","end":"2015-01-20"},"frequency":1,"period":6,"periodMax":12,"periodUnit":"h"}},"asNeededFor":[{"coding":[{"system":"http://snomed.info/sct","code":"266599000","display":"Dysmenorrhea (disorder)"}]}],"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral Route"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":1,"unit":"TAB","system":"http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm","code":"TAB"}}],"maxDosePerAdministration":{"value":4,"unit":"mg","system":"http://unitsofmeasure.org","code":"mg"}}]');var a=o(4865),d=o(9365),l=o(8264);const c={description:"Order with Dosage with a Pre-Condition - Alprazolam - dosageInstructions includes boundsPeriod with periodMax and asNeededCodeableConcept",title:"medrx0305"},u=void 0,m={id:"examples/medicationrequest/medrx0305",title:"medrx0305",description:"Order with Dosage with a Pre-Condition - Alprazolam - dosageInstructions includes boundsPeriod with periodMax and asNeededCodeableConcept",source:"@site/docs/examples/medicationrequest/medrx0305.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx0305",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0305",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx0305.mdx",tags:[],version:"current",frontMatter:{description:"Order with Dosage with a Pre-Condition - Alprazolam - dosageInstructions includes boundsPeriod with periodMax and asNeededCodeableConcept",title:"medrx0305"},sidebar:"tutorialSidebar",previous:{title:"medrx0303",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0303"},next:{title:"medrx0307",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0307"}},p={},h=[];function g(e){const t={a:"a",admonition:"admonition",p:"p",...(0,i.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.admonition,{type:"info",children:(0,n.jsxs)(t.p,{children:["Source: ",(0,n.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequest0305.html",children:"HL7"}),' - "Order with Dosage with a Pre-Condition - Alprazolam - dosageInstructions includes boundsPeriod with periodMax and asNeededCodeableConcept"']})}),"\n",(0,n.jsxs)(a.A,{children:[(0,n.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(l.A,{dosages:r,config:{}})}),(0,n.jsx)(d.A,{value:"json",label:"Dosage",children:(0,n.jsx)(s.default,{language:"json",children:JSON.stringify(r,null,2)})})]})]})}function x(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(g,{...e})}):g(e)}},8264:(e,t,o)=>{o.d(t,{A:()=>a});var n=o(6540),i=o(6300),s=o(1812),r=o(4848);function a(e){let{dosages:t,config:o,i18nConfig:a}=e;const[d,l]=(0,n.useState)(""),[c,u]=(0,n.useState)(o?.language||"en"),[m,p]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await i.A.build(o,a);p(e)}()}),[o]),(0,n.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);l(e)}}()}),[t,m]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:c,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(c);const e=m.fromMultipleDosageToText(t);l(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(s.default,{language:"markup",children:(h=d,h.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var h}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[2857],{3433:(e,t,o)=>{o.r(t),o.d(t,{assets:()=>p,contentTitle:()=>u,default:()=>x,frontMatter:()=>c,metadata:()=>m,toc:()=>h});var n=o(4848),i=o(8453),s=o(1812);const r=JSON.parse('[{"sequence":1,"text":"0.25mg PO every 6-12 hours as needed for menses from Jan 15-20, 2015. Do not exceed more than 4mg per day","additionalInstruction":[{"coding":[{"system":"http://snomed.info/sct","code":"418914006","display":"Warning. May cause drowsiness. If affected do not drive or operate machinery. Avoid alcoholic drink (qualifier value)"}]}],"timing":{"repeat":{"boundsPeriod":{"start":"2015-01-15","end":"2015-01-20"},"frequency":1,"period":6,"periodMax":12,"periodUnit":"h"}},"asNeededFor":[{"coding":[{"system":"http://snomed.info/sct","code":"266599000","display":"Dysmenorrhea (disorder)"}]}],"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral Route"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":1,"unit":"TAB","system":"http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm","code":"TAB"}}],"maxDosePerAdministration":{"value":4,"unit":"mg","system":"http://unitsofmeasure.org","code":"mg"}}]');var a=o(4865),d=o(9365),l=o(8264);const c={description:"Order with Dosage with a Pre-Condition - Alprazolam - dosageInstructions includes boundsPeriod with periodMax and asNeededCodeableConcept",title:"medrx0305"},u=void 0,m={id:"examples/medicationrequest/medrx0305",title:"medrx0305",description:"Order with Dosage with a Pre-Condition - Alprazolam - dosageInstructions includes boundsPeriod with periodMax and asNeededCodeableConcept",source:"@site/docs/examples/medicationrequest/medrx0305.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx0305",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0305",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx0305.mdx",tags:[],version:"current",frontMatter:{description:"Order with Dosage with a Pre-Condition - Alprazolam - dosageInstructions includes boundsPeriod with periodMax and asNeededCodeableConcept",title:"medrx0305"},sidebar:"tutorialSidebar",previous:{title:"medrx0303",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0303"},next:{title:"medrx0307",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0307"}},p={},h=[];function g(e){const t={a:"a",admonition:"admonition",p:"p",...(0,i.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.admonition,{type:"info",children:(0,n.jsxs)(t.p,{children:["Source: ",(0,n.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequest0305.html",children:"HL7"}),' - "Order with Dosage with a Pre-Condition - Alprazolam - dosageInstructions includes boundsPeriod with periodMax and asNeededCodeableConcept"']})}),"\n",(0,n.jsxs)(a.A,{children:[(0,n.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(l.A,{dosages:r,config:{}})}),(0,n.jsx)(d.A,{value:"json",label:"Dosage",children:(0,n.jsx)(s.default,{language:"json",children:JSON.stringify(r,null,2)})})]})]})}function x(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(g,{...e})}):g(e)}},8264:(e,t,o)=>{o.d(t,{A:()=>a});var n=o(6540),i=o(6300),s=o(1812),r=o(4848);function a(e){let{dosages:t,config:o,i18nConfig:a}=e;const[d,l]=(0,n.useState)(""),[c,u]=(0,n.useState)(o?.language||"en"),[m,p]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await i.A.build(o,a);p(e)}()}),[o]),(0,n.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);l(e)}}()}),[t,m]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:c,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(c);const e=m.fromMultipleDosageToText(t);l(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(s.default,{language:"markup",children:(h=d,h.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var h}}}]); \ No newline at end of file diff --git a/assets/js/49044b90.9d078def.js b/assets/js/49044b90.e632b4a0.js similarity index 79% rename from assets/js/49044b90.9d078def.js rename to assets/js/49044b90.e632b4a0.js index e56e0602..e3a4170b 100644 --- a/assets/js/49044b90.9d078def.js +++ b/assets/js/49044b90.e632b4a0.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[1659],{2584:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>f,contentTitle:()=>d,default:()=>h,frontMatter:()=>u,metadata:()=>p,toc:()=>m});var i=s(4848),n=s(8453),a=s(1812);const l=JSON.parse('{"timing":{"repeat":{"dayOfWeek":["mon","fri"]}}}');var r=s(4865),o=s(9365),c=s(816);const u={description:"Multiple items",title:"\ud83d\udcc5 Multiple items"},d=void 0,p={id:"specs/dayOfWeek/multiple_items",title:"\ud83d\udcc5 Multiple items",description:"Multiple items",source:"@site/docs/specs/dayOfWeek/multiple_items.mdx",sourceDirName:"specs/dayOfWeek",slug:"/specs/dayOfWeek/multiple_items",permalink:"/fhir-dosage-utils/docs/specs/dayOfWeek/multiple_items",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/dayOfWeek/multiple_items.mdx",tags:[],version:"current",frontMatter:{description:"Multiple items",title:"\ud83d\udcc5 Multiple items"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udcc5 dayOfWeek",permalink:"/fhir-dosage-utils/docs/category/-dayofweek"},next:{title:"\ud83d\udcc5 Single item",permalink:"/fhir-dosage-utils/docs/specs/dayOfWeek/single_item"}},f={},m=[];function g(e){return(0,i.jsxs)(r.A,{children:[(0,i.jsx)(o.A,{value:"text",label:"Human readable text",default:!0,children:(0,i.jsx)(c.A,{dosage:l})}),(0,i.jsx)(o.A,{value:"json",label:"Dosage",children:(0,i.jsx)(a.default,{language:"json",children:JSON.stringify(l,null,2)})})]})}function h(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(g,{...e})}):g()}},816:(e,t,s)=>{s.d(t,{A:()=>r});var i=s(6540),n=s(6300),a=s(1812),l=s(4848);function r(e){let{dosage:t,config:s,i18nConfig:r}=e;const[o,c]=(0,i.useState)(""),[u,d]=(0,i.useState)(s?.language||"en"),[p,f]=(0,i.useState)(null);(0,i.useEffect)((()=>{!async function(){const e=await n.A.build(s,r);f(e)}()}),[s]),(0,i.useEffect)((()=>{!async function(){if(p){const e=p.fromDosageToText(t);c(e)}}()}),[t,p]);return(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{style:{display:"flex"},children:[(0,l.jsxs)("select",{value:u,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,l.jsx)("option",{value:"en",children:"English"}),(0,l.jsx)("option",{value:"fr",children:"French"}),(0,l.jsx)("option",{value:"nl",children:"Dutch"}),(0,l.jsx)("option",{value:"de",children:"German"})]}),(0,l.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(u);const e=p.fromDosageToText(t);c(e)}},children:"Confirm"})]}),(0,l.jsx)("div",{style:{marginTop:"10px"},children:(0,l.jsx)(a.default,{language:"markup",children:(m=o,m.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var m}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[1659],{2584:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>f,contentTitle:()=>d,default:()=>h,frontMatter:()=>u,metadata:()=>p,toc:()=>m});var i=s(4848),a=s(8453),n=s(1812);const l=JSON.parse('{"timing":{"repeat":{"dayOfWeek":["mon","fri"]}}}');var r=s(4865),o=s(9365),c=s(816);const u={description:"Multiple items",title:"\ud83d\udcc5 Multiple items"},d=void 0,p={id:"specs/dayOfWeek/multiple_items",title:"\ud83d\udcc5 Multiple items",description:"Multiple items",source:"@site/docs/specs/dayOfWeek/multiple_items.mdx",sourceDirName:"specs/dayOfWeek",slug:"/specs/dayOfWeek/multiple_items",permalink:"/fhir-dosage-utils/docs/specs/dayOfWeek/multiple_items",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/dayOfWeek/multiple_items.mdx",tags:[],version:"current",frontMatter:{description:"Multiple items",title:"\ud83d\udcc5 Multiple items"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udcc5 dayOfWeek",permalink:"/fhir-dosage-utils/docs/category/-dayofweek"},next:{title:"\ud83d\udcc5 Single item",permalink:"/fhir-dosage-utils/docs/specs/dayOfWeek/single_item"}},f={},m=[];function g(e){return(0,i.jsxs)(r.A,{children:[(0,i.jsx)(o.A,{value:"text",label:"Human readable text",default:!0,children:(0,i.jsx)(c.A,{dosage:l})}),(0,i.jsx)(o.A,{value:"json",label:"Dosage",children:(0,i.jsx)(n.default,{language:"json",children:JSON.stringify(l,null,2)})})]})}function h(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(g,{...e})}):g()}},816:(e,t,s)=>{s.d(t,{A:()=>r});var i=s(6540),a=s(6300),n=s(1812),l=s(4848);function r(e){let{dosage:t,config:s,i18nConfig:r}=e;const[o,c]=(0,i.useState)(""),[u,d]=(0,i.useState)(s?.language||"en"),[p,f]=(0,i.useState)(null);(0,i.useEffect)((()=>{!async function(){const e=await a.A.build(s,r);f(e)}()}),[s]),(0,i.useEffect)((()=>{!async function(){if(p){const e=p.fromDosageToText(t);c(e)}}()}),[t,p]);return(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{style:{display:"flex"},children:[(0,l.jsxs)("select",{value:u,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,l.jsx)("option",{value:"en",children:"English"}),(0,l.jsx)("option",{value:"fr",children:"French"}),(0,l.jsx)("option",{value:"nl",children:"Dutch"}),(0,l.jsx)("option",{value:"de",children:"German"})]}),(0,l.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(u);const e=p.fromDosageToText(t);c(e)}},children:"Confirm"})]}),(0,l.jsx)("div",{style:{marginTop:"10px"},children:(0,l.jsx)(n.default,{language:"markup",children:(m=o,m.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var m}}}]); \ No newline at end of file diff --git a/assets/js/4cbe19c8.aa704a26.js b/assets/js/4cbe19c8.8af0ac94.js similarity index 92% rename from assets/js/4cbe19c8.aa704a26.js rename to assets/js/4cbe19c8.8af0ac94.js index e8490722..e7cb8e1d 100644 --- a/assets/js/4cbe19c8.aa704a26.js +++ b/assets/js/4cbe19c8.8af0ac94.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[9832],{5311:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>f,contentTitle:()=>d,default:()=>x,frontMatter:()=>l,metadata:()=>p,toc:()=>g});var n=s(4848),i=s(8453),u=s(1812);const a=JSON.parse('[{"text":"Instructions 1"},{"text":"Instructions 2"}]');var c=s(4865),r=s(9365),o=s(8264);const l={description:"Sequential instructions, without sequence",title:"\u27a1\ufe0f sequence (Sequential instructions 2)"},d=void 0,p={id:"specs/sequence/sequential_instructions_2",title:"\u27a1\ufe0f sequence (Sequential instructions 2)",description:"Sequential instructions, without sequence",source:"@site/docs/specs/sequence/sequential_instructions_2.mdx",sourceDirName:"specs/sequence",slug:"/specs/sequence/sequential_instructions_2",permalink:"/fhir-dosage-utils/docs/specs/sequence/sequential_instructions_2",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/sequence/sequential_instructions_2.mdx",tags:[],version:"current",frontMatter:{description:"Sequential instructions, without sequence",title:"\u27a1\ufe0f sequence (Sequential instructions 2)"},sidebar:"tutorialSidebar",previous:{title:"\u27a1\ufe0f sequence (Sequential instructions 1)",permalink:"/fhir-dosage-utils/docs/specs/sequence/sequential_instructions_1"},next:{title:"\ud83d\udccd site",permalink:"/fhir-dosage-utils/docs/category/-site"}},f={},g=[];function h(e){return(0,n.jsxs)(c.A,{children:[(0,n.jsx)(r.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(o.A,{dosages:a,config:{displayOrder:["text"]}})}),(0,n.jsx)(r.A,{value:"json",label:"Dosage",children:(0,n.jsx)(u.default,{language:"json",children:JSON.stringify(a,null,2)})})]})}function x(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(h,{...e})}):h()}},8264:(e,t,s)=>{s.d(t,{A:()=>c});var n=s(6540),i=s(6300),u=s(1812),a=s(4848);function c(e){let{dosages:t,config:s,i18nConfig:c}=e;const[r,o]=(0,n.useState)(""),[l,d]=(0,n.useState)(s?.language||"en"),[p,f]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await i.A.build(s,c);f(e)}()}),[s]),(0,n.useEffect)((()=>{!async function(){if(p){const e=p.fromMultipleDosageToText(t);o(e)}}()}),[t,p]);return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{style:{display:"flex"},children:[(0,a.jsxs)("select",{value:l,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,a.jsx)("option",{value:"en",children:"English"}),(0,a.jsx)("option",{value:"fr",children:"French"}),(0,a.jsx)("option",{value:"nl",children:"Dutch"}),(0,a.jsx)("option",{value:"de",children:"German"})]}),(0,a.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(l);const e=p.fromMultipleDosageToText(t);o(e)}},children:"Confirm"})]}),(0,a.jsx)("div",{style:{marginTop:"10px"},children:(0,a.jsx)(u.default,{language:"markup",children:(g=r,g.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[9832],{5311:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>f,contentTitle:()=>d,default:()=>x,frontMatter:()=>l,metadata:()=>p,toc:()=>g});var n=s(4848),i=s(8453),u=s(1812);const a=JSON.parse('[{"text":"Instructions 1"},{"text":"Instructions 2"}]');var c=s(4865),r=s(9365),o=s(8264);const l={description:"Sequential instructions, without sequence",title:"\u27a1\ufe0f sequence (Sequential instructions 2)"},d=void 0,p={id:"specs/sequence/sequential_instructions_2",title:"\u27a1\ufe0f sequence (Sequential instructions 2)",description:"Sequential instructions, without sequence",source:"@site/docs/specs/sequence/sequential_instructions_2.mdx",sourceDirName:"specs/sequence",slug:"/specs/sequence/sequential_instructions_2",permalink:"/fhir-dosage-utils/docs/specs/sequence/sequential_instructions_2",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/sequence/sequential_instructions_2.mdx",tags:[],version:"current",frontMatter:{description:"Sequential instructions, without sequence",title:"\u27a1\ufe0f sequence (Sequential instructions 2)"},sidebar:"tutorialSidebar",previous:{title:"\u27a1\ufe0f sequence (Sequential instructions 1)",permalink:"/fhir-dosage-utils/docs/specs/sequence/sequential_instructions_1"},next:{title:"\ud83d\udccd site",permalink:"/fhir-dosage-utils/docs/category/-site"}},f={},g=[];function h(e){return(0,n.jsxs)(c.A,{children:[(0,n.jsx)(r.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(o.A,{dosages:a,config:{displayOrder:["text"]}})}),(0,n.jsx)(r.A,{value:"json",label:"Dosage",children:(0,n.jsx)(u.default,{language:"json",children:JSON.stringify(a,null,2)})})]})}function x(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(h,{...e})}):h()}},8264:(e,t,s)=>{s.d(t,{A:()=>c});var n=s(6540),i=s(6300),u=s(1812),a=s(4848);function c(e){let{dosages:t,config:s,i18nConfig:c}=e;const[r,o]=(0,n.useState)(""),[l,d]=(0,n.useState)(s?.language||"en"),[p,f]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await i.A.build(s,c);f(e)}()}),[s]),(0,n.useEffect)((()=>{!async function(){if(p){const e=p.fromMultipleDosageToText(t);o(e)}}()}),[t,p]);return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{style:{display:"flex"},children:[(0,a.jsxs)("select",{value:l,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,a.jsx)("option",{value:"en",children:"English"}),(0,a.jsx)("option",{value:"fr",children:"French"}),(0,a.jsx)("option",{value:"nl",children:"Dutch"}),(0,a.jsx)("option",{value:"de",children:"German"})]}),(0,a.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(l);const e=p.fromMultipleDosageToText(t);o(e)}},children:"Confirm"})]}),(0,a.jsx)("div",{style:{marginTop:"10px"},children:(0,a.jsx)(u.default,{language:"markup",children:(g=r,g.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}}}]); \ No newline at end of file diff --git a/assets/js/4e847481.ac176639.js b/assets/js/4e847481.969c2240.js similarity index 83% rename from assets/js/4e847481.ac176639.js rename to assets/js/4e847481.969c2240.js index a9cb1689..68f867e2 100644 --- a/assets/js/4e847481.ac176639.js +++ b/assets/js/4e847481.969c2240.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[9646],{3123:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>u,default:()=>x,frontMatter:()=>l,metadata:()=>m,toc:()=>h});var s=n(4848),i=n(8453),o=n(1812);const r=JSON.parse('[{"sequence":1,"text":"1 tablet every four hours as needed for pain","additionalInstruction":[{"coding":[{"system":"http://snomed.info/sct","code":"418914006","display":"Warning. May cause drowsiness. If affected do not drive or operate machinery. Avoid alcoholic drink (qualifier value)"}]}],"timing":{"repeat":{"frequency":1,"period":4,"periodUnit":"h"}},"asNeededFor":[{"coding":[{"system":"http://snomed.info/sct","code":"203082005","display":"Fibromyalgia (disorder)"}]}],"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral Route"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":1,"unit":"TAB","system":"http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm","code":"TAB"}}]}]');var d=n(4865),a=n(9365),c=n(8264);const l={description:"Order with as needed (PRN) dosage - Percocet - completed with link to encounter, dispenseRequest and substitution",title:"medrx0307"},u=void 0,m={id:"examples/medicationrequest/medrx0307",title:"medrx0307",description:"Order with as needed (PRN) dosage - Percocet - completed with link to encounter, dispenseRequest and substitution",source:"@site/docs/examples/medicationrequest/medrx0307.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx0307",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0307",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx0307.mdx",tags:[],version:"current",frontMatter:{description:"Order with as needed (PRN) dosage - Percocet - completed with link to encounter, dispenseRequest and substitution",title:"medrx0307"},sidebar:"tutorialSidebar",previous:{title:"medrx0305",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0305"},next:{title:"medrx0308",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0308"}},p={},h=[];function g(e){const t={a:"a",admonition:"admonition",p:"p",...(0,i.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.admonition,{type:"info",children:(0,s.jsxs)(t.p,{children:["Source: ",(0,s.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequest0307.html",children:"HL7"}),' - "Order with as needed (PRN) dosage - Percocet - completed with link to encounter, dispenseRequest and substitution"']})}),"\n",(0,s.jsxs)(d.A,{children:[(0,s.jsx)(a.A,{value:"text",label:"Human readable text",default:!0,children:(0,s.jsx)(c.A,{dosages:r,config:{}})}),(0,s.jsx)(a.A,{value:"json",label:"Dosage",children:(0,s.jsx)(o.default,{language:"json",children:JSON.stringify(r,null,2)})})]})]})}function x(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(g,{...e})}):g(e)}},8264:(e,t,n)=>{n.d(t,{A:()=>d});var s=n(6540),i=n(6300),o=n(1812),r=n(4848);function d(e){let{dosages:t,config:n,i18nConfig:d}=e;const[a,c]=(0,s.useState)(""),[l,u]=(0,s.useState)(n?.language||"en"),[m,p]=(0,s.useState)(null);(0,s.useEffect)((()=>{!async function(){const e=await i.A.build(n,d);p(e)}()}),[n]),(0,s.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);c(e)}}()}),[t,m]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:l,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(l);const e=m.fromMultipleDosageToText(t);c(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(o.default,{language:"markup",children:(h=a,h.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var h}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[9646],{3123:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>u,default:()=>x,frontMatter:()=>l,metadata:()=>m,toc:()=>h});var s=n(4848),i=n(8453),o=n(1812);const r=JSON.parse('[{"sequence":1,"text":"1 tablet every four hours as needed for pain","additionalInstruction":[{"coding":[{"system":"http://snomed.info/sct","code":"418914006","display":"Warning. May cause drowsiness. If affected do not drive or operate machinery. Avoid alcoholic drink (qualifier value)"}]}],"timing":{"repeat":{"frequency":1,"period":4,"periodUnit":"h"}},"asNeededFor":[{"coding":[{"system":"http://snomed.info/sct","code":"203082005","display":"Fibromyalgia (disorder)"}]}],"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral Route"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":1,"unit":"TAB","system":"http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm","code":"TAB"}}]}]');var a=n(4865),d=n(9365),c=n(8264);const l={description:"Order with as needed (PRN) dosage - Percocet - completed with link to encounter, dispenseRequest and substitution",title:"medrx0307"},u=void 0,m={id:"examples/medicationrequest/medrx0307",title:"medrx0307",description:"Order with as needed (PRN) dosage - Percocet - completed with link to encounter, dispenseRequest and substitution",source:"@site/docs/examples/medicationrequest/medrx0307.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx0307",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0307",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx0307.mdx",tags:[],version:"current",frontMatter:{description:"Order with as needed (PRN) dosage - Percocet - completed with link to encounter, dispenseRequest and substitution",title:"medrx0307"},sidebar:"tutorialSidebar",previous:{title:"medrx0305",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0305"},next:{title:"medrx0308",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0308"}},p={},h=[];function g(e){const t={a:"a",admonition:"admonition",p:"p",...(0,i.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.admonition,{type:"info",children:(0,s.jsxs)(t.p,{children:["Source: ",(0,s.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequest0307.html",children:"HL7"}),' - "Order with as needed (PRN) dosage - Percocet - completed with link to encounter, dispenseRequest and substitution"']})}),"\n",(0,s.jsxs)(a.A,{children:[(0,s.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,s.jsx)(c.A,{dosages:r,config:{}})}),(0,s.jsx)(d.A,{value:"json",label:"Dosage",children:(0,s.jsx)(o.default,{language:"json",children:JSON.stringify(r,null,2)})})]})]})}function x(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(g,{...e})}):g(e)}},8264:(e,t,n)=>{n.d(t,{A:()=>a});var s=n(6540),i=n(6300),o=n(1812),r=n(4848);function a(e){let{dosages:t,config:n,i18nConfig:a}=e;const[d,c]=(0,s.useState)(""),[l,u]=(0,s.useState)(n?.language||"en"),[m,p]=(0,s.useState)(null);(0,s.useEffect)((()=>{!async function(){const e=await i.A.build(n,a);p(e)}()}),[n]),(0,s.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);c(e)}}()}),[t,m]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:l,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(l);const e=m.fromMultipleDosageToText(t);c(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(o.default,{language:"markup",children:(h=d,h.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var h}}}]); \ No newline at end of file diff --git a/assets/js/4eb59f15.3a9d224f.js b/assets/js/4eb59f15.df15d408.js similarity index 63% rename from assets/js/4eb59f15.3a9d224f.js rename to assets/js/4eb59f15.df15d408.js index e119da8c..d03ef434 100644 --- a/assets/js/4eb59f15.3a9d224f.js +++ b/assets/js/4eb59f15.df15d408.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[9218],{4353:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>f,contentTitle:()=>u,default:()=>x,frontMatter:()=>c,metadata:()=>m,toc:()=>p});var n=s(4848),a=s(8453),r=s(1812);const i=JSON.parse('[{"sequence":1,"text":"7mg once daily","timing":{"repeat":{"frequency":1,"period":1,"periodUnit":"d"}},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":7,"unit":"mg","system":"http://unitsofmeasure.org","code":"mg"}}]}]');var o=s(4865),d=s(9365),l=s(8264);const c={description:"Request for a Dosage that needs to be dispensed as different strength tablets - Warfarin - active",title:"medrx0331"},u=void 0,m={id:"examples/medicationrequest/medrx0331",title:"medrx0331",description:"Request for a Dosage that needs to be dispensed as different strength tablets - Warfarin - active",source:"@site/docs/examples/medicationrequest/medrx0331.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx0331",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0331",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx0331.mdx",tags:[],version:"current",frontMatter:{description:"Request for a Dosage that needs to be dispensed as different strength tablets - Warfarin - active",title:"medrx0331"},sidebar:"tutorialSidebar",previous:{title:"medrx0321",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0321"},next:{title:"medrx0339",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0339"}},f={},p=[];function g(e){const t={a:"a",admonition:"admonition",p:"p",...(0,a.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.admonition,{type:"info",children:(0,n.jsxs)(t.p,{children:["Source: ",(0,n.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequest0331.html",children:"HL7"}),' - "Request for a Dosage that needs to be dispensed as different strength tablets - Warfarin - active"']})}),"\n",(0,n.jsxs)(o.A,{children:[(0,n.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(l.A,{dosages:i,config:{}})}),(0,n.jsx)(d.A,{value:"json",label:"Dosage",children:(0,n.jsx)(r.default,{language:"json",children:JSON.stringify(i,null,2)})})]})]})}function x(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(g,{...e})}):g(e)}},8264:(e,t,s)=>{s.d(t,{A:()=>o});var n=s(6540),a=s(6300),r=s(1812),i=s(4848);function o(e){let{dosages:t,config:s,i18nConfig:o}=e;const[d,l]=(0,n.useState)(""),[c,u]=(0,n.useState)(s?.language||"en"),[m,f]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await a.A.build(s,o);f(e)}()}),[s]),(0,n.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);l(e)}}()}),[t,m]);return(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{style:{display:"flex"},children:[(0,i.jsxs)("select",{value:c,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,i.jsx)("option",{value:"en",children:"English"}),(0,i.jsx)("option",{value:"fr",children:"French"}),(0,i.jsx)("option",{value:"nl",children:"Dutch"}),(0,i.jsx)("option",{value:"de",children:"German"})]}),(0,i.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(c);const e=m.fromMultipleDosageToText(t);l(e)}},children:"Confirm"})]}),(0,i.jsx)("div",{style:{marginTop:"10px"},children:(0,i.jsx)(r.default,{language:"markup",children:(p=d,p.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var p}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[9218],{4353:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>p,contentTitle:()=>u,default:()=>x,frontMatter:()=>c,metadata:()=>m,toc:()=>f});var a=s(4848),n=s(8453),r=s(1812);const i=JSON.parse('[{"sequence":1,"text":"7mg once daily","timing":{"repeat":{"frequency":1,"period":1,"periodUnit":"d"}},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":7,"unit":"mg","system":"http://unitsofmeasure.org","code":"mg"}}]}]');var o=s(4865),d=s(9365),l=s(8264);const c={description:"Request for a Dosage that needs to be dispensed as different strength tablets - Warfarin - active",title:"medrx0331"},u=void 0,m={id:"examples/medicationrequest/medrx0331",title:"medrx0331",description:"Request for a Dosage that needs to be dispensed as different strength tablets - Warfarin - active",source:"@site/docs/examples/medicationrequest/medrx0331.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx0331",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0331",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx0331.mdx",tags:[],version:"current",frontMatter:{description:"Request for a Dosage that needs to be dispensed as different strength tablets - Warfarin - active",title:"medrx0331"},sidebar:"tutorialSidebar",previous:{title:"medrx0321",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0321"},next:{title:"medrx0339",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0339"}},p={},f=[];function g(e){const t={a:"a",admonition:"admonition",p:"p",...(0,n.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.admonition,{type:"info",children:(0,a.jsxs)(t.p,{children:["Source: ",(0,a.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequest0331.html",children:"HL7"}),' - "Request for a Dosage that needs to be dispensed as different strength tablets - Warfarin - active"']})}),"\n",(0,a.jsxs)(o.A,{children:[(0,a.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,a.jsx)(l.A,{dosages:i,config:{}})}),(0,a.jsx)(d.A,{value:"json",label:"Dosage",children:(0,a.jsx)(r.default,{language:"json",children:JSON.stringify(i,null,2)})})]})]})}function x(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(g,{...e})}):g(e)}},8264:(e,t,s)=>{s.d(t,{A:()=>o});var a=s(6540),n=s(6300),r=s(1812),i=s(4848);function o(e){let{dosages:t,config:s,i18nConfig:o}=e;const[d,l]=(0,a.useState)(""),[c,u]=(0,a.useState)(s?.language||"en"),[m,p]=(0,a.useState)(null);(0,a.useEffect)((()=>{!async function(){const e=await n.A.build(s,o);p(e)}()}),[s]),(0,a.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);l(e)}}()}),[t,m]);return(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{style:{display:"flex"},children:[(0,i.jsxs)("select",{value:c,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,i.jsx)("option",{value:"en",children:"English"}),(0,i.jsx)("option",{value:"fr",children:"French"}),(0,i.jsx)("option",{value:"nl",children:"Dutch"}),(0,i.jsx)("option",{value:"de",children:"German"})]}),(0,i.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(c);const e=m.fromMultipleDosageToText(t);l(e)}},children:"Confirm"})]}),(0,i.jsx)("div",{style:{marginTop:"10px"},children:(0,i.jsx)(r.default,{language:"markup",children:(f=d,f.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var f}}}]); \ No newline at end of file diff --git a/assets/js/4faaf014.011e8c65.js b/assets/js/4faaf014.3cbd4c01.js similarity index 96% rename from assets/js/4faaf014.011e8c65.js rename to assets/js/4faaf014.3cbd4c01.js index d8980caf..5fce3903 100644 --- a/assets/js/4faaf014.011e8c65.js +++ b/assets/js/4faaf014.3cbd4c01.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[6734],{8659:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>u,default:()=>f,frontMatter:()=>c,metadata:()=>m,toc:()=>h});var o=n(4848),i=n(8453),s=n(1812);const r=JSON.parse('[{"sequence":1,"text":"Two tablets at once","additionalInstruction":[{"coding":[{"system":"http://snomed.info/sct","code":"311504000","display":"With or after food"}]}],"timing":{"repeat":{"frequency":1,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral Route"}]},"method":{"coding":[{"system":"http://snomed.info/sct","code":"421521009","display":"Swallow - dosing instruction imperative (qualifier value)"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":2,"unit":"TAB","system":"http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm","code":"TAB"}}]},{"sequence":2,"text":"One tablet daily for 4 days","additionalInstruction":[{"coding":[{"system":"http://snomed.info/sct","code":"311504000","display":"With or after food"}]}],"timing":{"repeat":{"boundsDuration":{"value":4,"unit":"days","system":"http://unitsofmeasure.org","code":"d"},"frequency":1,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral Route"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":1,"unit":"TAB","system":"http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm","code":"TAB"}}]}]');var d=n(4865),a=n(9365),l=n(8264);const c={description:"Active Order with link to encounter, reasonCode, note multiple dosage lines, dispenseRequest and substitution - Azithromycin",title:"medrx0302"},u=void 0,m={id:"examples/medicationrequest/medrx0302",title:"medrx0302",description:"Active Order with link to encounter, reasonCode, note multiple dosage lines, dispenseRequest and substitution - Azithromycin",source:"@site/docs/examples/medicationrequest/medrx0302.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx0302",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0302",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx0302.mdx",tags:[],version:"current",frontMatter:{description:"Active Order with link to encounter, reasonCode, note multiple dosage lines, dispenseRequest and substitution - Azithromycin",title:"medrx0302"},sidebar:"tutorialSidebar",previous:{title:"medrx0301",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0301"},next:{title:"medrx0303",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0303"}},p={},h=[];function g(e){const t={a:"a",admonition:"admonition",p:"p",...(0,i.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.admonition,{type:"info",children:(0,o.jsxs)(t.p,{children:["Source: ",(0,o.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequest0302.html",children:"HL7"}),' - "Active Order with link to encounter, reasonCode, note multiple dosage lines, dispenseRequest and substitution - Azithromycin"']})}),"\n",(0,o.jsxs)(d.A,{children:[(0,o.jsx)(a.A,{value:"text",label:"Human readable text",default:!0,children:(0,o.jsx)(l.A,{dosages:r,config:{}})}),(0,o.jsx)(a.A,{value:"json",label:"Dosage",children:(0,o.jsx)(s.default,{language:"json",children:JSON.stringify(r,null,2)})})]})]})}function f(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(g,{...e})}):g(e)}},8264:(e,t,n)=>{n.d(t,{A:()=>d});var o=n(6540),i=n(6300),s=n(1812),r=n(4848);function d(e){let{dosages:t,config:n,i18nConfig:d}=e;const[a,l]=(0,o.useState)(""),[c,u]=(0,o.useState)(n?.language||"en"),[m,p]=(0,o.useState)(null);(0,o.useEffect)((()=>{!async function(){const e=await i.A.build(n,d);p(e)}()}),[n]),(0,o.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);l(e)}}()}),[t,m]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:c,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(c);const e=m.fromMultipleDosageToText(t);l(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(s.default,{language:"markup",children:(h=a,h.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var h}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[6734],{8659:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>u,default:()=>f,frontMatter:()=>c,metadata:()=>m,toc:()=>h});var o=n(4848),i=n(8453),s=n(1812);const r=JSON.parse('[{"sequence":1,"text":"Two tablets at once","additionalInstruction":[{"coding":[{"system":"http://snomed.info/sct","code":"311504000","display":"With or after food"}]}],"timing":{"repeat":{"frequency":1,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral Route"}]},"method":{"coding":[{"system":"http://snomed.info/sct","code":"421521009","display":"Swallow - dosing instruction imperative (qualifier value)"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":2,"unit":"TAB","system":"http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm","code":"TAB"}}]},{"sequence":2,"text":"One tablet daily for 4 days","additionalInstruction":[{"coding":[{"system":"http://snomed.info/sct","code":"311504000","display":"With or after food"}]}],"timing":{"repeat":{"boundsDuration":{"value":4,"unit":"days","system":"http://unitsofmeasure.org","code":"d"},"frequency":1,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral Route"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":1,"unit":"TAB","system":"http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm","code":"TAB"}}]}]');var d=n(4865),a=n(9365),l=n(8264);const c={description:"Active Order with link to encounter, reasonCode, note multiple dosage lines, dispenseRequest and substitution - Azithromycin",title:"medrx0302"},u=void 0,m={id:"examples/medicationrequest/medrx0302",title:"medrx0302",description:"Active Order with link to encounter, reasonCode, note multiple dosage lines, dispenseRequest and substitution - Azithromycin",source:"@site/docs/examples/medicationrequest/medrx0302.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx0302",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0302",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx0302.mdx",tags:[],version:"current",frontMatter:{description:"Active Order with link to encounter, reasonCode, note multiple dosage lines, dispenseRequest and substitution - Azithromycin",title:"medrx0302"},sidebar:"tutorialSidebar",previous:{title:"medrx0301",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0301"},next:{title:"medrx0303",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0303"}},p={},h=[];function g(e){const t={a:"a",admonition:"admonition",p:"p",...(0,i.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(t.admonition,{type:"info",children:(0,o.jsxs)(t.p,{children:["Source: ",(0,o.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequest0302.html",children:"HL7"}),' - "Active Order with link to encounter, reasonCode, note multiple dosage lines, dispenseRequest and substitution - Azithromycin"']})}),"\n",(0,o.jsxs)(d.A,{children:[(0,o.jsx)(a.A,{value:"text",label:"Human readable text",default:!0,children:(0,o.jsx)(l.A,{dosages:r,config:{}})}),(0,o.jsx)(a.A,{value:"json",label:"Dosage",children:(0,o.jsx)(s.default,{language:"json",children:JSON.stringify(r,null,2)})})]})]})}function f(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(g,{...e})}):g(e)}},8264:(e,t,n)=>{n.d(t,{A:()=>d});var o=n(6540),i=n(6300),s=n(1812),r=n(4848);function d(e){let{dosages:t,config:n,i18nConfig:d}=e;const[a,l]=(0,o.useState)(""),[c,u]=(0,o.useState)(n?.language||"en"),[m,p]=(0,o.useState)(null);(0,o.useEffect)((()=>{!async function(){const e=await i.A.build(n,d);p(e)}()}),[n]),(0,o.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);l(e)}}()}),[t,m]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:c,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(c);const e=m.fromMultipleDosageToText(t);l(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(s.default,{language:"markup",children:(h=a,h.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var h}}}]); \ No newline at end of file diff --git a/assets/js/533a8e17.5d934a5f.js b/assets/js/533a8e17.33dcc0e5.js similarity index 90% rename from assets/js/533a8e17.5d934a5f.js rename to assets/js/533a8e17.33dcc0e5.js index 3bbdfea0..092354da 100644 --- a/assets/js/533a8e17.5d934a5f.js +++ b/assets/js/533a8e17.33dcc0e5.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[1290],{1193:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>f,contentTitle:()=>u,default:()=>h,frontMatter:()=>l,metadata:()=>g,toc:()=>p});var o=n(4848),r=n(8453),i=n(1812),a=n(5286),s=n(4865),c=n(9365),d=n(816);const l={description:'Function to turn a codeable concept (e.g SNOMED CT "311504000") into a string for humans (e.g "With or after food")',title:"\ud83d\udcbb fromCodeableConceptToString"},u=void 0,g={id:"custom/fromCodeableConceptToString",title:"\ud83d\udcbb fromCodeableConceptToString",description:'Function to turn a codeable concept (e.g SNOMED CT "311504000") into a string for humans (e.g "With or after food")',source:"@site/docs/custom/fromCodeableConceptToString.mdx",sourceDirName:"custom",slug:"/custom/fromCodeableConceptToString",permalink:"/fhir-dosage-utils/docs/custom/fromCodeableConceptToString",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/custom/fromCodeableConceptToString.mdx",tags:[],version:"current",frontMatter:{description:'Function to turn a codeable concept (e.g SNOMED CT "311504000") into a string for humans (e.g "With or after food")',title:"\ud83d\udcbb fromCodeableConceptToString"},sidebar:"tutorialSidebar",previous:{title:"\u2796 displaySeparator",permalink:"/fhir-dosage-utils/docs/custom/displaySeparator"},next:{title:"\ud83d\udd0c fromExtensionsToString",permalink:"/fhir-dosage-utils/docs/custom/fromExtensionsToString"}},f={},p=[];function m(e){const t={code:"code",pre:"pre",...(0,r.R)(),...e.components};return(0,o.jsxs)(s.A,{children:[(0,o.jsx)(c.A,{value:"text",label:"Human readable text",default:!0,children:(0,o.jsx)(d.A,{dosage:a,config:{fromCodeableConceptToString:({language:e,code:t})=>{if(void 0===t)return;if(void 0===t.coding||0===t.coding.length)return t.text;let n=t.coding[0];return`${e} translation of ${n.code} (${n.system})`}}})}),(0,o.jsx)(c.A,{value:"json",label:"Dosage",children:(0,o.jsx)(i.default,{language:"json",children:JSON.stringify(a,null,2)})}),(0,o.jsx)(c.A,{value:"config",label:"Configuration",children:(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{className:"language-js",children:"{\n fromCodeableConceptToString: ({ language, code }) => {\n // If no code, skip it\n if (code === undefined) {\n return undefined;\n }\n // If empty code, return text or undefined\n if (code.coding === undefined || code.coding.length === 0) {\n return code.text;\n }\n\n // Do the magic here ;)\n let firstCode = code.coding[0];\n return `${language} translation of ${firstCode.code} (${firstCode.system})`;\n };\n}\n"})})})]})}function h(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(m,{...e})}):m(e)}},816:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(6540),r=n(6300),i=n(1812),a=n(4848);function s(e){let{dosage:t,config:n,i18nConfig:s}=e;const[c,d]=(0,o.useState)(""),[l,u]=(0,o.useState)(n?.language||"en"),[g,f]=(0,o.useState)(null);(0,o.useEffect)((()=>{!async function(){const e=await r.A.build(n,s);f(e)}()}),[n]),(0,o.useEffect)((()=>{!async function(){if(g){const e=g.fromDosageToText(t);d(e)}}()}),[t,g]);return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{style:{display:"flex"},children:[(0,a.jsxs)("select",{value:l,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,a.jsx)("option",{value:"en",children:"English"}),(0,a.jsx)("option",{value:"fr",children:"French"}),(0,a.jsx)("option",{value:"nl",children:"Dutch"}),(0,a.jsx)("option",{value:"de",children:"German"})]}),(0,a.jsx)("button",{onClick:async()=>{if(g){await g.changeLanguage(l);const e=g.fromDosageToText(t);d(e)}},children:"Confirm"})]}),(0,a.jsx)("div",{style:{marginTop:"10px"},children:(0,a.jsx)(i.default,{language:"markup",children:(p=c,p.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var p}},5286:e=>{e.exports=JSON.parse('{"method":{"coding":[{"system":"http://hl7.org/fhir/ValueSet/administration-method-codes","code":"738996007","display":"Spray"}]}}')}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[1290],{1193:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>f,contentTitle:()=>u,default:()=>h,frontMatter:()=>l,metadata:()=>g,toc:()=>p});var o=n(4848),r=n(8453),i=n(1812),a=n(5286),s=n(4865),c=n(9365),d=n(816);const l={description:'Function to turn a codeable concept (e.g SNOMED CT "311504000") into a string for humans (e.g "With or after food")',title:"\ud83d\udcbb fromCodeableConceptToString"},u=void 0,g={id:"custom/fromCodeableConceptToString",title:"\ud83d\udcbb fromCodeableConceptToString",description:'Function to turn a codeable concept (e.g SNOMED CT "311504000") into a string for humans (e.g "With or after food")',source:"@site/docs/custom/fromCodeableConceptToString.mdx",sourceDirName:"custom",slug:"/custom/fromCodeableConceptToString",permalink:"/fhir-dosage-utils/docs/custom/fromCodeableConceptToString",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/custom/fromCodeableConceptToString.mdx",tags:[],version:"current",frontMatter:{description:'Function to turn a codeable concept (e.g SNOMED CT "311504000") into a string for humans (e.g "With or after food")',title:"\ud83d\udcbb fromCodeableConceptToString"},sidebar:"tutorialSidebar",previous:{title:"\u2796 displaySeparator",permalink:"/fhir-dosage-utils/docs/custom/displaySeparator"},next:{title:"\ud83d\udd0c fromExtensionsToString",permalink:"/fhir-dosage-utils/docs/custom/fromExtensionsToString"}},f={},p=[];function m(e){const t={code:"code",pre:"pre",...(0,r.R)(),...e.components};return(0,o.jsxs)(s.A,{children:[(0,o.jsx)(c.A,{value:"text",label:"Human readable text",default:!0,children:(0,o.jsx)(d.A,{dosage:a,config:{fromCodeableConceptToString:({language:e,code:t})=>{if(void 0===t)return;if(void 0===t.coding||0===t.coding.length)return t.text;let n=t.coding[0];return`${e} translation of ${n.code} (${n.system})`}}})}),(0,o.jsx)(c.A,{value:"json",label:"Dosage",children:(0,o.jsx)(i.default,{language:"json",children:JSON.stringify(a,null,2)})}),(0,o.jsx)(c.A,{value:"config",label:"Configuration",children:(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{className:"language-js",children:"{\n fromCodeableConceptToString: ({ language, code }) => {\n // If no code, skip it\n if (code === undefined) {\n return undefined;\n }\n // If empty code, return text or undefined\n if (code.coding === undefined || code.coding.length === 0) {\n return code.text;\n }\n\n // Do the magic here ;)\n let firstCode = code.coding[0];\n return `${language} translation of ${firstCode.code} (${firstCode.system})`;\n };\n}\n"})})})]})}function h(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(m,{...e})}):m(e)}},816:(e,t,n)=>{n.d(t,{A:()=>s});var o=n(6540),r=n(6300),i=n(1812),a=n(4848);function s(e){let{dosage:t,config:n,i18nConfig:s}=e;const[c,d]=(0,o.useState)(""),[l,u]=(0,o.useState)(n?.language||"en"),[g,f]=(0,o.useState)(null);(0,o.useEffect)((()=>{!async function(){const e=await r.A.build(n,s);f(e)}()}),[n]),(0,o.useEffect)((()=>{!async function(){if(g){const e=g.fromDosageToText(t);d(e)}}()}),[t,g]);return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{style:{display:"flex"},children:[(0,a.jsxs)("select",{value:l,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,a.jsx)("option",{value:"en",children:"English"}),(0,a.jsx)("option",{value:"fr",children:"French"}),(0,a.jsx)("option",{value:"nl",children:"Dutch"}),(0,a.jsx)("option",{value:"de",children:"German"})]}),(0,a.jsx)("button",{onClick:async()=>{if(g){await g.changeLanguage(l);const e=g.fromDosageToText(t);d(e)}},children:"Confirm"})]}),(0,a.jsx)("div",{style:{marginTop:"10px"},children:(0,a.jsx)(i.default,{language:"markup",children:(p=c,p.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var p}},5286:e=>{e.exports=JSON.parse('{"method":{"coding":[{"system":"http://hl7.org/fhir/ValueSet/administration-method-codes","code":"738996007","display":"Spray"}]}}')}}]); \ No newline at end of file diff --git a/assets/js/55373fd9.1a968f99.js b/assets/js/55373fd9.0cc2202b.js similarity index 62% rename from assets/js/55373fd9.1a968f99.js rename to assets/js/55373fd9.0cc2202b.js index 02931c64..2d883622 100644 --- a/assets/js/55373fd9.1a968f99.js +++ b/assets/js/55373fd9.0cc2202b.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[5461],{542:(e,s,a)=>{a.r(s),a.d(s,{assets:()=>f,contentTitle:()=>u,default:()=>x,frontMatter:()=>c,metadata:()=>p,toc:()=>g});var n=a(4848),t=a(8453),d=a(1812);const o=JSON.parse('{"asNeededBoolean":true}');var r=a(4865),l=a(9365),i=a(816);const c={description:"asNeededBoolean",title:"\u2705 asNeededBoolean"},u=void 0,p={id:"specs/asNeeded/asNeededBoolean",title:"\u2705 asNeededBoolean",description:"asNeededBoolean",source:"@site/docs/specs/asNeeded/asNeededBoolean.mdx",sourceDirName:"specs/asNeeded",slug:"/specs/asNeeded/asNeededBoolean",permalink:"/fhir-dosage-utils/docs/specs/asNeeded/asNeededBoolean",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/asNeeded/asNeededBoolean.mdx",tags:[],version:"current",frontMatter:{description:"asNeededBoolean",title:"\u2705 asNeededBoolean"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udccc asNeeded",permalink:"/fhir-dosage-utils/docs/specs/asNeeded/"},next:{title:"\ud83d\udccc asNeededCodeableConcept",permalink:"/fhir-dosage-utils/docs/specs/asNeeded/asNeededCodeableConcept"}},f={},g=[];function h(e){return(0,n.jsxs)(r.A,{children:[(0,n.jsx)(l.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(i.A,{dosage:o})}),(0,n.jsx)(l.A,{value:"json",label:"Dosage",children:(0,n.jsx)(d.default,{language:"json",children:JSON.stringify(o,null,2)})})]})}function x(e={}){const{wrapper:s}={...(0,t.R)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(h,{...e})}):h()}},816:(e,s,a)=>{a.d(s,{A:()=>r});var n=a(6540),t=a(6300),d=a(1812),o=a(4848);function r(e){let{dosage:s,config:a,i18nConfig:r}=e;const[l,i]=(0,n.useState)(""),[c,u]=(0,n.useState)(a?.language||"en"),[p,f]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await t.A.build(a,r);f(e)}()}),[a]),(0,n.useEffect)((()=>{!async function(){if(p){const e=p.fromDosageToText(s);i(e)}}()}),[s,p]);return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{style:{display:"flex"},children:[(0,o.jsxs)("select",{value:c,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,o.jsx)("option",{value:"en",children:"English"}),(0,o.jsx)("option",{value:"fr",children:"French"}),(0,o.jsx)("option",{value:"nl",children:"Dutch"}),(0,o.jsx)("option",{value:"de",children:"German"})]}),(0,o.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(c);const e=p.fromDosageToText(s);i(e)}},children:"Confirm"})]}),(0,o.jsx)("div",{style:{marginTop:"10px"},children:(0,o.jsx)(d.default,{language:"markup",children:(g=l,g.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,s){return String.fromCharCode(s)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,s){return String.fromCharCode(parseInt(s,16))})))})})]});var g}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[5461],{542:(e,a,s)=>{s.r(a),s.d(a,{assets:()=>f,contentTitle:()=>u,default:()=>x,frontMatter:()=>c,metadata:()=>p,toc:()=>g});var n=s(4848),t=s(8453),d=s(1812);const o=JSON.parse('{"asNeededBoolean":true}');var r=s(4865),l=s(9365),i=s(816);const c={description:"asNeededBoolean",title:"\u2705 asNeededBoolean"},u=void 0,p={id:"specs/asNeeded/asNeededBoolean",title:"\u2705 asNeededBoolean",description:"asNeededBoolean",source:"@site/docs/specs/asNeeded/asNeededBoolean.mdx",sourceDirName:"specs/asNeeded",slug:"/specs/asNeeded/asNeededBoolean",permalink:"/fhir-dosage-utils/docs/specs/asNeeded/asNeededBoolean",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/asNeeded/asNeededBoolean.mdx",tags:[],version:"current",frontMatter:{description:"asNeededBoolean",title:"\u2705 asNeededBoolean"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udccc asNeeded",permalink:"/fhir-dosage-utils/docs/specs/asNeeded/"},next:{title:"\ud83d\udccc asNeededCodeableConcept",permalink:"/fhir-dosage-utils/docs/specs/asNeeded/asNeededCodeableConcept"}},f={},g=[];function h(e){return(0,n.jsxs)(r.A,{children:[(0,n.jsx)(l.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(i.A,{dosage:o})}),(0,n.jsx)(l.A,{value:"json",label:"Dosage",children:(0,n.jsx)(d.default,{language:"json",children:JSON.stringify(o,null,2)})})]})}function x(e={}){const{wrapper:a}={...(0,t.R)(),...e.components};return a?(0,n.jsx)(a,{...e,children:(0,n.jsx)(h,{...e})}):h()}},816:(e,a,s)=>{s.d(a,{A:()=>r});var n=s(6540),t=s(6300),d=s(1812),o=s(4848);function r(e){let{dosage:a,config:s,i18nConfig:r}=e;const[l,i]=(0,n.useState)(""),[c,u]=(0,n.useState)(s?.language||"en"),[p,f]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await t.A.build(s,r);f(e)}()}),[s]),(0,n.useEffect)((()=>{!async function(){if(p){const e=p.fromDosageToText(a);i(e)}}()}),[a,p]);return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{style:{display:"flex"},children:[(0,o.jsxs)("select",{value:c,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,o.jsx)("option",{value:"en",children:"English"}),(0,o.jsx)("option",{value:"fr",children:"French"}),(0,o.jsx)("option",{value:"nl",children:"Dutch"}),(0,o.jsx)("option",{value:"de",children:"German"})]}),(0,o.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(c);const e=p.fromDosageToText(a);i(e)}},children:"Confirm"})]}),(0,o.jsx)("div",{style:{marginTop:"10px"},children:(0,o.jsx)(d.default,{language:"markup",children:(g=l,g.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,a){return String.fromCharCode(a)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,a){return String.fromCharCode(parseInt(a,16))})))})})]});var g}}}]); \ No newline at end of file diff --git a/assets/js/5c2c208f.07810b1e.js b/assets/js/5c2c208f.ae2501fe.js similarity index 69% rename from assets/js/5c2c208f.07810b1e.js rename to assets/js/5c2c208f.ae2501fe.js index 2fbd5309..f6342ae3 100644 --- a/assets/js/5c2c208f.07810b1e.js +++ b/assets/js/5c2c208f.ae2501fe.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[3970],{5269:(e,s,a)=>{a.r(s),a.d(s,{assets:()=>g,contentTitle:()=>u,default:()=>x,frontMatter:()=>l,metadata:()=>f,toc:()=>p});var t=a(4848),n=a(8453),d=a(1812);const r={asNeeded:!0};var i=a(4865),o=a(9365),c=a(816);const l={description:"asNeeded",title:"\ud83d\udccc asNeeded"},u=void 0,f={id:"specs/asNeeded/asNeeded",title:"\ud83d\udccc asNeeded",description:"asNeeded",source:"@site/docs/specs/asNeeded/asNeeded.mdx",sourceDirName:"specs/asNeeded",slug:"/specs/asNeeded/",permalink:"/fhir-dosage-utils/docs/specs/asNeeded/",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/asNeeded/asNeeded.mdx",tags:[],version:"current",frontMatter:{description:"asNeeded",title:"\ud83d\udccc asNeeded"},sidebar:"tutorialSidebar",previous:{title:"\u2753 asNeeded",permalink:"/fhir-dosage-utils/docs/category/-asneeded"},next:{title:"\u2705 asNeededBoolean",permalink:"/fhir-dosage-utils/docs/specs/asNeeded/asNeededBoolean"}},g={},p=[];function h(e){return(0,t.jsxs)(i.A,{children:[(0,t.jsx)(o.A,{value:"text",label:"Human readable text",default:!0,children:(0,t.jsx)(c.A,{dosage:r})}),(0,t.jsx)(o.A,{value:"json",label:"Dosage",children:(0,t.jsx)(d.default,{language:"json",children:JSON.stringify(r,null,2)})})]})}function x(e={}){const{wrapper:s}={...(0,n.R)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(h,{...e})}):h()}},816:(e,s,a)=>{a.d(s,{A:()=>i});var t=a(6540),n=a(6300),d=a(1812),r=a(4848);function i(e){let{dosage:s,config:a,i18nConfig:i}=e;const[o,c]=(0,t.useState)(""),[l,u]=(0,t.useState)(a?.language||"en"),[f,g]=(0,t.useState)(null);(0,t.useEffect)((()=>{!async function(){const e=await n.A.build(a,i);g(e)}()}),[a]),(0,t.useEffect)((()=>{!async function(){if(f){const e=f.fromDosageToText(s);c(e)}}()}),[s,f]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:l,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(f){await f.changeLanguage(l);const e=f.fromDosageToText(s);c(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(d.default,{language:"markup",children:(p=o,p.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,s){return String.fromCharCode(s)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,s){return String.fromCharCode(parseInt(s,16))})))})})]});var p}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[3970],{5269:(e,s,a)=>{a.r(s),a.d(s,{assets:()=>f,contentTitle:()=>u,default:()=>x,frontMatter:()=>l,metadata:()=>p,toc:()=>g});var t=a(4848),n=a(8453),d=a(1812);const r={asNeeded:!0};var i=a(4865),o=a(9365),c=a(816);const l={description:"asNeeded",title:"\ud83d\udccc asNeeded"},u=void 0,p={id:"specs/asNeeded/asNeeded",title:"\ud83d\udccc asNeeded",description:"asNeeded",source:"@site/docs/specs/asNeeded/asNeeded.mdx",sourceDirName:"specs/asNeeded",slug:"/specs/asNeeded/",permalink:"/fhir-dosage-utils/docs/specs/asNeeded/",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/asNeeded/asNeeded.mdx",tags:[],version:"current",frontMatter:{description:"asNeeded",title:"\ud83d\udccc asNeeded"},sidebar:"tutorialSidebar",previous:{title:"\u2753 asNeeded",permalink:"/fhir-dosage-utils/docs/category/-asneeded"},next:{title:"\u2705 asNeededBoolean",permalink:"/fhir-dosage-utils/docs/specs/asNeeded/asNeededBoolean"}},f={},g=[];function h(e){return(0,t.jsxs)(i.A,{children:[(0,t.jsx)(o.A,{value:"text",label:"Human readable text",default:!0,children:(0,t.jsx)(c.A,{dosage:r})}),(0,t.jsx)(o.A,{value:"json",label:"Dosage",children:(0,t.jsx)(d.default,{language:"json",children:JSON.stringify(r,null,2)})})]})}function x(e={}){const{wrapper:s}={...(0,n.R)(),...e.components};return s?(0,t.jsx)(s,{...e,children:(0,t.jsx)(h,{...e})}):h()}},816:(e,s,a)=>{a.d(s,{A:()=>i});var t=a(6540),n=a(6300),d=a(1812),r=a(4848);function i(e){let{dosage:s,config:a,i18nConfig:i}=e;const[o,c]=(0,t.useState)(""),[l,u]=(0,t.useState)(a?.language||"en"),[p,f]=(0,t.useState)(null);(0,t.useEffect)((()=>{!async function(){const e=await n.A.build(a,i);f(e)}()}),[a]),(0,t.useEffect)((()=>{!async function(){if(p){const e=p.fromDosageToText(s);c(e)}}()}),[s,p]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:l,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(l);const e=p.fromDosageToText(s);c(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(d.default,{language:"markup",children:(g=o,g.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,s){return String.fromCharCode(s)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,s){return String.fromCharCode(parseInt(s,16))})))})})]});var g}}}]); \ No newline at end of file diff --git a/assets/js/5f46c019.5ee38f4e.js b/assets/js/5f46c019.a9856a08.js similarity index 58% rename from assets/js/5f46c019.5ee38f4e.js rename to assets/js/5f46c019.a9856a08.js index 05c23b55..1d579c8c 100644 --- a/assets/js/5f46c019.5ee38f4e.js +++ b/assets/js/5f46c019.a9856a08.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[9059],{7133:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>f,contentTitle:()=>d,default:()=>x,frontMatter:()=>l,metadata:()=>p,toc:()=>g});var o=n(4848),r=n(8453),s=n(1812);const a=JSON.parse('{"route":{"coding":[{"system":"http://hl7.org/fhir/ValueSet/route-codes","code":"26643006","display":"Oral route"}]}}');var i=n(4865),c=n(9365),u=n(816);const l={description:"route",title:"\ud83d\udee3\ufe0f route"},d=void 0,p={id:"specs/route/route",title:"\ud83d\udee3\ufe0f route",description:"route",source:"@site/docs/specs/route/route.mdx",sourceDirName:"specs/route",slug:"/specs/route/",permalink:"/fhir-dosage-utils/docs/specs/route/",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/route/route.mdx",tags:[],version:"current",frontMatter:{description:"route",title:"\ud83d\udee3\ufe0f route"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udee3\ufe0f route",permalink:"/fhir-dosage-utils/docs/category/\ufe0f-route"},next:{title:"\u27a1\ufe0f sequence",permalink:"/fhir-dosage-utils/docs/category/\ufe0f-sequence"}},f={},g=[];function h(e){const t={a:"a",admonition:"admonition",p:"p",...(0,r.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(i.A,{children:[(0,o.jsx)(c.A,{value:"text",label:"Human readable text",default:!0,children:(0,o.jsx)(u.A,{dosage:a})}),(0,o.jsx)(c.A,{value:"json",label:"Dosage",children:(0,o.jsx)(s.default,{language:"json",children:JSON.stringify(a,null,2)})})]}),"\n",(0,o.jsx)(t.admonition,{type:"tip",children:(0,o.jsxs)(t.p,{children:["Don't forget you can use ",(0,o.jsx)(t.a,{href:"/api/interface/Params",children:"fromCodeableConceptToString"})," option to fit your needs"]})})]})}function x(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(h,{...e})}):h(e)}},816:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(6540),r=n(6300),s=n(1812),a=n(4848);function i(e){let{dosage:t,config:n,i18nConfig:i}=e;const[c,u]=(0,o.useState)(""),[l,d]=(0,o.useState)(n?.language||"en"),[p,f]=(0,o.useState)(null);(0,o.useEffect)((()=>{!async function(){const e=await r.A.build(n,i);f(e)}()}),[n]),(0,o.useEffect)((()=>{!async function(){if(p){const e=p.fromDosageToText(t);u(e)}}()}),[t,p]);return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{style:{display:"flex"},children:[(0,a.jsxs)("select",{value:l,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,a.jsx)("option",{value:"en",children:"English"}),(0,a.jsx)("option",{value:"fr",children:"French"}),(0,a.jsx)("option",{value:"nl",children:"Dutch"}),(0,a.jsx)("option",{value:"de",children:"German"})]}),(0,a.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(l);const e=p.fromDosageToText(t);u(e)}},children:"Confirm"})]}),(0,a.jsx)("div",{style:{marginTop:"10px"},children:(0,a.jsx)(s.default,{language:"markup",children:(g=c,g.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[9059],{7133:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>f,contentTitle:()=>d,default:()=>m,frontMatter:()=>l,metadata:()=>p,toc:()=>g});var r=n(4848),o=n(8453),s=n(1812);const a=JSON.parse('{"route":{"coding":[{"system":"http://hl7.org/fhir/ValueSet/route-codes","code":"26643006","display":"Oral route"}]}}');var i=n(4865),c=n(9365),u=n(816);const l={description:"route",title:"\ud83d\udee3\ufe0f route"},d=void 0,p={id:"specs/route/route",title:"\ud83d\udee3\ufe0f route",description:"route",source:"@site/docs/specs/route/route.mdx",sourceDirName:"specs/route",slug:"/specs/route/",permalink:"/fhir-dosage-utils/docs/specs/route/",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/route/route.mdx",tags:[],version:"current",frontMatter:{description:"route",title:"\ud83d\udee3\ufe0f route"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udee3\ufe0f route",permalink:"/fhir-dosage-utils/docs/category/\ufe0f-route"},next:{title:"\u27a1\ufe0f sequence",permalink:"/fhir-dosage-utils/docs/category/\ufe0f-sequence"}},f={},g=[];function h(e){const t={a:"a",admonition:"admonition",p:"p",...(0,o.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(i.A,{children:[(0,r.jsx)(c.A,{value:"text",label:"Human readable text",default:!0,children:(0,r.jsx)(u.A,{dosage:a})}),(0,r.jsx)(c.A,{value:"json",label:"Dosage",children:(0,r.jsx)(s.default,{language:"json",children:JSON.stringify(a,null,2)})})]}),"\n",(0,r.jsx)(t.admonition,{type:"tip",children:(0,r.jsxs)(t.p,{children:["Don't forget you can use ",(0,r.jsx)(t.a,{href:"/api/interface/Params",children:"fromCodeableConceptToString"})," option to fit your needs"]})})]})}function m(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(h,{...e})}):h(e)}},816:(e,t,n)=>{n.d(t,{A:()=>i});var r=n(6540),o=n(6300),s=n(1812),a=n(4848);function i(e){let{dosage:t,config:n,i18nConfig:i}=e;const[c,u]=(0,r.useState)(""),[l,d]=(0,r.useState)(n?.language||"en"),[p,f]=(0,r.useState)(null);(0,r.useEffect)((()=>{!async function(){const e=await o.A.build(n,i);f(e)}()}),[n]),(0,r.useEffect)((()=>{!async function(){if(p){const e=p.fromDosageToText(t);u(e)}}()}),[t,p]);return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{style:{display:"flex"},children:[(0,a.jsxs)("select",{value:l,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,a.jsx)("option",{value:"en",children:"English"}),(0,a.jsx)("option",{value:"fr",children:"French"}),(0,a.jsx)("option",{value:"nl",children:"Dutch"}),(0,a.jsx)("option",{value:"de",children:"German"})]}),(0,a.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(l);const e=p.fromDosageToText(t);u(e)}},children:"Confirm"})]}),(0,a.jsx)("div",{style:{marginTop:"10px"},children:(0,a.jsx)(s.default,{language:"markup",children:(g=c,g.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}}}]); \ No newline at end of file diff --git a/assets/js/6a4d8b82.c06e8aef.js b/assets/js/6a4d8b82.8950d250.js similarity index 71% rename from assets/js/6a4d8b82.c06e8aef.js rename to assets/js/6a4d8b82.8950d250.js index 7df8cb72..2cfd4fc8 100644 --- a/assets/js/6a4d8b82.c06e8aef.js +++ b/assets/js/6a4d8b82.8950d250.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[9232],{4402:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>p,contentTitle:()=>u,default:()=>x,frontMatter:()=>c,metadata:()=>m,toc:()=>h});var n=i(4848),s=i(8453),o=i(1812);const r=JSON.parse('[{"sequence":1,"text":"500mg daily for 5 days","additionalInstruction":[{"coding":[{"system":"http://snomed.info/sct","code":"421984009","display":"Until finished - dosing instruction fragment (qualifier value)"}]}],"timing":{"repeat":{"frequency":1,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral Route (qualifier value)"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":500,"unit":"mg","system":"http://unitsofmeasure.org","code":"mg"}}]}]');var a=i(4865),d=i(9365),l=i(8264);const c={description:"Request with a single dosage line - Azithromycin - completed - with link to prior prescription and reason code",title:"medrx0313"},u=void 0,m={id:"examples/medicationrequest/medrx0313",title:"medrx0313",description:"Request with a single dosage line - Azithromycin - completed - with link to prior prescription and reason code",source:"@site/docs/examples/medicationrequest/medrx0313.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx0313",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0313",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx0313.mdx",tags:[],version:"current",frontMatter:{description:"Request with a single dosage line - Azithromycin - completed - with link to prior prescription and reason code",title:"medrx0313"},sidebar:"tutorialSidebar",previous:{title:"medrx0310",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0310"},next:{title:"medrx0314",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0314"}},p={},h=[];function g(e){const t={a:"a",admonition:"admonition",p:"p",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.admonition,{type:"info",children:(0,n.jsxs)(t.p,{children:["Source: ",(0,n.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequest0313.html",children:"HL7"}),' - "Request with a single dosage line - Azithromycin - completed - with link to prior prescription and reason code"']})}),"\n",(0,n.jsxs)(a.A,{children:[(0,n.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(l.A,{dosages:r,config:{}})}),(0,n.jsx)(d.A,{value:"json",label:"Dosage",children:(0,n.jsx)(o.default,{language:"json",children:JSON.stringify(r,null,2)})})]})]})}function x(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(g,{...e})}):g(e)}},8264:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(6540),s=i(6300),o=i(1812),r=i(4848);function a(e){let{dosages:t,config:i,i18nConfig:a}=e;const[d,l]=(0,n.useState)(""),[c,u]=(0,n.useState)(i?.language||"en"),[m,p]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await s.A.build(i,a);p(e)}()}),[i]),(0,n.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);l(e)}}()}),[t,m]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:c,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(c);const e=m.fromMultipleDosageToText(t);l(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(o.default,{language:"markup",children:(h=d,h.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var h}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[9232],{4402:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>p,contentTitle:()=>u,default:()=>x,frontMatter:()=>c,metadata:()=>m,toc:()=>g});var n=i(4848),s=i(8453),r=i(1812);const o=JSON.parse('[{"sequence":1,"text":"500mg daily for 5 days","additionalInstruction":[{"coding":[{"system":"http://snomed.info/sct","code":"421984009","display":"Until finished - dosing instruction fragment (qualifier value)"}]}],"timing":{"repeat":{"frequency":1,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral Route (qualifier value)"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":500,"unit":"mg","system":"http://unitsofmeasure.org","code":"mg"}}]}]');var a=i(4865),d=i(9365),l=i(8264);const c={description:"Request with a single dosage line - Azithromycin - completed - with link to prior prescription and reason code",title:"medrx0313"},u=void 0,m={id:"examples/medicationrequest/medrx0313",title:"medrx0313",description:"Request with a single dosage line - Azithromycin - completed - with link to prior prescription and reason code",source:"@site/docs/examples/medicationrequest/medrx0313.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx0313",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0313",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx0313.mdx",tags:[],version:"current",frontMatter:{description:"Request with a single dosage line - Azithromycin - completed - with link to prior prescription and reason code",title:"medrx0313"},sidebar:"tutorialSidebar",previous:{title:"medrx0310",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0310"},next:{title:"medrx0314",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0314"}},p={},g=[];function h(e){const t={a:"a",admonition:"admonition",p:"p",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.admonition,{type:"info",children:(0,n.jsxs)(t.p,{children:["Source: ",(0,n.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequest0313.html",children:"HL7"}),' - "Request with a single dosage line - Azithromycin - completed - with link to prior prescription and reason code"']})}),"\n",(0,n.jsxs)(a.A,{children:[(0,n.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(l.A,{dosages:o,config:{}})}),(0,n.jsx)(d.A,{value:"json",label:"Dosage",children:(0,n.jsx)(r.default,{language:"json",children:JSON.stringify(o,null,2)})})]})]})}function x(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(h,{...e})}):h(e)}},8264:(e,t,i)=>{i.d(t,{A:()=>a});var n=i(6540),s=i(6300),r=i(1812),o=i(4848);function a(e){let{dosages:t,config:i,i18nConfig:a}=e;const[d,l]=(0,n.useState)(""),[c,u]=(0,n.useState)(i?.language||"en"),[m,p]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await s.A.build(i,a);p(e)}()}),[i]),(0,n.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);l(e)}}()}),[t,m]);return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{style:{display:"flex"},children:[(0,o.jsxs)("select",{value:c,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,o.jsx)("option",{value:"en",children:"English"}),(0,o.jsx)("option",{value:"fr",children:"French"}),(0,o.jsx)("option",{value:"nl",children:"Dutch"}),(0,o.jsx)("option",{value:"de",children:"German"})]}),(0,o.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(c);const e=m.fromMultipleDosageToText(t);l(e)}},children:"Confirm"})]}),(0,o.jsx)("div",{style:{marginTop:"10px"},children:(0,o.jsx)(r.default,{language:"markup",children:(g=d,g.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}}}]); \ No newline at end of file diff --git a/assets/js/6bccb6a0.09a31071.js b/assets/js/6bccb6a0.52a341b3.js similarity index 67% rename from assets/js/6bccb6a0.09a31071.js rename to assets/js/6bccb6a0.52a341b3.js index 4a5dae6d..e3ec0d0e 100644 --- a/assets/js/6bccb6a0.09a31071.js +++ b/assets/js/6bccb6a0.52a341b3.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[1286],{677:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>f,contentTitle:()=>c,default:()=>h,frontMatter:()=>l,metadata:()=>p,toc:()=>g});var a=n(4848),i=n(8453),r=n(1812);const o=JSON.parse('{"timing":{"repeat":{"duration":3,"durationUnit":"d"}}}');var s=n(4865),u=n(9365),d=n(816);const l={description:"duration only",title:"\u23f0 duration"},c=void 0,p={id:"specs/durationDurationMax/duration_only",title:"\u23f0 duration",description:"duration only",source:"@site/docs/specs/durationDurationMax/duration_only.mdx",sourceDirName:"specs/durationDurationMax",slug:"/specs/durationDurationMax/duration_only",permalink:"/fhir-dosage-utils/docs/specs/durationDurationMax/duration_only",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/durationDurationMax/duration_only.mdx",tags:[],version:"current",frontMatter:{description:"duration only",title:"\u23f0 duration"},sidebar:"tutorialSidebar",previous:{title:"\u23f0 duration and durationMax",permalink:"/fhir-dosage-utils/docs/specs/durationDurationMax/duration_and_durationMax"},next:{title:"\ud83c\udf89 event",permalink:"/fhir-dosage-utils/docs/category/-event"}},f={},g=[];function x(e){return(0,a.jsxs)(s.A,{children:[(0,a.jsx)(u.A,{value:"text",label:"Human readable text",default:!0,children:(0,a.jsx)(d.A,{dosage:o})}),(0,a.jsx)(u.A,{value:"json",label:"Dosage",children:(0,a.jsx)(r.default,{language:"json",children:JSON.stringify(o,null,2)})})]})}function h(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(x,{...e})}):x()}},816:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(6540),i=n(6300),r=n(1812),o=n(4848);function s(e){let{dosage:t,config:n,i18nConfig:s}=e;const[u,d]=(0,a.useState)(""),[l,c]=(0,a.useState)(n?.language||"en"),[p,f]=(0,a.useState)(null);(0,a.useEffect)((()=>{!async function(){const e=await i.A.build(n,s);f(e)}()}),[n]),(0,a.useEffect)((()=>{!async function(){if(p){const e=p.fromDosageToText(t);d(e)}}()}),[t,p]);return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{style:{display:"flex"},children:[(0,o.jsxs)("select",{value:l,onChange:e=>c(e.target.value),style:{marginRight:"10px"},children:[(0,o.jsx)("option",{value:"en",children:"English"}),(0,o.jsx)("option",{value:"fr",children:"French"}),(0,o.jsx)("option",{value:"nl",children:"Dutch"}),(0,o.jsx)("option",{value:"de",children:"German"})]}),(0,o.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(l);const e=p.fromDosageToText(t);d(e)}},children:"Confirm"})]}),(0,o.jsx)("div",{style:{marginTop:"10px"},children:(0,o.jsx)(r.default,{language:"markup",children:(g=u,g.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[1286],{677:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>g,contentTitle:()=>c,default:()=>h,frontMatter:()=>l,metadata:()=>p,toc:()=>f});var a=n(4848),r=n(8453),i=n(1812);const o=JSON.parse('{"timing":{"repeat":{"duration":3,"durationUnit":"d"}}}');var s=n(4865),u=n(9365),d=n(816);const l={description:"duration only",title:"\u23f0 duration"},c=void 0,p={id:"specs/durationDurationMax/duration_only",title:"\u23f0 duration",description:"duration only",source:"@site/docs/specs/durationDurationMax/duration_only.mdx",sourceDirName:"specs/durationDurationMax",slug:"/specs/durationDurationMax/duration_only",permalink:"/fhir-dosage-utils/docs/specs/durationDurationMax/duration_only",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/durationDurationMax/duration_only.mdx",tags:[],version:"current",frontMatter:{description:"duration only",title:"\u23f0 duration"},sidebar:"tutorialSidebar",previous:{title:"\u23f0 duration and durationMax",permalink:"/fhir-dosage-utils/docs/specs/durationDurationMax/duration_and_durationMax"},next:{title:"\ud83c\udf89 event",permalink:"/fhir-dosage-utils/docs/category/-event"}},g={},f=[];function x(e){return(0,a.jsxs)(s.A,{children:[(0,a.jsx)(u.A,{value:"text",label:"Human readable text",default:!0,children:(0,a.jsx)(d.A,{dosage:o})}),(0,a.jsx)(u.A,{value:"json",label:"Dosage",children:(0,a.jsx)(i.default,{language:"json",children:JSON.stringify(o,null,2)})})]})}function h(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(x,{...e})}):x()}},816:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(6540),r=n(6300),i=n(1812),o=n(4848);function s(e){let{dosage:t,config:n,i18nConfig:s}=e;const[u,d]=(0,a.useState)(""),[l,c]=(0,a.useState)(n?.language||"en"),[p,g]=(0,a.useState)(null);(0,a.useEffect)((()=>{!async function(){const e=await r.A.build(n,s);g(e)}()}),[n]),(0,a.useEffect)((()=>{!async function(){if(p){const e=p.fromDosageToText(t);d(e)}}()}),[t,p]);return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{style:{display:"flex"},children:[(0,o.jsxs)("select",{value:l,onChange:e=>c(e.target.value),style:{marginRight:"10px"},children:[(0,o.jsx)("option",{value:"en",children:"English"}),(0,o.jsx)("option",{value:"fr",children:"French"}),(0,o.jsx)("option",{value:"nl",children:"Dutch"}),(0,o.jsx)("option",{value:"de",children:"German"})]}),(0,o.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(l);const e=p.fromDosageToText(t);d(e)}},children:"Confirm"})]}),(0,o.jsx)("div",{style:{marginTop:"10px"},children:(0,o.jsx)(i.default,{language:"markup",children:(f=u,f.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var f}}}]); \ No newline at end of file diff --git a/assets/js/7614ce18.fee997e2.js b/assets/js/7614ce18.bbccdc18.js similarity index 75% rename from assets/js/7614ce18.fee997e2.js rename to assets/js/7614ce18.bbccdc18.js index b67c1a01..242d433f 100644 --- a/assets/js/7614ce18.fee997e2.js +++ b/assets/js/7614ce18.bbccdc18.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[1444],{3339:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>f,contentTitle:()=>u,default:()=>g,frontMatter:()=>d,metadata:()=>m,toc:()=>x});var s=i(4848),a=i(8453),n=i(1812);const r=JSON.parse('{"maxDosePerLifetime":{"value":3,"unit":"mg"}}');var o=i(4865),c=i(9365),l=i(816);const d={description:"maxDosePerLifetime",title:"\ud83d\udc96 maxDosePerLifetime"},u=void 0,m={id:"specs/maxDosePerLifetime/maxDosePerLifetime",title:"\ud83d\udc96 maxDosePerLifetime",description:"maxDosePerLifetime",source:"@site/docs/specs/maxDosePerLifetime/maxDosePerLifetime.mdx",sourceDirName:"specs/maxDosePerLifetime",slug:"/specs/maxDosePerLifetime/",permalink:"/fhir-dosage-utils/docs/specs/maxDosePerLifetime/",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/maxDosePerLifetime/maxDosePerLifetime.mdx",tags:[],version:"current",frontMatter:{description:"maxDosePerLifetime",title:"\ud83d\udc96 maxDosePerLifetime"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udc96 maxDosePerLifetime",permalink:"/fhir-dosage-utils/docs/category/-maxdoseperlifetime"},next:{title:"\u23f3 maxDosePerPeriod",permalink:"/fhir-dosage-utils/docs/category/-maxdoseperperiod"}},f={},x=[];function p(e){const t={a:"a",admonition:"admonition",p:"p",...(0,a.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(o.A,{children:[(0,s.jsx)(c.A,{value:"text",label:"Human readable text",default:!0,children:(0,s.jsx)(l.A,{dosage:r})}),(0,s.jsx)(c.A,{value:"json",label:"Dosage",children:(0,s.jsx)(n.default,{language:"json",children:JSON.stringify(r,null,2)})})]}),"\n",(0,s.jsx)(t.admonition,{type:"tip",children:(0,s.jsxs)(t.p,{children:["Don't forget you can use ",(0,s.jsx)(t.a,{href:"/api/interface/Params",children:"fromFHIRQuantityUnitToString"})," option to fit your needs"]})})]})}function g(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(p,{...e})}):p(e)}},816:(e,t,i)=>{i.d(t,{A:()=>o});var s=i(6540),a=i(6300),n=i(1812),r=i(4848);function o(e){let{dosage:t,config:i,i18nConfig:o}=e;const[c,l]=(0,s.useState)(""),[d,u]=(0,s.useState)(i?.language||"en"),[m,f]=(0,s.useState)(null);(0,s.useEffect)((()=>{!async function(){const e=await a.A.build(i,o);f(e)}()}),[i]),(0,s.useEffect)((()=>{!async function(){if(m){const e=m.fromDosageToText(t);l(e)}}()}),[t,m]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:d,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(d);const e=m.fromDosageToText(t);l(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(n.default,{language:"markup",children:(x=c,x.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var x}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[1444],{3339:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>f,contentTitle:()=>m,default:()=>g,frontMatter:()=>d,metadata:()=>u,toc:()=>x});var s=i(4848),a=i(8453),n=i(1812);const r=JSON.parse('{"maxDosePerLifetime":{"value":3,"unit":"mg"}}');var o=i(4865),c=i(9365),l=i(816);const d={description:"maxDosePerLifetime",title:"\ud83d\udc96 maxDosePerLifetime"},m=void 0,u={id:"specs/maxDosePerLifetime/maxDosePerLifetime",title:"\ud83d\udc96 maxDosePerLifetime",description:"maxDosePerLifetime",source:"@site/docs/specs/maxDosePerLifetime/maxDosePerLifetime.mdx",sourceDirName:"specs/maxDosePerLifetime",slug:"/specs/maxDosePerLifetime/",permalink:"/fhir-dosage-utils/docs/specs/maxDosePerLifetime/",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/maxDosePerLifetime/maxDosePerLifetime.mdx",tags:[],version:"current",frontMatter:{description:"maxDosePerLifetime",title:"\ud83d\udc96 maxDosePerLifetime"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udc96 maxDosePerLifetime",permalink:"/fhir-dosage-utils/docs/category/-maxdoseperlifetime"},next:{title:"\u23f3 maxDosePerPeriod",permalink:"/fhir-dosage-utils/docs/category/-maxdoseperperiod"}},f={},x=[];function p(e){const t={a:"a",admonition:"admonition",p:"p",...(0,a.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(o.A,{children:[(0,s.jsx)(c.A,{value:"text",label:"Human readable text",default:!0,children:(0,s.jsx)(l.A,{dosage:r})}),(0,s.jsx)(c.A,{value:"json",label:"Dosage",children:(0,s.jsx)(n.default,{language:"json",children:JSON.stringify(r,null,2)})})]}),"\n",(0,s.jsx)(t.admonition,{type:"tip",children:(0,s.jsxs)(t.p,{children:["Don't forget you can use ",(0,s.jsx)(t.a,{href:"/api/interface/Params",children:"fromFHIRQuantityUnitToString"})," option to fit your needs"]})})]})}function g(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(p,{...e})}):p(e)}},816:(e,t,i)=>{i.d(t,{A:()=>o});var s=i(6540),a=i(6300),n=i(1812),r=i(4848);function o(e){let{dosage:t,config:i,i18nConfig:o}=e;const[c,l]=(0,s.useState)(""),[d,m]=(0,s.useState)(i?.language||"en"),[u,f]=(0,s.useState)(null);(0,s.useEffect)((()=>{!async function(){const e=await a.A.build(i,o);f(e)}()}),[i]),(0,s.useEffect)((()=>{!async function(){if(u){const e=u.fromDosageToText(t);l(e)}}()}),[t,u]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:d,onChange:e=>m(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(u){await u.changeLanguage(d);const e=u.fromDosageToText(t);l(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(n.default,{language:"markup",children:(x=c,x.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var x}}}]); \ No newline at end of file diff --git a/assets/js/76aa043d.8e1516fb.js b/assets/js/76aa043d.c49031a9.js similarity index 64% rename from assets/js/76aa043d.8e1516fb.js rename to assets/js/76aa043d.c49031a9.js index 975ad6e7..297e2a08 100644 --- a/assets/js/76aa043d.8e1516fb.js +++ b/assets/js/76aa043d.c49031a9.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[6751],{6692:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>f,contentTitle:()=>d,default:()=>q,frontMatter:()=>l,metadata:()=>p,toc:()=>g});var s=t(4848),i=t(8453),u=t(1812);const c=JSON.parse('[{"sequence":1,"text":"Instructions 1"},{"sequence":2,"text":"Instructions 2"}]');var r=t(4865),a=t(9365),o=t(8264);const l={description:"Sequential instructions, with sequence",title:"\u27a1\ufe0f sequence (Sequential instructions 1)"},d=void 0,p={id:"specs/sequence/sequential_instructions_1",title:"\u27a1\ufe0f sequence (Sequential instructions 1)",description:"Sequential instructions, with sequence",source:"@site/docs/specs/sequence/sequential_instructions_1.mdx",sourceDirName:"specs/sequence",slug:"/specs/sequence/sequential_instructions_1",permalink:"/fhir-dosage-utils/docs/specs/sequence/sequential_instructions_1",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/sequence/sequential_instructions_1.mdx",tags:[],version:"current",frontMatter:{description:"Sequential instructions, with sequence",title:"\u27a1\ufe0f sequence (Sequential instructions 1)"},sidebar:"tutorialSidebar",previous:{title:"\u27a1\ufe0f sequence (Concurrent instructions)",permalink:"/fhir-dosage-utils/docs/specs/sequence/concurrent_instructions"},next:{title:"\u27a1\ufe0f sequence (Sequential instructions 2)",permalink:"/fhir-dosage-utils/docs/specs/sequence/sequential_instructions_2"}},f={},g=[];function h(e){return(0,s.jsxs)(r.A,{children:[(0,s.jsx)(a.A,{value:"text",label:"Human readable text",default:!0,children:(0,s.jsx)(o.A,{dosages:c,config:{displayOrder:["text"]}})}),(0,s.jsx)(a.A,{value:"json",label:"Dosage",children:(0,s.jsx)(u.default,{language:"json",children:JSON.stringify(c,null,2)})})]})}function q(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(h,{...e})}):h()}},8264:(e,n,t)=>{t.d(n,{A:()=>r});var s=t(6540),i=t(6300),u=t(1812),c=t(4848);function r(e){let{dosages:n,config:t,i18nConfig:r}=e;const[a,o]=(0,s.useState)(""),[l,d]=(0,s.useState)(t?.language||"en"),[p,f]=(0,s.useState)(null);(0,s.useEffect)((()=>{!async function(){const e=await i.A.build(t,r);f(e)}()}),[t]),(0,s.useEffect)((()=>{!async function(){if(p){const e=p.fromMultipleDosageToText(n);o(e)}}()}),[n,p]);return(0,c.jsxs)("div",{children:[(0,c.jsxs)("div",{style:{display:"flex"},children:[(0,c.jsxs)("select",{value:l,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,c.jsx)("option",{value:"en",children:"English"}),(0,c.jsx)("option",{value:"fr",children:"French"}),(0,c.jsx)("option",{value:"nl",children:"Dutch"}),(0,c.jsx)("option",{value:"de",children:"German"})]}),(0,c.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(l);const e=p.fromMultipleDosageToText(n);o(e)}},children:"Confirm"})]}),(0,c.jsx)("div",{style:{marginTop:"10px"},children:(0,c.jsx)(u.default,{language:"markup",children:(g=a,g.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var g}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[6751],{6692:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>f,contentTitle:()=>d,default:()=>q,frontMatter:()=>l,metadata:()=>p,toc:()=>g});var s=t(4848),i=t(8453),c=t(1812);const u=JSON.parse('[{"sequence":1,"text":"Instructions 1"},{"sequence":2,"text":"Instructions 2"}]');var r=t(4865),a=t(9365),o=t(8264);const l={description:"Sequential instructions, with sequence",title:"\u27a1\ufe0f sequence (Sequential instructions 1)"},d=void 0,p={id:"specs/sequence/sequential_instructions_1",title:"\u27a1\ufe0f sequence (Sequential instructions 1)",description:"Sequential instructions, with sequence",source:"@site/docs/specs/sequence/sequential_instructions_1.mdx",sourceDirName:"specs/sequence",slug:"/specs/sequence/sequential_instructions_1",permalink:"/fhir-dosage-utils/docs/specs/sequence/sequential_instructions_1",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/sequence/sequential_instructions_1.mdx",tags:[],version:"current",frontMatter:{description:"Sequential instructions, with sequence",title:"\u27a1\ufe0f sequence (Sequential instructions 1)"},sidebar:"tutorialSidebar",previous:{title:"\u27a1\ufe0f sequence (Concurrent instructions)",permalink:"/fhir-dosage-utils/docs/specs/sequence/concurrent_instructions"},next:{title:"\u27a1\ufe0f sequence (Sequential instructions 2)",permalink:"/fhir-dosage-utils/docs/specs/sequence/sequential_instructions_2"}},f={},g=[];function h(e){return(0,s.jsxs)(r.A,{children:[(0,s.jsx)(a.A,{value:"text",label:"Human readable text",default:!0,children:(0,s.jsx)(o.A,{dosages:u,config:{displayOrder:["text"]}})}),(0,s.jsx)(a.A,{value:"json",label:"Dosage",children:(0,s.jsx)(c.default,{language:"json",children:JSON.stringify(u,null,2)})})]})}function q(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(h,{...e})}):h()}},8264:(e,n,t)=>{t.d(n,{A:()=>r});var s=t(6540),i=t(6300),c=t(1812),u=t(4848);function r(e){let{dosages:n,config:t,i18nConfig:r}=e;const[a,o]=(0,s.useState)(""),[l,d]=(0,s.useState)(t?.language||"en"),[p,f]=(0,s.useState)(null);(0,s.useEffect)((()=>{!async function(){const e=await i.A.build(t,r);f(e)}()}),[t]),(0,s.useEffect)((()=>{!async function(){if(p){const e=p.fromMultipleDosageToText(n);o(e)}}()}),[n,p]);return(0,u.jsxs)("div",{children:[(0,u.jsxs)("div",{style:{display:"flex"},children:[(0,u.jsxs)("select",{value:l,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,u.jsx)("option",{value:"en",children:"English"}),(0,u.jsx)("option",{value:"fr",children:"French"}),(0,u.jsx)("option",{value:"nl",children:"Dutch"}),(0,u.jsx)("option",{value:"de",children:"German"})]}),(0,u.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(l);const e=p.fromMultipleDosageToText(n);o(e)}},children:"Confirm"})]}),(0,u.jsx)("div",{style:{marginTop:"10px"},children:(0,u.jsx)(c.default,{language:"markup",children:(g=a,g.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var g}}}]); \ No newline at end of file diff --git a/assets/js/774b774e.e313eb5a.js b/assets/js/774b774e.9bb4f3ea.js similarity index 93% rename from assets/js/774b774e.e313eb5a.js rename to assets/js/774b774e.9bb4f3ea.js index 0938c280..9924cf31 100644 --- a/assets/js/774b774e.e313eb5a.js +++ b/assets/js/774b774e.9bb4f3ea.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[5648],{553:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>y,contentTitle:()=>d,default:()=>g,frontMatter:()=>l,metadata:()=>f,toc:()=>p});var t=r(4848),a=r(8453),s=r(1812);const c=JSON.parse('{"timing":{"repeat":{"frequency":3}}}');var u=r(4865),i=r(9365),o=r(816);const l={description:"frequency only",title:"\ud83d\udd01 frequency"},d=void 0,f={id:"specs/frequencyFrequencyMax/frequency_only",title:"\ud83d\udd01 frequency",description:"frequency only",source:"@site/docs/specs/frequencyFrequencyMax/frequency_only.mdx",sourceDirName:"specs/frequencyFrequencyMax",slug:"/specs/frequencyFrequencyMax/frequency_only",permalink:"/fhir-dosage-utils/docs/specs/frequencyFrequencyMax/frequency_only",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/frequencyFrequencyMax/frequency_only.mdx",tags:[],version:"current",frontMatter:{description:"frequency only",title:"\ud83d\udd01 frequency"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udd01 frequency and frequencyMax",permalink:"/fhir-dosage-utils/docs/specs/frequencyFrequencyMax/frequency_and_frequencyMax"},next:{title:"\ud83d\udc89 maxDosePerAdministration",permalink:"/fhir-dosage-utils/docs/category/-maxdoseperadministration"}},y={},p=[];function x(e){return(0,t.jsxs)(u.A,{children:[(0,t.jsx)(i.A,{value:"text",label:"Human readable text",default:!0,children:(0,t.jsx)(o.A,{dosage:c})}),(0,t.jsx)(i.A,{value:"json",label:"Dosage",children:(0,t.jsx)(s.default,{language:"json",children:JSON.stringify(c,null,2)})})]})}function g(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(x,{...e})}):x()}},816:(e,n,r)=>{r.d(n,{A:()=>u});var t=r(6540),a=r(6300),s=r(1812),c=r(4848);function u(e){let{dosage:n,config:r,i18nConfig:u}=e;const[i,o]=(0,t.useState)(""),[l,d]=(0,t.useState)(r?.language||"en"),[f,y]=(0,t.useState)(null);(0,t.useEffect)((()=>{!async function(){const e=await a.A.build(r,u);y(e)}()}),[r]),(0,t.useEffect)((()=>{!async function(){if(f){const e=f.fromDosageToText(n);o(e)}}()}),[n,f]);return(0,c.jsxs)("div",{children:[(0,c.jsxs)("div",{style:{display:"flex"},children:[(0,c.jsxs)("select",{value:l,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,c.jsx)("option",{value:"en",children:"English"}),(0,c.jsx)("option",{value:"fr",children:"French"}),(0,c.jsx)("option",{value:"nl",children:"Dutch"}),(0,c.jsx)("option",{value:"de",children:"German"})]}),(0,c.jsx)("button",{onClick:async()=>{if(f){await f.changeLanguage(l);const e=f.fromDosageToText(n);o(e)}},children:"Confirm"})]}),(0,c.jsx)("div",{style:{marginTop:"10px"},children:(0,c.jsx)(s.default,{language:"markup",children:(p=i,p.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var p}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[5648],{553:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>y,contentTitle:()=>d,default:()=>g,frontMatter:()=>l,metadata:()=>f,toc:()=>p});var t=r(4848),a=r(8453),s=r(1812);const c=JSON.parse('{"timing":{"repeat":{"frequency":3}}}');var u=r(4865),i=r(9365),o=r(816);const l={description:"frequency only",title:"\ud83d\udd01 frequency"},d=void 0,f={id:"specs/frequencyFrequencyMax/frequency_only",title:"\ud83d\udd01 frequency",description:"frequency only",source:"@site/docs/specs/frequencyFrequencyMax/frequency_only.mdx",sourceDirName:"specs/frequencyFrequencyMax",slug:"/specs/frequencyFrequencyMax/frequency_only",permalink:"/fhir-dosage-utils/docs/specs/frequencyFrequencyMax/frequency_only",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/frequencyFrequencyMax/frequency_only.mdx",tags:[],version:"current",frontMatter:{description:"frequency only",title:"\ud83d\udd01 frequency"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udd01 frequency and frequencyMax",permalink:"/fhir-dosage-utils/docs/specs/frequencyFrequencyMax/frequency_and_frequencyMax"},next:{title:"\ud83d\udc89 maxDosePerAdministration",permalink:"/fhir-dosage-utils/docs/category/-maxdoseperadministration"}},y={},p=[];function x(e){return(0,t.jsxs)(u.A,{children:[(0,t.jsx)(i.A,{value:"text",label:"Human readable text",default:!0,children:(0,t.jsx)(o.A,{dosage:c})}),(0,t.jsx)(i.A,{value:"json",label:"Dosage",children:(0,t.jsx)(s.default,{language:"json",children:JSON.stringify(c,null,2)})})]})}function g(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(x,{...e})}):x()}},816:(e,n,r)=>{r.d(n,{A:()=>u});var t=r(6540),a=r(6300),s=r(1812),c=r(4848);function u(e){let{dosage:n,config:r,i18nConfig:u}=e;const[i,o]=(0,t.useState)(""),[l,d]=(0,t.useState)(r?.language||"en"),[f,y]=(0,t.useState)(null);(0,t.useEffect)((()=>{!async function(){const e=await a.A.build(r,u);y(e)}()}),[r]),(0,t.useEffect)((()=>{!async function(){if(f){const e=f.fromDosageToText(n);o(e)}}()}),[n,f]);return(0,c.jsxs)("div",{children:[(0,c.jsxs)("div",{style:{display:"flex"},children:[(0,c.jsxs)("select",{value:l,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,c.jsx)("option",{value:"en",children:"English"}),(0,c.jsx)("option",{value:"fr",children:"French"}),(0,c.jsx)("option",{value:"nl",children:"Dutch"}),(0,c.jsx)("option",{value:"de",children:"German"})]}),(0,c.jsx)("button",{onClick:async()=>{if(f){await f.changeLanguage(l);const e=f.fromDosageToText(n);o(e)}},children:"Confirm"})]}),(0,c.jsx)("div",{style:{marginTop:"10px"},children:(0,c.jsx)(s.default,{language:"markup",children:(p=i,p.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var p}}}]); \ No newline at end of file diff --git a/assets/js/78f84b63.39b2af5e.js b/assets/js/78f84b63.5f55de26.js similarity index 58% rename from assets/js/78f84b63.39b2af5e.js rename to assets/js/78f84b63.5f55de26.js index ce8ee8d0..1df93fa7 100644 --- a/assets/js/78f84b63.39b2af5e.js +++ b/assets/js/78f84b63.5f55de26.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[2683],{5020:(e,t,o)=>{o.r(t),o.d(t,{assets:()=>f,contentTitle:()=>c,default:()=>h,frontMatter:()=>l,metadata:()=>m,toc:()=>p});var n=o(4848),r=o(8453),s=o(1812),a=o(9763),i=o(4865),d=o(9365),u=o(8264);const l={description:"Control the display order used by the algorithm (Useful when you want to turn on / off some specific rules for some reason)",title:"\ud83d\udd22 displayOrder"},c=void 0,m={id:"custom/displayOrder",title:"\ud83d\udd22 displayOrder",description:"Control the display order used by the algorithm (Useful when you want to turn on / off some specific rules for some reason)",source:"@site/docs/custom/displayOrder.mdx",sourceDirName:"custom",slug:"/custom/displayOrder",permalink:"/fhir-dosage-utils/docs/custom/displayOrder",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/custom/displayOrder.mdx",tags:[],version:"current",frontMatter:{description:"Control the display order used by the algorithm (Useful when you want to turn on / off some specific rules for some reason)",title:"\ud83d\udd22 displayOrder"},sidebar:"tutorialSidebar",previous:{title:"\ud83c\udf89 dateTimeFormatOptions",permalink:"/fhir-dosage-utils/docs/custom/dateTimeFormatOptions"},next:{title:"\u2796 displaySeparator",permalink:"/fhir-dosage-utils/docs/custom/displaySeparator"}},f={},p=[];function g(e){const t={code:"code",pre:"pre",...(0,r.R)(),...e.components};return(0,n.jsxs)(i.A,{children:[(0,n.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(u.A,{dosages:a,config:{displayOrder:["method","doseQuantity","doseRange","rateRatio","rateQuantity","rateRange","durationDurationMax","frequencyFrequencyMaxPeriodPeriodMax","offsetWhen","dayOfWeek","timeOfDay","asNeeded","boundsDuration","boundsPeriod","boundsRange","countCountMax","event","code","maxDosePerPeriod","maxDosePerAdministration","maxDosePerLifetime","additionalInstruction","patientInstruction","route","site"]}})}),(0,n.jsx)(d.A,{value:"json",label:"Dosage",children:(0,n.jsx)(s.default,{language:"json",children:JSON.stringify(a,null,2)})}),(0,n.jsx)(d.A,{value:"config",label:"Configuration",children:(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-js",children:'{\n "displayOrder": ["method", "doseQuantity", "doseRange", "rateRatio", "rateQuantity", "rateRange", "durationDurationMax", "frequencyFrequencyMaxPeriodPeriodMax", "offsetWhen", "dayOfWeek", "timeOfDay", "asNeeded", "boundsDuration", "boundsPeriod", "boundsRange", "countCountMax", "event", "code", "maxDosePerPeriod", "maxDosePerAdministration", "maxDosePerLifetime", "additionalInstruction", "patientInstruction", "route", "site"]\n}\n'})})})]})}function h(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(g,{...e})}):g(e)}},8264:(e,t,o)=>{o.d(t,{A:()=>i});var n=o(6540),r=o(6300),s=o(1812),a=o(4848);function i(e){let{dosages:t,config:o,i18nConfig:i}=e;const[d,u]=(0,n.useState)(""),[l,c]=(0,n.useState)(o?.language||"en"),[m,f]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await r.A.build(o,i);f(e)}()}),[o]),(0,n.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);u(e)}}()}),[t,m]);return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{style:{display:"flex"},children:[(0,a.jsxs)("select",{value:l,onChange:e=>c(e.target.value),style:{marginRight:"10px"},children:[(0,a.jsx)("option",{value:"en",children:"English"}),(0,a.jsx)("option",{value:"fr",children:"French"}),(0,a.jsx)("option",{value:"nl",children:"Dutch"}),(0,a.jsx)("option",{value:"de",children:"German"})]}),(0,a.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(l);const e=m.fromMultipleDosageToText(t);u(e)}},children:"Confirm"})]}),(0,a.jsx)("div",{style:{marginTop:"10px"},children:(0,a.jsx)(s.default,{language:"markup",children:(p=d,p.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var p}},9763:e=>{e.exports=JSON.parse('[{"sequence":1,"text":"Administer in 100cc NS as follows: First treatment infuse over 90 minutes, if no reaction then second treatment infuse over 60 minutes, if no reaction then on third and following treatments give over 30 minutes.","timing":{"event":["2023-01-18T00:00:00.000Z"]},"route":{"coding":[{"system":"http://flatiron.com/CodeSystem/Route","code":"IV"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":5,"unit":"mg/kg"}},{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"calculated","display":"Calculated"}]},"doseQuantity":{"value":340,"unit":"mg"}}]}]')}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[2683],{5020:(e,t,o)=>{o.r(t),o.d(t,{assets:()=>f,contentTitle:()=>c,default:()=>h,frontMatter:()=>l,metadata:()=>m,toc:()=>p});var n=o(4848),a=o(8453),r=o(1812),s=o(9763),i=o(4865),d=o(9365),u=o(8264);const l={description:"Control the display order used by the algorithm (Useful when you want to turn on / off some specific rules for some reason)",title:"\ud83d\udd22 displayOrder"},c=void 0,m={id:"custom/displayOrder",title:"\ud83d\udd22 displayOrder",description:"Control the display order used by the algorithm (Useful when you want to turn on / off some specific rules for some reason)",source:"@site/docs/custom/displayOrder.mdx",sourceDirName:"custom",slug:"/custom/displayOrder",permalink:"/fhir-dosage-utils/docs/custom/displayOrder",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/custom/displayOrder.mdx",tags:[],version:"current",frontMatter:{description:"Control the display order used by the algorithm (Useful when you want to turn on / off some specific rules for some reason)",title:"\ud83d\udd22 displayOrder"},sidebar:"tutorialSidebar",previous:{title:"\ud83c\udf89 dateTimeFormatOptions",permalink:"/fhir-dosage-utils/docs/custom/dateTimeFormatOptions"},next:{title:"\u2796 displaySeparator",permalink:"/fhir-dosage-utils/docs/custom/displaySeparator"}},f={},p=[];function g(e){const t={code:"code",pre:"pre",...(0,a.R)(),...e.components};return(0,n.jsxs)(i.A,{children:[(0,n.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(u.A,{dosages:s,config:{displayOrder:["method","doseQuantity","doseRange","rateRatio","rateQuantity","rateRange","durationDurationMax","frequencyFrequencyMaxPeriodPeriodMax","offsetWhen","dayOfWeek","timeOfDay","asNeeded","boundsDuration","boundsPeriod","boundsRange","countCountMax","event","code","maxDosePerPeriod","maxDosePerAdministration","maxDosePerLifetime","additionalInstruction","patientInstruction","route","site"]}})}),(0,n.jsx)(d.A,{value:"json",label:"Dosage",children:(0,n.jsx)(r.default,{language:"json",children:JSON.stringify(s,null,2)})}),(0,n.jsx)(d.A,{value:"config",label:"Configuration",children:(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{className:"language-js",children:'{\n "displayOrder": ["method", "doseQuantity", "doseRange", "rateRatio", "rateQuantity", "rateRange", "durationDurationMax", "frequencyFrequencyMaxPeriodPeriodMax", "offsetWhen", "dayOfWeek", "timeOfDay", "asNeeded", "boundsDuration", "boundsPeriod", "boundsRange", "countCountMax", "event", "code", "maxDosePerPeriod", "maxDosePerAdministration", "maxDosePerLifetime", "additionalInstruction", "patientInstruction", "route", "site"]\n}\n'})})})]})}function h(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(g,{...e})}):g(e)}},8264:(e,t,o)=>{o.d(t,{A:()=>i});var n=o(6540),a=o(6300),r=o(1812),s=o(4848);function i(e){let{dosages:t,config:o,i18nConfig:i}=e;const[d,u]=(0,n.useState)(""),[l,c]=(0,n.useState)(o?.language||"en"),[m,f]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await a.A.build(o,i);f(e)}()}),[o]),(0,n.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);u(e)}}()}),[t,m]);return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{style:{display:"flex"},children:[(0,s.jsxs)("select",{value:l,onChange:e=>c(e.target.value),style:{marginRight:"10px"},children:[(0,s.jsx)("option",{value:"en",children:"English"}),(0,s.jsx)("option",{value:"fr",children:"French"}),(0,s.jsx)("option",{value:"nl",children:"Dutch"}),(0,s.jsx)("option",{value:"de",children:"German"})]}),(0,s.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(l);const e=m.fromMultipleDosageToText(t);u(e)}},children:"Confirm"})]}),(0,s.jsx)("div",{style:{marginTop:"10px"},children:(0,s.jsx)(r.default,{language:"markup",children:(p=d,p.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var p}},9763:e=>{e.exports=JSON.parse('[{"sequence":1,"text":"Administer in 100cc NS as follows: First treatment infuse over 90 minutes, if no reaction then second treatment infuse over 60 minutes, if no reaction then on third and following treatments give over 30 minutes.","timing":{"event":["2023-01-18T00:00:00.000Z"]},"route":{"coding":[{"system":"http://flatiron.com/CodeSystem/Route","code":"IV"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":5,"unit":"mg/kg"}},{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"calculated","display":"Calculated"}]},"doseQuantity":{"value":340,"unit":"mg"}}]}]')}}]); \ No newline at end of file diff --git a/assets/js/7ebf62b0.9da044c5.js b/assets/js/7ebf62b0.7e347abb.js similarity index 79% rename from assets/js/7ebf62b0.9da044c5.js rename to assets/js/7ebf62b0.7e347abb.js index cf39f114..7c0b1d02 100644 --- a/assets/js/7ebf62b0.9da044c5.js +++ b/assets/js/7ebf62b0.7e347abb.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[417],{6787:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>f,contentTitle:()=>l,default:()=>x,frontMatter:()=>c,metadata:()=>p,toc:()=>g});var s=n(4848),a=n(8453),i=n(1812);const o=JSON.parse('{"doseAndRate":[{"doseQuantity":{"value":3,"unit":"pills"}}]}');var r=n(4865),d=n(9365),u=n(816);const c={description:"doseQuantity",title:"\ud83d\udc8a doseQuantity"},l=void 0,p={id:"specs/doseQuantity/doseQuantity",title:"\ud83d\udc8a doseQuantity",description:"doseQuantity",source:"@site/docs/specs/doseQuantity/doseQuantity.mdx",sourceDirName:"specs/doseQuantity",slug:"/specs/doseQuantity/",permalink:"/fhir-dosage-utils/docs/specs/doseQuantity/",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/doseQuantity/doseQuantity.mdx",tags:[],version:"current",frontMatter:{description:"doseQuantity",title:"\ud83d\udc8a doseQuantity"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udc8a doseQuantity",permalink:"/fhir-dosage-utils/docs/category/-dosequantity"},next:{title:"\ud83d\udccf doseRange",permalink:"/fhir-dosage-utils/docs/category/-doserange"}},f={},g=[];function h(e){const t={a:"a",admonition:"admonition",p:"p",...(0,a.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(r.A,{children:[(0,s.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,s.jsx)(u.A,{dosage:o})}),(0,s.jsx)(d.A,{value:"json",label:"Dosage",children:(0,s.jsx)(i.default,{language:"json",children:JSON.stringify(o,null,2)})})]}),"\n",(0,s.jsx)(t.admonition,{type:"tip",children:(0,s.jsxs)(t.p,{children:["Don't forget you can use ",(0,s.jsx)(t.a,{href:"/api/interface/Params",children:"fromFHIRQuantityUnitToString"})," option to fit your needs"]})})]})}function x(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},816:(e,t,n)=>{n.d(t,{A:()=>r});var s=n(6540),a=n(6300),i=n(1812),o=n(4848);function r(e){let{dosage:t,config:n,i18nConfig:r}=e;const[d,u]=(0,s.useState)(""),[c,l]=(0,s.useState)(n?.language||"en"),[p,f]=(0,s.useState)(null);(0,s.useEffect)((()=>{!async function(){const e=await a.A.build(n,r);f(e)}()}),[n]),(0,s.useEffect)((()=>{!async function(){if(p){const e=p.fromDosageToText(t);u(e)}}()}),[t,p]);return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{style:{display:"flex"},children:[(0,o.jsxs)("select",{value:c,onChange:e=>l(e.target.value),style:{marginRight:"10px"},children:[(0,o.jsx)("option",{value:"en",children:"English"}),(0,o.jsx)("option",{value:"fr",children:"French"}),(0,o.jsx)("option",{value:"nl",children:"Dutch"}),(0,o.jsx)("option",{value:"de",children:"German"})]}),(0,o.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(c);const e=p.fromDosageToText(t);u(e)}},children:"Confirm"})]}),(0,o.jsx)("div",{style:{marginTop:"10px"},children:(0,o.jsx)(i.default,{language:"markup",children:(g=d,g.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[417],{6787:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>g,contentTitle:()=>l,default:()=>x,frontMatter:()=>c,metadata:()=>p,toc:()=>f});var s=n(4848),a=n(8453),i=n(1812);const o=JSON.parse('{"doseAndRate":[{"doseQuantity":{"value":3,"unit":"pills"}}]}');var r=n(4865),d=n(9365),u=n(816);const c={description:"doseQuantity",title:"\ud83d\udc8a doseQuantity"},l=void 0,p={id:"specs/doseQuantity/doseQuantity",title:"\ud83d\udc8a doseQuantity",description:"doseQuantity",source:"@site/docs/specs/doseQuantity/doseQuantity.mdx",sourceDirName:"specs/doseQuantity",slug:"/specs/doseQuantity/",permalink:"/fhir-dosage-utils/docs/specs/doseQuantity/",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/doseQuantity/doseQuantity.mdx",tags:[],version:"current",frontMatter:{description:"doseQuantity",title:"\ud83d\udc8a doseQuantity"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udc8a doseQuantity",permalink:"/fhir-dosage-utils/docs/category/-dosequantity"},next:{title:"\ud83d\udccf doseRange",permalink:"/fhir-dosage-utils/docs/category/-doserange"}},g={},f=[];function h(e){const t={a:"a",admonition:"admonition",p:"p",...(0,a.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(r.A,{children:[(0,s.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,s.jsx)(u.A,{dosage:o})}),(0,s.jsx)(d.A,{value:"json",label:"Dosage",children:(0,s.jsx)(i.default,{language:"json",children:JSON.stringify(o,null,2)})})]}),"\n",(0,s.jsx)(t.admonition,{type:"tip",children:(0,s.jsxs)(t.p,{children:["Don't forget you can use ",(0,s.jsx)(t.a,{href:"/api/interface/Params",children:"fromFHIRQuantityUnitToString"})," option to fit your needs"]})})]})}function x(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(h,{...e})}):h(e)}},816:(e,t,n)=>{n.d(t,{A:()=>r});var s=n(6540),a=n(6300),i=n(1812),o=n(4848);function r(e){let{dosage:t,config:n,i18nConfig:r}=e;const[d,u]=(0,s.useState)(""),[c,l]=(0,s.useState)(n?.language||"en"),[p,g]=(0,s.useState)(null);(0,s.useEffect)((()=>{!async function(){const e=await a.A.build(n,r);g(e)}()}),[n]),(0,s.useEffect)((()=>{!async function(){if(p){const e=p.fromDosageToText(t);u(e)}}()}),[t,p]);return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{style:{display:"flex"},children:[(0,o.jsxs)("select",{value:c,onChange:e=>l(e.target.value),style:{marginRight:"10px"},children:[(0,o.jsx)("option",{value:"en",children:"English"}),(0,o.jsx)("option",{value:"fr",children:"French"}),(0,o.jsx)("option",{value:"nl",children:"Dutch"}),(0,o.jsx)("option",{value:"de",children:"German"})]}),(0,o.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(c);const e=p.fromDosageToText(t);u(e)}},children:"Confirm"})]}),(0,o.jsx)("div",{style:{marginTop:"10px"},children:(0,o.jsx)(i.default,{language:"markup",children:(f=d,f.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var f}}}]); \ No newline at end of file diff --git a/assets/js/829c17da.d89b4bbb.js b/assets/js/829c17da.12366a01.js similarity index 78% rename from assets/js/829c17da.d89b4bbb.js rename to assets/js/829c17da.12366a01.js index 79df40c8..eaecbd69 100644 --- a/assets/js/829c17da.d89b4bbb.js +++ b/assets/js/829c17da.12366a01.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[8516],{3510:(n,t,e)=>{e.r(t),e.d(t,{assets:()=>p,contentTitle:()=>d,default:()=>h,frontMatter:()=>l,metadata:()=>x,toc:()=>f});var o=e(4848),a=e(8453),s=e(1812);const c=JSON.parse('{"timing":{"repeat":{"countMax":3}}}');var u=e(4865),i=e(9365),r=e(816);const l={description:"countMax (only)",title:"\ud83d\udd22 countMax (only)"},d=void 0,x={id:"specs/countCountMax/countMax_only",title:"\ud83d\udd22 countMax (only)",description:"countMax (only)",source:"@site/docs/specs/countCountMax/countMax_only.mdx",sourceDirName:"specs/countCountMax",slug:"/specs/countCountMax/countMax_only",permalink:"/fhir-dosage-utils/docs/specs/countCountMax/countMax_only",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/countCountMax/countMax_only.mdx",tags:[],version:"current",frontMatter:{description:"countMax (only)",title:"\ud83d\udd22 countMax (only)"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udd22 count (only)",permalink:"/fhir-dosage-utils/docs/specs/countCountMax/count"},next:{title:"\ud83d\udd22 count and countMax",permalink:"/fhir-dosage-utils/docs/specs/countCountMax/count_and_countMax"}},p={},f=[];function g(n){return(0,o.jsxs)(u.A,{children:[(0,o.jsx)(i.A,{value:"text",label:"Human readable text",default:!0,children:(0,o.jsx)(r.A,{dosage:c})}),(0,o.jsx)(i.A,{value:"json",label:"Dosage",children:(0,o.jsx)(s.default,{language:"json",children:JSON.stringify(c,null,2)})})]})}function h(n={}){const{wrapper:t}={...(0,a.R)(),...n.components};return t?(0,o.jsx)(t,{...n,children:(0,o.jsx)(g,{...n})}):g()}},816:(n,t,e)=>{e.d(t,{A:()=>u});var o=e(6540),a=e(6300),s=e(1812),c=e(4848);function u(n){let{dosage:t,config:e,i18nConfig:u}=n;const[i,r]=(0,o.useState)(""),[l,d]=(0,o.useState)(e?.language||"en"),[x,p]=(0,o.useState)(null);(0,o.useEffect)((()=>{!async function(){const n=await a.A.build(e,u);p(n)}()}),[e]),(0,o.useEffect)((()=>{!async function(){if(x){const n=x.fromDosageToText(t);r(n)}}()}),[t,x]);return(0,c.jsxs)("div",{children:[(0,c.jsxs)("div",{style:{display:"flex"},children:[(0,c.jsxs)("select",{value:l,onChange:n=>d(n.target.value),style:{marginRight:"10px"},children:[(0,c.jsx)("option",{value:"en",children:"English"}),(0,c.jsx)("option",{value:"fr",children:"French"}),(0,c.jsx)("option",{value:"nl",children:"Dutch"}),(0,c.jsx)("option",{value:"de",children:"German"})]}),(0,c.jsx)("button",{onClick:async()=>{if(x){await x.changeLanguage(l);const n=x.fromDosageToText(t);r(n)}},children:"Confirm"})]}),(0,c.jsx)("div",{style:{marginTop:"10px"},children:(0,c.jsx)(s.default,{language:"markup",children:(f=i,f.replace(/"/g,'"').replace(/&#(\d+);/g,(function(n,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(n,t){return String.fromCharCode(parseInt(t,16))})))})})]});var f}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[8516],{3510:(n,t,e)=>{e.r(t),e.d(t,{assets:()=>p,contentTitle:()=>d,default:()=>h,frontMatter:()=>l,metadata:()=>x,toc:()=>f});var o=e(4848),a=e(8453),s=e(1812);const c=JSON.parse('{"timing":{"repeat":{"countMax":3}}}');var u=e(4865),r=e(9365),i=e(816);const l={description:"countMax (only)",title:"\ud83d\udd22 countMax (only)"},d=void 0,x={id:"specs/countCountMax/countMax_only",title:"\ud83d\udd22 countMax (only)",description:"countMax (only)",source:"@site/docs/specs/countCountMax/countMax_only.mdx",sourceDirName:"specs/countCountMax",slug:"/specs/countCountMax/countMax_only",permalink:"/fhir-dosage-utils/docs/specs/countCountMax/countMax_only",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/countCountMax/countMax_only.mdx",tags:[],version:"current",frontMatter:{description:"countMax (only)",title:"\ud83d\udd22 countMax (only)"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udd22 count (only)",permalink:"/fhir-dosage-utils/docs/specs/countCountMax/count"},next:{title:"\ud83d\udd22 count and countMax",permalink:"/fhir-dosage-utils/docs/specs/countCountMax/count_and_countMax"}},p={},f=[];function g(n){return(0,o.jsxs)(u.A,{children:[(0,o.jsx)(r.A,{value:"text",label:"Human readable text",default:!0,children:(0,o.jsx)(i.A,{dosage:c})}),(0,o.jsx)(r.A,{value:"json",label:"Dosage",children:(0,o.jsx)(s.default,{language:"json",children:JSON.stringify(c,null,2)})})]})}function h(n={}){const{wrapper:t}={...(0,a.R)(),...n.components};return t?(0,o.jsx)(t,{...n,children:(0,o.jsx)(g,{...n})}):g()}},816:(n,t,e)=>{e.d(t,{A:()=>u});var o=e(6540),a=e(6300),s=e(1812),c=e(4848);function u(n){let{dosage:t,config:e,i18nConfig:u}=n;const[r,i]=(0,o.useState)(""),[l,d]=(0,o.useState)(e?.language||"en"),[x,p]=(0,o.useState)(null);(0,o.useEffect)((()=>{!async function(){const n=await a.A.build(e,u);p(n)}()}),[e]),(0,o.useEffect)((()=>{!async function(){if(x){const n=x.fromDosageToText(t);i(n)}}()}),[t,x]);return(0,c.jsxs)("div",{children:[(0,c.jsxs)("div",{style:{display:"flex"},children:[(0,c.jsxs)("select",{value:l,onChange:n=>d(n.target.value),style:{marginRight:"10px"},children:[(0,c.jsx)("option",{value:"en",children:"English"}),(0,c.jsx)("option",{value:"fr",children:"French"}),(0,c.jsx)("option",{value:"nl",children:"Dutch"}),(0,c.jsx)("option",{value:"de",children:"German"})]}),(0,c.jsx)("button",{onClick:async()=>{if(x){await x.changeLanguage(l);const n=x.fromDosageToText(t);i(n)}},children:"Confirm"})]}),(0,c.jsx)("div",{style:{marginTop:"10px"},children:(0,c.jsx)(s.default,{language:"markup",children:(f=r,f.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(n,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(n,t){return String.fromCharCode(parseInt(t,16))})))})})]});var f}}}]); \ No newline at end of file diff --git a/assets/js/87294416.e20288c2.js b/assets/js/87294416.0fab7d88.js similarity index 72% rename from assets/js/87294416.e20288c2.js rename to assets/js/87294416.0fab7d88.js index 11efc8c8..25057174 100644 --- a/assets/js/87294416.e20288c2.js +++ b/assets/js/87294416.0fab7d88.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[1250],{7326:(a,t,n)=>{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>c,default:()=>h,frontMatter:()=>l,metadata:()=>x,toc:()=>f});var e=n(4848),i=n(8453),r=n(1812);const o=JSON.parse('{"timing":{"repeat":{"durationMax":5,"durationUnit":"d"}}}');var s=n(4865),u=n(9365),d=n(816);const l={description:"durationMax only",title:"\u23f0 durationMax"},c=void 0,x={id:"specs/durationDurationMax/durationMax_only",title:"\u23f0 durationMax",description:"durationMax only",source:"@site/docs/specs/durationDurationMax/durationMax_only.mdx",sourceDirName:"specs/durationDurationMax",slug:"/specs/durationDurationMax/durationMax_only",permalink:"/fhir-dosage-utils/docs/specs/durationDurationMax/durationMax_only",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/durationDurationMax/durationMax_only.mdx",tags:[],version:"current",frontMatter:{description:"durationMax only",title:"\u23f0 durationMax"},sidebar:"tutorialSidebar",previous:{title:"\u23f0 durationDurationMax",permalink:"/fhir-dosage-utils/docs/category/-durationdurationmax"},next:{title:"\u23f0 duration and durationMax",permalink:"/fhir-dosage-utils/docs/specs/durationDurationMax/duration_and_durationMax"}},p={},f=[];function g(a){return(0,e.jsxs)(s.A,{children:[(0,e.jsx)(u.A,{value:"text",label:"Human readable text",default:!0,children:(0,e.jsx)(d.A,{dosage:o})}),(0,e.jsx)(u.A,{value:"json",label:"Dosage",children:(0,e.jsx)(r.default,{language:"json",children:JSON.stringify(o,null,2)})})]})}function h(a={}){const{wrapper:t}={...(0,i.R)(),...a.components};return t?(0,e.jsx)(t,{...a,children:(0,e.jsx)(g,{...a})}):g()}},816:(a,t,n)=>{n.d(t,{A:()=>s});var e=n(6540),i=n(6300),r=n(1812),o=n(4848);function s(a){let{dosage:t,config:n,i18nConfig:s}=a;const[u,d]=(0,e.useState)(""),[l,c]=(0,e.useState)(n?.language||"en"),[x,p]=(0,e.useState)(null);(0,e.useEffect)((()=>{!async function(){const a=await i.A.build(n,s);p(a)}()}),[n]),(0,e.useEffect)((()=>{!async function(){if(x){const a=x.fromDosageToText(t);d(a)}}()}),[t,x]);return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{style:{display:"flex"},children:[(0,o.jsxs)("select",{value:l,onChange:a=>c(a.target.value),style:{marginRight:"10px"},children:[(0,o.jsx)("option",{value:"en",children:"English"}),(0,o.jsx)("option",{value:"fr",children:"French"}),(0,o.jsx)("option",{value:"nl",children:"Dutch"}),(0,o.jsx)("option",{value:"de",children:"German"})]}),(0,o.jsx)("button",{onClick:async()=>{if(x){await x.changeLanguage(l);const a=x.fromDosageToText(t);d(a)}},children:"Confirm"})]}),(0,o.jsx)("div",{style:{marginTop:"10px"},children:(0,o.jsx)(r.default,{language:"markup",children:(f=u,f.replace(/"/g,'"').replace(/&#(\d+);/g,(function(a,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(a,t){return String.fromCharCode(parseInt(t,16))})))})})]});var f}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[1250],{7326:(a,t,n)=>{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>c,default:()=>h,frontMatter:()=>l,metadata:()=>x,toc:()=>g});var e=n(4848),r=n(8453),i=n(1812);const o=JSON.parse('{"timing":{"repeat":{"durationMax":5,"durationUnit":"d"}}}');var s=n(4865),u=n(9365),d=n(816);const l={description:"durationMax only",title:"\u23f0 durationMax"},c=void 0,x={id:"specs/durationDurationMax/durationMax_only",title:"\u23f0 durationMax",description:"durationMax only",source:"@site/docs/specs/durationDurationMax/durationMax_only.mdx",sourceDirName:"specs/durationDurationMax",slug:"/specs/durationDurationMax/durationMax_only",permalink:"/fhir-dosage-utils/docs/specs/durationDurationMax/durationMax_only",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/durationDurationMax/durationMax_only.mdx",tags:[],version:"current",frontMatter:{description:"durationMax only",title:"\u23f0 durationMax"},sidebar:"tutorialSidebar",previous:{title:"\u23f0 durationDurationMax",permalink:"/fhir-dosage-utils/docs/category/-durationdurationmax"},next:{title:"\u23f0 duration and durationMax",permalink:"/fhir-dosage-utils/docs/specs/durationDurationMax/duration_and_durationMax"}},p={},g=[];function f(a){return(0,e.jsxs)(s.A,{children:[(0,e.jsx)(u.A,{value:"text",label:"Human readable text",default:!0,children:(0,e.jsx)(d.A,{dosage:o})}),(0,e.jsx)(u.A,{value:"json",label:"Dosage",children:(0,e.jsx)(i.default,{language:"json",children:JSON.stringify(o,null,2)})})]})}function h(a={}){const{wrapper:t}={...(0,r.R)(),...a.components};return t?(0,e.jsx)(t,{...a,children:(0,e.jsx)(f,{...a})}):f()}},816:(a,t,n)=>{n.d(t,{A:()=>s});var e=n(6540),r=n(6300),i=n(1812),o=n(4848);function s(a){let{dosage:t,config:n,i18nConfig:s}=a;const[u,d]=(0,e.useState)(""),[l,c]=(0,e.useState)(n?.language||"en"),[x,p]=(0,e.useState)(null);(0,e.useEffect)((()=>{!async function(){const a=await r.A.build(n,s);p(a)}()}),[n]),(0,e.useEffect)((()=>{!async function(){if(x){const a=x.fromDosageToText(t);d(a)}}()}),[t,x]);return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{style:{display:"flex"},children:[(0,o.jsxs)("select",{value:l,onChange:a=>c(a.target.value),style:{marginRight:"10px"},children:[(0,o.jsx)("option",{value:"en",children:"English"}),(0,o.jsx)("option",{value:"fr",children:"French"}),(0,o.jsx)("option",{value:"nl",children:"Dutch"}),(0,o.jsx)("option",{value:"de",children:"German"})]}),(0,o.jsx)("button",{onClick:async()=>{if(x){await x.changeLanguage(l);const a=x.fromDosageToText(t);d(a)}},children:"Confirm"})]}),(0,o.jsx)("div",{style:{marginTop:"10px"},children:(0,o.jsx)(i.default,{language:"markup",children:(g=u,g.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(a,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(a,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}}}]); \ No newline at end of file diff --git a/assets/js/883bfc27.f4af5691.js b/assets/js/883bfc27.f74706d0.js similarity index 88% rename from assets/js/883bfc27.f4af5691.js rename to assets/js/883bfc27.f74706d0.js index 76610df8..4532cf84 100644 --- a/assets/js/883bfc27.f4af5691.js +++ b/assets/js/883bfc27.f74706d0.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[4812],{4359:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>f,contentTitle:()=>u,default:()=>x,frontMatter:()=>l,metadata:()=>p,toc:()=>g});var o=n(4848),s=n(8453),a=n(1812);const c=JSON.parse('{"timing":{"code":{"text":"Take medication in the morning on weekends and days off work"}}}');var i=n(4865),r=n(9365),d=n(816);const l={description:"code",title:"\ud83d\udcbb code"},u=void 0,p={id:"specs/code/code",title:"\ud83d\udcbb code",description:"code",source:"@site/docs/specs/code/code.mdx",sourceDirName:"specs/code",slug:"/specs/code/",permalink:"/fhir-dosage-utils/docs/specs/code/",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/code/code.mdx",tags:[],version:"current",frontMatter:{description:"code",title:"\ud83d\udcbb code"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udcbb code",permalink:"/fhir-dosage-utils/docs/category/-code"},next:{title:"\ud83d\udd22 count / countMax",permalink:"/fhir-dosage-utils/docs/category/-count--countmax"}},f={},g=[];function h(e){const t={a:"a",admonition:"admonition",p:"p",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(i.A,{children:[(0,o.jsx)(r.A,{value:"text",label:"Human readable text",default:!0,children:(0,o.jsx)(d.A,{dosage:c})}),(0,o.jsx)(r.A,{value:"json",label:"Dosage",children:(0,o.jsx)(a.default,{language:"json",children:JSON.stringify(c,null,2)})})]}),"\n",(0,o.jsx)(t.admonition,{type:"tip",children:(0,o.jsxs)(t.p,{children:["Don't forget you can use ",(0,o.jsx)(t.a,{href:"/api/interface/Params",children:"fromCodeableConceptToString"})," option to fit your needs"]})})]})}function x(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(h,{...e})}):h(e)}},816:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(6540),s=n(6300),a=n(1812),c=n(4848);function i(e){let{dosage:t,config:n,i18nConfig:i}=e;const[r,d]=(0,o.useState)(""),[l,u]=(0,o.useState)(n?.language||"en"),[p,f]=(0,o.useState)(null);(0,o.useEffect)((()=>{!async function(){const e=await s.A.build(n,i);f(e)}()}),[n]),(0,o.useEffect)((()=>{!async function(){if(p){const e=p.fromDosageToText(t);d(e)}}()}),[t,p]);return(0,c.jsxs)("div",{children:[(0,c.jsxs)("div",{style:{display:"flex"},children:[(0,c.jsxs)("select",{value:l,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,c.jsx)("option",{value:"en",children:"English"}),(0,c.jsx)("option",{value:"fr",children:"French"}),(0,c.jsx)("option",{value:"nl",children:"Dutch"}),(0,c.jsx)("option",{value:"de",children:"German"})]}),(0,c.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(l);const e=p.fromDosageToText(t);d(e)}},children:"Confirm"})]}),(0,c.jsx)("div",{style:{marginTop:"10px"},children:(0,c.jsx)(a.default,{language:"markup",children:(g=r,g.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[4812],{4359:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>f,contentTitle:()=>u,default:()=>m,frontMatter:()=>l,metadata:()=>p,toc:()=>g});var o=n(4848),s=n(8453),a=n(1812);const c=JSON.parse('{"timing":{"code":{"text":"Take medication in the morning on weekends and days off work"}}}');var i=n(4865),r=n(9365),d=n(816);const l={description:"code",title:"\ud83d\udcbb code"},u=void 0,p={id:"specs/code/code",title:"\ud83d\udcbb code",description:"code",source:"@site/docs/specs/code/code.mdx",sourceDirName:"specs/code",slug:"/specs/code/",permalink:"/fhir-dosage-utils/docs/specs/code/",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/code/code.mdx",tags:[],version:"current",frontMatter:{description:"code",title:"\ud83d\udcbb code"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udcbb code",permalink:"/fhir-dosage-utils/docs/category/-code"},next:{title:"\ud83d\udd22 count / countMax",permalink:"/fhir-dosage-utils/docs/category/-count--countmax"}},f={},g=[];function h(e){const t={a:"a",admonition:"admonition",p:"p",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(i.A,{children:[(0,o.jsx)(r.A,{value:"text",label:"Human readable text",default:!0,children:(0,o.jsx)(d.A,{dosage:c})}),(0,o.jsx)(r.A,{value:"json",label:"Dosage",children:(0,o.jsx)(a.default,{language:"json",children:JSON.stringify(c,null,2)})})]}),"\n",(0,o.jsx)(t.admonition,{type:"tip",children:(0,o.jsxs)(t.p,{children:["Don't forget you can use ",(0,o.jsx)(t.a,{href:"/api/interface/Params",children:"fromCodeableConceptToString"})," option to fit your needs"]})})]})}function m(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(h,{...e})}):h(e)}},816:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(6540),s=n(6300),a=n(1812),c=n(4848);function i(e){let{dosage:t,config:n,i18nConfig:i}=e;const[r,d]=(0,o.useState)(""),[l,u]=(0,o.useState)(n?.language||"en"),[p,f]=(0,o.useState)(null);(0,o.useEffect)((()=>{!async function(){const e=await s.A.build(n,i);f(e)}()}),[n]),(0,o.useEffect)((()=>{!async function(){if(p){const e=p.fromDosageToText(t);d(e)}}()}),[t,p]);return(0,c.jsxs)("div",{children:[(0,c.jsxs)("div",{style:{display:"flex"},children:[(0,c.jsxs)("select",{value:l,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,c.jsx)("option",{value:"en",children:"English"}),(0,c.jsx)("option",{value:"fr",children:"French"}),(0,c.jsx)("option",{value:"nl",children:"Dutch"}),(0,c.jsx)("option",{value:"de",children:"German"})]}),(0,c.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(l);const e=p.fromDosageToText(t);d(e)}},children:"Confirm"})]}),(0,c.jsx)("div",{style:{marginTop:"10px"},children:(0,c.jsx)(a.default,{language:"markup",children:(g=r,g.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}}}]); \ No newline at end of file diff --git a/assets/js/8926b418.3f205a38.js b/assets/js/8926b418.3f205a38.js new file mode 100644 index 00000000..4967c7f7 --- /dev/null +++ b/assets/js/8926b418.3f205a38.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[3663],{8264:(e,t,i)=>{i.d(t,{A:()=>r});var n=i(6540),s=i(6300),o=i(1812),a=i(4848);function r(e){let{dosages:t,config:i,i18nConfig:r}=e;const[d,c]=(0,n.useState)(""),[h,l]=(0,n.useState)(i?.language||"en"),[p,f]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await s.A.build(i,r);f(e)}()}),[i]),(0,n.useEffect)((()=>{!async function(){if(p){const e=p.fromMultipleDosageToText(t);c(e)}}()}),[t,p]);return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{style:{display:"flex"},children:[(0,a.jsxs)("select",{value:h,onChange:e=>l(e.target.value),style:{marginRight:"10px"},children:[(0,a.jsx)("option",{value:"en",children:"English"}),(0,a.jsx)("option",{value:"fr",children:"French"}),(0,a.jsx)("option",{value:"nl",children:"Dutch"}),(0,a.jsx)("option",{value:"de",children:"German"})]}),(0,a.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(h);const e=p.fromMultipleDosageToText(t);c(e)}},children:"Confirm"})]}),(0,a.jsx)("div",{style:{marginTop:"10px"},children:(0,a.jsx)(o.default,{language:"markup",children:(u=d,u.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var u}},8029:(e,t,i)=>{i.d(t,{A:()=>L});var n=i(6540),s=i(8478),o=i(5293),a=i(1569),r=i(7489),d=i(1312);const c=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$ref":"#/definitions/PlaygroundInput","definitions":{"PlaygroundInput":{"type":"array","items":{"$ref":"#/definitions/Entry"},"$id":"Input"},"Entry":{"$ref":"#/definitions/Dosage"},"Dosage":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"modifierExtension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"additionalInstruction":{"type":"array","items":{"$ref":"#/definitions/CodeableConcept"},"description":"Information about administration or preparation of the medication (e.g. \\"infuse as rapidly as possibly via intraperitoneal port\\" or \\"immediately following drug x\\") should be populated in dosage.text."},"asNeededBoolean":{"type":"boolean","description":"Can express \\"as needed\\" without a reason by setting the Boolean = True. In this case the CodeableConcept is not populated. Or you can express \\"as needed\\" with a reason by including the CodeableConcept. In this case the Boolean is assumed to be True. If you set the Boolean to False, then the dose is given according to the schedule and is not \\"prn\\" or \\"as needed\\"."},"asNeededCodeableConcept":{"$ref":"#/definitions/CodeableConcept","description":"Can express \\"as needed\\" without a reason by setting the Boolean = True. In this case the CodeableConcept is not populated. Or you can express \\"as needed\\" with a reason by including the CodeableConcept. In this case the Boolean is assumed to be True. If you set the Boolean to False, then the dose is given according to the schedule and is not \\"prn\\" or \\"as needed\\"."},"doseAndRate":{"type":"array","items":{"$ref":"#/definitions/DosageDoseAndRate"},"description":"The amount of medication administered."},"maxDosePerAdministration":{"$ref":"#/definitions/Quantity","description":"This is intended for use as an adjunct to the dosage when there is an upper cap. For example, a body surface area related dose with a maximum amount, such as 1.5 mg/m2 (maximum 2 mg) IV over 5 \u2013 10 minutes would have doseQuantity of 1.5 mg/m2 and maxDosePerAdministration of 2 mg."},"maxDosePerLifetime":{"$ref":"#/definitions/Quantity","description":"Upper limit on medication per lifetime of the patient."},"maxDosePerPeriod":{"$ref":"#/definitions/Ratio","description":"This is intended for use as an adjunct to the dosage when there is an upper cap. For example \\"2 tablets every 4 hours to a maximum of 8/day\\"."},"method":{"$ref":"#/definitions/CodeableConcept","description":"Terminologies used often pre-coordinate this term with the route and or form of administration."},"patientInstruction":{"type":"string","description":"Instructions in terms that are understood by the patient or consumer."},"route":{"$ref":"#/definitions/CodeableConcept","description":"How drug should enter body."},"sequence":{"type":"number","description":"Indicates the order in which the dosage instructions should be applied or interpreted."},"site":{"$ref":"#/definitions/CodeableConcept","description":"If the use case requires attributes from the BodySite resource (e.g. to identify and track separately) then use the standard extension [bodySite](extension-bodysite.html). May be a summary code, or a reference to a very precise definition of the location, or both."},"text":{"type":"string","description":"Free text dosage instructions e.g. SIG."},"timing":{"$ref":"#/definitions/Timing","description":"This attribute might not always be populated while the Dosage.text is expected to be populated. If both are populated, then the Dosage.text should reflect the content of the Dosage.timing."}},"additionalProperties":false,"description":"Indicates how the medication is/was taken or should be taken by the patient."},"Extension":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"url":{"type":"string","description":"The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension."},"valueBase64Binary":{"type":"string","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueBoolean":{"type":"boolean","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueCanonical":{"type":"string","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueCode":{"type":"string","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueDate":{"type":"string","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueDateTime":{"type":"string","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueDecimal":{"type":"number","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueId":{"type":"string","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueInstant":{"type":"string","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueInteger":{"type":"number","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueMarkdown":{"type":"string","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueOid":{"type":"string","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valuePositiveInt":{"type":"number","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueString":{"type":"string","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueTime":{"type":"string","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueUnsignedInt":{"type":"number","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueUri":{"type":"string","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueUrl":{"type":"string","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueUuid":{"type":"string","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueAddress":{"$ref":"#/definitions/Address","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueAge":{"$ref":"#/definitions/Age","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueAnnotation":{"$ref":"#/definitions/Annotation","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueAttachment":{"$ref":"#/definitions/Attachment","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueCodeableConcept":{"$ref":"#/definitions/CodeableConcept","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueCoding":{"$ref":"#/definitions/Coding","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueContactPoint":{"$ref":"#/definitions/ContactPoint","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueCount":{"$ref":"#/definitions/Count","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueDistance":{"$ref":"#/definitions/Distance","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueDuration":{"$ref":"#/definitions/Duration","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueHumanName":{"$ref":"#/definitions/HumanName","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueIdentifier":{"$ref":"#/definitions/Identifier","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueMoney":{"$ref":"#/definitions/Money","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valuePeriod":{"$ref":"#/definitions/Period","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueQuantity":{"$ref":"#/definitions/Quantity","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueRange":{"$ref":"#/definitions/Range","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueRatio":{"$ref":"#/definitions/Ratio","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueReference":{"$ref":"#/definitions/Reference","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueSampledData":{"$ref":"#/definitions/SampledData","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueSignature":{"$ref":"#/definitions/Signature","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueTiming":{"$ref":"#/definitions/Timing","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueContactDetail":{"$ref":"#/definitions/ContactDetail","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueContributor":{"$ref":"#/definitions/Contributor","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueDataRequirement":{"$ref":"#/definitions/DataRequirement","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueExpression":{"$ref":"#/definitions/Expression","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueParameterDefinition":{"$ref":"#/definitions/ParameterDefinition","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueRelatedArtifact":{"$ref":"#/definitions/RelatedArtifact","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueTriggerDefinition":{"$ref":"#/definitions/TriggerDefinition","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueUsageContext":{"$ref":"#/definitions/UsageContext","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueDosage":{"$ref":"#/definitions/Dosage","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueMeta":{"$ref":"#/definitions/Meta","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."}},"required":["url"],"additionalProperties":false,"description":"Optional Extension Element - found in all resources."},"Element":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."}},"additionalProperties":false,"description":"Base definition for all elements in a resource."},"Address":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"city":{"type":"string","description":"The name of the city, town, suburb, village or other community or delivery center."},"country":{"type":"string","description":"ISO 3166 3 letter codes can be used in place of a human readable country name."},"district":{"type":"string","description":"District is sometimes known as county, but in some regions \'county\' is used in place of city (municipality), so county name should be conveyed in city instead."},"line":{"type":"array","items":{"type":"string"},"description":"This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information."},"period":{"$ref":"#/definitions/Period","description":"Time period when address was/is in use."},"postalCode":{"type":"string","description":"A postal code designating a region defined by the postal service."},"state":{"type":"string","description":"Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (e.g. US 2 letter state codes)."},"text":{"type":"string","description":"Can provide both a text representation and parts. Applications updating an address SHALL ensure that when both text and parts are present, no content is included in the text that isn\'t found in a part."},"type":{"type":"string","enum":["postal","physical","both"],"description":"The definition of Address states that \\"address is intended to describe postal addresses, not physical locations\\". However, many applications track whether an address has a dual purpose of being a location that can be visited as well as being a valid delivery destination, and Postal addresses are often used as proxies for physical locations (also see the [Location](location.html#) resource)."},"use":{"type":"string","enum":["home","work","temp","old","billing"],"description":"Applications can assume that an address is current unless it explicitly says that it is temporary or old."}},"additionalProperties":false,"description":"An address expressed using postal conventions (as opposed to GPS or other location definition formats). This data type may be used to convey addresses for use in delivering mail as well as for visiting locations which might not be valid for mail delivery. There are a variety of postal address formats defined around the world."},"Period":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"end":{"type":"string","description":"The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has an end value of 2012-02-03."},"start":{"type":"string","description":"If the low element is missing, the meaning is that the low boundary is not known."}},"additionalProperties":false,"description":"A time period defined by a start and end date and optionally time."},"Age":{"type":"object","additionalProperties":false,"properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"code":{"type":"string","description":"The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system."},"comparator":{"type":"string","enum":["<","<=",">=",">"],"description":"How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \\"<\\" , then the real value is < stated value."},"system":{"type":"string","description":"The identification of the system that provides the coded form of the unit."},"unit":{"type":"string","description":"A human-readable form of the unit."},"value":{"type":"number","description":"The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books)."}},"description":"A duration of time during which an organism (or a process) has existed."},"Annotation":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"authorReference":{"$ref":"#/definitions/Reference","description":"Organization is used when there\'s no need for specific attribution as to who made the comment."},"authorString":{"type":"string","description":"Organization is used when there\'s no need for specific attribution as to who made the comment."},"text":{"type":"string","description":"The text of the annotation in markdown format."},"time":{"type":"string","description":"Indicates when this particular annotation was made."}},"required":["text"],"additionalProperties":false,"description":"A text note which also contains information about who made the statement and when."},"Reference":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"display":{"type":"string","description":"This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what\'s being referenced, not to fully describe it."},"identifier":{"$ref":"#/definitions/Identifier","description":"When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it. Reference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any)."},"reference":{"type":"string","description":"Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \\"/[type]/[id]\\" then it should be assumed that the reference is to a FHIR RESTful server."},"type":{"type":"string","description":"This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified."}},"additionalProperties":false,"description":"A reference from one resource to another."},"Identifier":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"assigner":{"$ref":"#/definitions/Reference","description":"The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization."},"period":{"$ref":"#/definitions/Period","description":"Time period during which identifier is/was valid for use."},"system":{"type":"string","description":"Identifier.system is always case sensitive."},"type":{"$ref":"#/definitions/CodeableConcept","description":"This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type."},"use":{"type":"string","enum":["usual","official","temp","secondary","old"],"description":"Applications can assume that an identifier is permanent unless it explicitly says that it is temporary."},"value":{"type":"string","description":"If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value\'s primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe."}},"additionalProperties":false,"description":"An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers."},"CodeableConcept":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"coding":{"type":"array","items":{"$ref":"#/definitions/Coding"},"description":"Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true."},"text":{"type":"string","description":"Very often the text is the same as a displayName of one of the codings."}},"additionalProperties":false,"description":"A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text."},"Coding":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"code":{"type":"string","description":"A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)."},"display":{"type":"string","description":"A representation of the meaning of the code in the system, following the rules of the system."},"system":{"type":"string","description":"The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7\'s list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously."},"userSelected":{"type":"boolean","description":"Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly \'directly chosen\' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely."},"version":{"type":"string","description":"Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date."}},"additionalProperties":false,"description":"A reference to a code defined by a terminology system."},"Attachment":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"contentType":{"type":"string","description":"Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate."},"creation":{"type":"string","description":"The date that the attachment was first created."},"data":{"type":"string","description":"The base64-encoded data SHALL be expressed in the same character set as the base resource XML or JSON."},"hash":{"type":"string","description":"The hash is calculated on the data prior to base64 encoding, if the data is based64 encoded. The hash is not intended to support digital signatures. Where protection against malicious threats a digital signature should be considered, see [Provenance.signature](provenance-definitions.html#Provenance.signature) for mechanism to protect a resource with a digital signature."},"language":{"type":"string","description":"The human language of the content. The value can be any valid value according to BCP 47."},"size":{"type":"number","description":"The number of bytes is redundant if the data is provided as a base64binary, but is useful if the data is provided as a url reference."},"title":{"type":"string","description":"A label or set of text to display in place of the data."},"url":{"type":"string","description":"If both data and url are provided, the url SHALL point to the same content as the data contains. Urls may be relative references or may reference transient locations such as a wrapping envelope using cid: though this has ramifications for using signatures. Relative URLs are interpreted relative to the service url, like a resource reference, rather than relative to the resource itself. If a URL is provided, it SHALL resolve to actual data."}},"additionalProperties":false,"description":"For referring to data content defined in other formats."},"ContactPoint":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"period":{"$ref":"#/definitions/Period","description":"Time period when the contact point was/is in use."},"rank":{"type":"number","description":"Note that rank does not necessarily follow the order in which the contacts are represented in the instance."},"system":{"type":"string","enum":["phone","fax","email","pager","url","sms","other"],"description":"Telecommunications form for contact point - what communications system is required to make use of the contact."},"use":{"type":"string","enum":["home","work","temp","old","mobile"],"description":"Applications can assume that a contact is current unless it explicitly says that it is temporary or old."},"value":{"type":"string","description":"Additional text data such as phone extension numbers, or notes about use of the contact are sometimes included in the value."}},"additionalProperties":false,"description":"Details for all kinds of technology mediated contact points for a person or organization, including telephone, email, etc."},"Count":{"type":"object","additionalProperties":false,"properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"code":{"type":"string","description":"The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system."},"comparator":{"type":"string","enum":["<","<=",">=",">"],"description":"How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \\"<\\" , then the real value is < stated value."},"system":{"type":"string","description":"The identification of the system that provides the coded form of the unit."},"unit":{"type":"string","description":"A human-readable form of the unit."},"value":{"type":"number","description":"The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books)."}},"description":"A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies."},"Distance":{"type":"object","additionalProperties":false,"properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"code":{"type":"string","description":"The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system."},"comparator":{"type":"string","enum":["<","<=",">=",">"],"description":"How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \\"<\\" , then the real value is < stated value."},"system":{"type":"string","description":"The identification of the system that provides the coded form of the unit."},"unit":{"type":"string","description":"A human-readable form of the unit."},"value":{"type":"number","description":"The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books)."}},"description":"A length - a value with a unit that is a physical distance."},"Duration":{"type":"object","additionalProperties":false,"properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"code":{"type":"string","description":"The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system."},"comparator":{"type":"string","enum":["<","<=",">=",">"],"description":"How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \\"<\\" , then the real value is < stated value."},"system":{"type":"string","description":"The identification of the system that provides the coded form of the unit."},"unit":{"type":"string","description":"A human-readable form of the unit."},"value":{"type":"number","description":"The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books)."}},"description":"A length of time."},"HumanName":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"family":{"type":"string","description":"Family Name may be decomposed into specific parts using extensions (de, nl, es related cultures)."},"given":{"type":"array","items":{"type":"string"},"description":"If only initials are recorded, they may be used in place of the full name parts. Initials may be separated into multiple given names but often aren\'t due to paractical limitations. This element is not called \\"first name\\" since given names do not always come first."},"period":{"$ref":"#/definitions/Period","description":"Indicates the period of time when this name was valid for the named person."},"prefix":{"type":"array","items":{"type":"string"},"description":"Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name."},"suffix":{"type":"array","items":{"type":"string"},"description":"Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name."},"text":{"type":"string","description":"Can provide both a text representation and parts. Applications updating a name SHALL ensure that when both text and parts are present, no content is included in the text that isn\'t found in a part."},"use":{"type":"string","enum":["usual","official","temp","nickname","anonymous","old","maiden"],"description":"Applications can assume that a name is current unless it explicitly says that it is temporary or old."}},"additionalProperties":false,"description":"A human\'s name with the ability to identify parts and usage."},"Money":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"currency":{"type":"string","description":"ISO 4217 Currency Code."},"value":{"type":"number","description":"Monetary values have their own rules for handling precision (refer to standard accounting text books)."}},"additionalProperties":false,"description":"An amount of economic utility in some recognized currency."},"Quantity":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"code":{"type":"string","description":"The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system."},"comparator":{"type":"string","enum":["<","<=",">=",">"],"description":"How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \\"<\\" , then the real value is < stated value."},"system":{"type":"string","description":"The identification of the system that provides the coded form of the unit."},"unit":{"type":"string","description":"A human-readable form of the unit."},"value":{"type":"number","description":"The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books)."}},"additionalProperties":false,"description":"A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies."},"Range":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"high":{"$ref":"#/definitions/Quantity","description":"If the high element is missing, the high boundary is not known."},"low":{"$ref":"#/definitions/Quantity","description":"If the low element is missing, the low boundary is not known."}},"additionalProperties":false,"description":"A set of ordered Quantities defined by a low and high limit."},"Ratio":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"denominator":{"$ref":"#/definitions/Quantity","description":"The value of the denominator."},"numerator":{"$ref":"#/definitions/Quantity","description":"The value of the numerator."}},"additionalProperties":false,"description":"A relationship of two Quantity values - expressed as a numerator and a denominator."},"SampledData":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"data":{"type":"string","description":"Data may be missing if it is omitted for summarization purposes. In general, data is required for any actual use of a SampledData."},"dimensions":{"type":"number","description":"If there is more than one dimension, the code for the type of data will define the meaning of the dimensions (typically ECG data)."},"factor":{"type":"number","description":"A correction factor that is applied to the sampled data points before they are added to the origin."},"lowerLimit":{"type":"number","description":"The lower limit of detection of the measured points. This is needed if any of the data points have the value \\"L\\" (lower than detection limit)."},"origin":{"$ref":"#/definitions/Quantity","description":"The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series."},"period":{"type":"number","description":"This is usually a whole number."},"upperLimit":{"type":"number","description":"The upper limit of detection of the measured points. This is needed if any of the data points have the value \\"U\\" (higher than detection limit)."}},"required":["dimensions","origin","period"],"additionalProperties":false,"description":"A series of measurements taken by a device, with upper and lower limits. There may be more than one dimension in the data."},"Signature":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"data":{"type":"string","description":"Where the signature type is an XML DigSig, the signed content is a FHIR Resource(s), the signature is of the XML form of the Resource(s) using XML-Signature (XMLDIG) \\"Detached Signature\\" form."},"onBehalfOf":{"$ref":"#/definitions/Reference","description":"The party that can\'t sign. For example a child."},"sigFormat":{"type":"string","description":"A mime type that indicates the technical format of the signature. Important mime types are application/signature+xml for X ML DigSig, application/jose for JWS, and image/* for a graphical image of a signature, etc."},"targetFormat":{"type":"string","description":"\\"xml\\", \\"json\\" and \\"ttl\\" are allowed, which describe the simple encodings described in the specification (and imply appropriate bundle support). Otherwise, mime types are legal here."},"type":{"type":"array","items":{"$ref":"#/definitions/Coding"},"description":"Examples include attesting to: authorship, correct transcription, and witness of specific event. Also known as a "Commitment Type Indication"."},"when":{"type":"string","description":"This should agree with the information in the signature."},"who":{"$ref":"#/definitions/Reference","description":"This should agree with the information in the signature."}},"required":["type","when","who"],"additionalProperties":false,"description":"A signature along with supporting context. The signature may be a digital signature that is cryptographic in nature, or some other signature acceptable to the domain. This other signature may be as simple as a graphical image representing a hand-written signature, or a signature ceremony Different signature approaches have different utilities."},"Timing":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"modifierExtension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"code":{"$ref":"#/definitions/CodeableConcept","description":"BID etc. are defined as \'at institutionally specified times\'. For example, an institution may choose that BID is \\"always at 7am and 6pm\\". If it is inappropriate for this choice to be made, the code BID should not be used. Instead, a distinct organization-specific code should be used in place of the HL7-defined BID code and/or a structured representation should be used (in this case, specifying the two event times)."},"event":{"type":"array","items":{"type":"string"},"description":"Identifies specific times when the event occurs."},"repeat":{"$ref":"#/definitions/TimingRepeat","description":"A set of rules that describe when the event is scheduled."}},"additionalProperties":false,"description":"Specifies an event that may occur multiple times. Timing schedules are used to record when things are planned, expected or requested to occur. The most common usage is in dosage instructions for medications. They are also used when planning care of various kinds, and may be used for reporting the schedule to which past regular activities were carried out."},"TimingRepeat":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"boundsDuration":{"$ref":"#/definitions/Duration","description":"Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule."},"boundsRange":{"$ref":"#/definitions/Range","description":"Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule."},"boundsPeriod":{"$ref":"#/definitions/Period","description":"Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule."},"count":{"type":"number","description":"If you have both bounds and count, then this should be understood as within the bounds period, until count times happens."},"countMax":{"type":"number","description":"If present, indicates that the count is a range - so to perform the action between [count] and [countMax] times."},"dayOfWeek":{"type":"array","items":{"type":"string","enum":["mon","tue","wed","thu","fri","sat","sun"]},"description":"If no days are specified, the action is assumed to happen every day as otherwise specified. The elements frequency and period cannot be used as well as dayOfWeek."},"duration":{"type":"number","description":"For some events the duration is part of the definition of the event (e.g. IV infusions, where the duration is implicit in the specified quantity and rate). For others, it\'s part of the timing specification (e.g. exercise)."},"durationMax":{"type":"number","description":"For some events the duration is part of the definition of the event (e.g. IV infusions, where the duration is implicit in the specified quantity and rate). For others, it\'s part of the timing specification (e.g. exercise)."},"durationUnit":{"type":"string","enum":["s","min","h","d","wk","mo","a"],"description":"The units of time for the duration, in UCUM units."},"frequency":{"type":"number","description":"The number of times to repeat the action within the specified period. If frequencyMax is present, this element indicates the lower bound of the allowed range of the frequency."},"frequencyMax":{"type":"number","description":"If present, indicates that the frequency is a range - so to repeat between [frequency] and [frequencyMax] times within the period or period range."},"offset":{"type":"number","description":"The number of minutes from the event. If the event code does not indicate whether the minutes is before or after the event, then the offset is assumed to be after the event."},"period":{"type":"number","description":"Indicates the duration of time over which repetitions are to occur; e.g. to express \\"3 times per day\\", 3 would be the frequency and \\"1 day\\" would be the period. If periodMax is present, this element indicates the lower bound of the allowed range of the period length."},"periodMax":{"type":"number","description":"If present, indicates that the period is a range from [period] to [periodMax], allowing expressing concepts such as \\"do this once every 3-5 days."},"periodUnit":{"type":"string","enum":["s","min","h","d","wk","mo","a"],"description":"The units of time for the period in UCUM units."},"timeOfDay":{"type":"array","items":{"type":"string"},"description":"When time of day is specified, it is inferred that the action happens every day (as filtered by dayofWeek) on the specified times. The elements when, frequency and period cannot be used as well as timeOfDay."},"when":{"type":"array","items":{"type":"string","enum":["MORN","MORN.early","MORN.late","NOON","AFT","AFT.early","AFT.late","EVE","EVE.early","EVE.late","NIGHT","PHS","IMD","HS","WAKE","C","CM","CD","CV","AC","ACM","ACD","ACV","PC","PCM","PCD","PCV"]},"description":"When more than one event is listed, the event is tied to the union of the specified events."}},"additionalProperties":false,"description":"A set of rules that describe when the event is scheduled."},"ContactDetail":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"name":{"type":"string","description":"If there is no named individual, the telecom information is for the organization as a whole."},"telecom":{"type":"array","items":{"$ref":"#/definitions/ContactPoint"},"description":"The contact details for the individual (if a name was provided) or the organization."}},"additionalProperties":false,"description":"Specifies contact information for a person or organization."},"Contributor":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"contact":{"type":"array","items":{"$ref":"#/definitions/ContactDetail"},"description":"Contact details to assist a user in finding and communicating with the contributor."},"name":{"type":"string","description":"The name of the individual or organization responsible for the contribution."},"type":{"type":"string","enum":["author","editor","reviewer","endorser"],"description":"The type of contributor."}},"required":["name","type"],"additionalProperties":false,"description":"A contributor to the content of a knowledge asset, including authors, editors, reviewers, and endorsers."},"DataRequirement":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"codeFilter":{"type":"array","items":{"$ref":"#/definitions/DataRequirementCodeFilter"},"description":"Code filters specify additional constraints on the data, specifying the value set of interest for a particular element of the data. Each code filter defines an additional constraint on the data, i.e. code filters are AND\'ed, not OR\'ed."},"dateFilter":{"type":"array","items":{"$ref":"#/definitions/DataRequirementDateFilter"},"description":"Date filters specify additional constraints on the data in terms of the applicable date range for specific elements. Each date filter specifies an additional constraint on the data, i.e. date filters are AND\'ed, not OR\'ed."},"limit":{"type":"number","description":"This element can be used in combination with the sort element to specify quota requirements such as \\"the most recent 5\\" or \\"the highest 5\\"."},"mustSupport":{"type":"array","items":{"type":"string"},"description":"Indicates that specific elements of the type are referenced by the knowledge module and must be supported by the consumer in order to obtain an effective evaluation. This does not mean that a value is required for this element, only that the consuming system must understand the element and be able to provide values for it if they are available. The value of mustSupport SHALL be a FHIRPath resolveable on the type of the DataRequirement. The path SHALL consist only of identifiers, constant indexers, and .resolve() (see the [Simple FHIRPath Profile](fhirpath.html#simple) for full details)."},"profile":{"type":"array","items":{"type":"string"},"description":"The profile of the required data, specified as the uri of the profile definition."},"sort":{"type":"array","items":{"$ref":"#/definitions/DataRequirementSort"},"description":"This element can be used in combination with the sort element to specify quota requirements such as \\"the most recent 5\\" or \\"the highest 5\\". When multiple sorts are specified, they are applied in the order they appear in the resource."},"subjectCodeableConcept":{"$ref":"#/definitions/CodeableConcept","description":"The subject of a data requirement is critical, as the data being specified is determined with respect to a particular subject. This corresponds roughly to the notion of a Compartment in that it limits what data is available based on its relationship to the subject. In CQL, this corresponds to the context declaration."},"subjectReference":{"$ref":"#/definitions/Reference","description":"The subject of a data requirement is critical, as the data being specified is determined with respect to a particular subject. This corresponds roughly to the notion of a Compartment in that it limits what data is available based on its relationship to the subject. In CQL, this corresponds to the context declaration."},"type":{"type":"string","description":"The type of the required data, specified as the type name of a resource. For profiles, this value is set to the type of the base resource of the profile."}},"required":["type"],"additionalProperties":false,"description":"Describes a required data item for evaluation in terms of the type of data, and optional code or date-based filters of the data."},"DataRequirementCodeFilter":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"code":{"type":"array","items":{"$ref":"#/definitions/Coding"},"description":"The codes for the code filter. If values are given, the filter will return only those data items for which the code-valued attribute specified by the path has a value that is one of the specified codes. If codes are specified in addition to a value set, the filter returns items matching a code in the value set or one of the specified codes."},"path":{"type":"string","description":"The path attribute contains a [Simple FHIRPath Subset](fhirpath.html#simple) that allows path traversal, but not calculation."},"searchParam":{"type":"string","description":"A token parameter that refers to a search parameter defined on the specified type of the DataRequirement, and which searches on elements of type code, Coding, or CodeableConcept."},"valueSet":{"type":"string","description":"The valueset for the code filter. The valueSet and code elements are additive. If valueSet is specified, the filter will return only those data items for which the value of the code-valued element specified in the path is a member of the specified valueset."}},"additionalProperties":false,"description":"Code filters specify additional constraints on the data, specifying the value set of interest for a particular element of the data. Each code filter defines an additional constraint on the data, i.e. code filters are AND\'ed, not OR\'ed."},"DataRequirementDateFilter":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"path":{"type":"string","description":"The path attribute contains a [Simple FHIR Subset](fhirpath.html#simple) that allows path traversal, but not calculation."},"searchParam":{"type":"string","description":"A date parameter that refers to a search parameter defined on the specified type of the DataRequirement, and which searches on elements of type date, dateTime, Period, Schedule, or Timing."},"valueDateTime":{"type":"string","description":"The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime. If a Duration is specified, the filter will return only those data items that fall within Duration before now."},"valuePeriod":{"$ref":"#/definitions/Period","description":"The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime. If a Duration is specified, the filter will return only those data items that fall within Duration before now."},"valueDuration":{"$ref":"#/definitions/Duration","description":"The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime. If a Duration is specified, the filter will return only those data items that fall within Duration before now."}},"additionalProperties":false,"description":"Date filters specify additional constraints on the data in terms of the applicable date range for specific elements. Each date filter specifies an additional constraint on the data, i.e. date filters are AND\'ed, not OR\'ed."},"DataRequirementSort":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"direction":{"type":"string","enum":["ascending","descending"],"description":"The direction of the sort, ascending or descending."},"path":{"type":"string","description":"The attribute of the sort. The specified path must be resolvable from the type of the required data. The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements. Note that the index must be an integer constant."}},"required":["direction","path"],"additionalProperties":false,"description":"This element can be used in combination with the sort element to specify quota requirements such as \\"the most recent 5\\" or \\"the highest 5\\". When multiple sorts are specified, they are applied in the order they appear in the resource."},"Expression":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"description":{"type":"string","description":"A brief, natural language description of the condition that effectively communicates the intended semantics."},"expression":{"type":"string","description":"An expression in the specified language that returns a value."},"language":{"type":"string","description":"The media type of the language for the expression."},"name":{"type":"string","description":"A short name assigned to the expression to allow for multiple reuse of the expression in the context where it is defined."},"reference":{"type":"string","description":"If both a reference and an expression is found, the reference SHALL point to the same expression."}},"required":["language"],"additionalProperties":false,"description":"A expression that is evaluated in a specified context and returns a value. The context of use of the expression must specify the context in which the expression is evaluated, and how the result of the expression is used."},"ParameterDefinition":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"documentation":{"type":"string","description":"A brief discussion of what the parameter is for and how it is used by the module."},"max":{"type":"string","description":"The maximum number of times this element is permitted to appear in the request or response."},"min":{"type":"number","description":"The minimum number of times this parameter SHALL appear in the request or response."},"name":{"type":"string","description":"The name of the parameter used to allow access to the value of the parameter in evaluation contexts."},"profile":{"type":"string","description":"If specified, this indicates a profile that the input data must conform to, or that the output data will conform to."},"type":{"type":"string","description":"The type of the parameter."},"use":{"type":"string","enum":["in","out"],"description":"Whether the parameter is input or output for the module."}},"required":["type","use"],"additionalProperties":false,"description":"The parameters to the module. This collection specifies both the input and output parameters. Input parameters are provided by the caller as part of the $evaluate operation. Output parameters are included in the GuidanceResponse."},"RelatedArtifact":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"citation":{"type":"string","description":"Additional structured information about citations should be captured as extensions."},"display":{"type":"string","description":"A brief description of the document or knowledge resource being referenced, suitable for display to a consumer."},"document":{"$ref":"#/definitions/Attachment","description":"The document being referenced, represented as an attachment. This is exclusive with the resource element."},"label":{"type":"string","description":"A short label that can be used to reference the citation from elsewhere in the containing artifact, such as a footnote index."},"resource":{"type":"string","description":"If the type is predecessor, this is a reference to the succeeding knowledge resource. If the type is successor, this is a reference to the prior knowledge resource."},"type":{"type":"string","enum":["documentation","justification","citation","predecessor","successor","derived-from","depends-on","composed-of"],"description":"The type of relationship to the related artifact."},"url":{"type":"string","description":"If a document or resource element is present, this element SHALL NOT be provided (use the url or reference in the Attachment or resource reference)."}},"required":["type"],"additionalProperties":false,"description":"Related artifacts such as additional documentation, justification, or bibliographic references."},"TriggerDefinition":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"condition":{"$ref":"#/definitions/Expression","description":"This element can be only be specified for data type triggers and provides additional semantics for the trigger. The context available within the condition is based on the type of data event. For all events, the current resource will be available as context. In addition, for modification events, the previous resource will also be available. The expression may be inlined, or may be a simple absolute URI, which is a reference to a named expression within a logic library referenced by a library element or extension within the containing resource. If the expression is a FHIR Path expression, it evaluates in the context of a resource of one of the type identified in the data requirement, and may also refer to the variable %previous for delta comparisons on events of type data-changed, data-modified, and data-deleted which will always have the same type."},"data":{"type":"array","items":{"$ref":"#/definitions/DataRequirement"},"description":"This element shall be present for any data type trigger."},"name":{"type":"string","description":"An event name can be provided for all event types, but is required for named events. If a name is provided for a type other than named events, it is considered to be a shorthand for the semantics described by the formal description of the event."},"timingTiming":{"$ref":"#/definitions/Timing","description":"The timing of the event (if this is a periodic trigger)."},"timingReference":{"$ref":"#/definitions/Reference","description":"The timing of the event (if this is a periodic trigger)."},"timingDate":{"type":"string","description":"The timing of the event (if this is a periodic trigger)."},"timingDateTime":{"type":"string","description":"The timing of the event (if this is a periodic trigger)."},"type":{"type":"string","enum":["named-event","periodic","data-changed","data-added","data-modified","data-removed","data-accessed","data-access-ended"],"description":"The type of triggering event."}},"required":["type"],"additionalProperties":false,"description":"A description of a triggering event. Triggering events can be named events, data events, or periodic, as determined by the type element."},"UsageContext":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"code":{"$ref":"#/definitions/Coding","description":"A code that identifies the type of context being specified by this usage context."},"valueCodeableConcept":{"$ref":"#/definitions/CodeableConcept","description":"A value that defines the context specified in this context of use. The interpretation of the value is defined by the code."},"valueQuantity":{"$ref":"#/definitions/Quantity","description":"A value that defines the context specified in this context of use. The interpretation of the value is defined by the code."},"valueRange":{"$ref":"#/definitions/Range","description":"A value that defines the context specified in this context of use. The interpretation of the value is defined by the code."},"valueReference":{"$ref":"#/definitions/Reference","description":"A value that defines the context specified in this context of use. The interpretation of the value is defined by the code."}},"required":["code"],"additionalProperties":false,"description":"Specifies clinical/business/etc. metadata that can be used to retrieve, index and/or categorize an artifact. This metadata can either be specific to the applicable population (e.g., age category, DRG) or the specific context of care (e.g., venue, care setting, provider of care)."},"Meta":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"lastUpdated":{"type":"string","description":"This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http.html#read) interaction."},"profile":{"type":"array","items":{"type":"string"},"description":"It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set."},"security":{"type":"array","items":{"$ref":"#/definitions/Coding"},"description":"The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored."},"source":{"type":"string","description":"In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. This element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL."},"tag":{"type":"array","items":{"$ref":"#/definitions/Coding"},"description":"The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored."},"versionId":{"type":"string","description":"The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes."}},"additionalProperties":false,"description":"The metadata about a resource. This is content in the resource that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource."},"DosageDoseAndRate":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"doseRange":{"$ref":"#/definitions/Range","description":"Note that this specifies the quantity of the specified medication, not the quantity for each active ingredient(s). Each ingredient amount can be communicated in the Medication resource. For example, if one wants to communicate that a tablet was 375 mg, where the dose was one tablet, you can use the Medication resource to document that the tablet was comprised of 375 mg of drug XYZ. Alternatively if the dose was 375 mg, then you may only need to use the Medication resource to indicate this was a tablet. If the example were an IV such as dopamine and you wanted to communicate that 400mg of dopamine was mixed in 500 ml of some IV solution, then this would all be communicated in the Medication resource. If the administration is not intended to be instantaneous (rate is present or timing has a duration), this can be specified to convey the total amount to be administered over the period of time as indicated by the schedule e.g. 500 ml in dose, with timing used to convey that this should be done over 4 hours."},"doseQuantity":{"$ref":"#/definitions/Quantity","description":"Note that this specifies the quantity of the specified medication, not the quantity for each active ingredient(s). Each ingredient amount can be communicated in the Medication resource. For example, if one wants to communicate that a tablet was 375 mg, where the dose was one tablet, you can use the Medication resource to document that the tablet was comprised of 375 mg of drug XYZ. Alternatively if the dose was 375 mg, then you may only need to use the Medication resource to indicate this was a tablet. If the example were an IV such as dopamine and you wanted to communicate that 400mg of dopamine was mixed in 500 ml of some IV solution, then this would all be communicated in the Medication resource. If the administration is not intended to be instantaneous (rate is present or timing has a duration), this can be specified to convey the total amount to be administered over the period of time as indicated by the schedule e.g. 500 ml in dose, with timing used to convey that this should be done over 4 hours."},"rateRatio":{"$ref":"#/definitions/Ratio","description":"It is possible to supply both a rate and a doseQuantity to provide full details about how the medication is to be administered and supplied. If the rate is intended to change over time, depending on local rules/regulations, each change should be captured as a new version of the MedicationRequest with an updated rate, or captured with a new MedicationRequest with the new rate. It is possible to specify a rate over time (for example, 100 ml/hour) using either the rateRatio and rateQuantity. The rateQuantity approach requires systems to have the capability to parse UCUM grammer where ml/hour is included rather than a specific ratio where the time is specified as the denominator. Where a rate such as 500ml over 2 hours is specified, the use of rateRatio may be more semantically correct than specifying using a rateQuantity of 250 mg/hour."},"rateRange":{"$ref":"#/definitions/Range","description":"It is possible to supply both a rate and a doseQuantity to provide full details about how the medication is to be administered and supplied. If the rate is intended to change over time, depending on local rules/regulations, each change should be captured as a new version of the MedicationRequest with an updated rate, or captured with a new MedicationRequest with the new rate. It is possible to specify a rate over time (for example, 100 ml/hour) using either the rateRatio and rateQuantity. The rateQuantity approach requires systems to have the capability to parse UCUM grammer where ml/hour is included rather than a specific ratio where the time is specified as the denominator. Where a rate such as 500ml over 2 hours is specified, the use of rateRatio may be more semantically correct than specifying using a rateQuantity of 250 mg/hour."},"rateQuantity":{"$ref":"#/definitions/Quantity","description":"It is possible to supply both a rate and a doseQuantity to provide full details about how the medication is to be administered and supplied. If the rate is intended to change over time, depending on local rules/regulations, each change should be captured as a new version of the MedicationRequest with an updated rate, or captured with a new MedicationRequest with the new rate. It is possible to specify a rate over time (for example, 100 ml/hour) using either the rateRatio and rateQuantity. The rateQuantity approach requires systems to have the capability to parse UCUM grammer where ml/hour is included rather than a specific ratio where the time is specified as the denominator. Where a rate such as 500ml over 2 hours is specified, the use of rateRatio may be more semantically correct than specifying using a rateQuantity of 250 mg/hour."},"type":{"$ref":"#/definitions/CodeableConcept","description":"The kind of dose or rate specified, for example, ordered or calculated."}},"additionalProperties":false,"description":"The amount of medication administered."}}}'),h=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$ref":"#/definitions/Config","definitions":{"Config":{"type":"object","properties":{"language":{"type":"string","enum":["en","fr","nl","de"],"description":"To set up the language"},"displayOrder":{"type":"array","items":{"type":"string","enum":["method","doseQuantity","doseRange","rateRatio","rateQuantity","rateRange","durationDurationMax","frequencyFrequencyMax","periodPeriodMax","frequencyFrequencyMaxPeriodPeriodMax","offsetWhen","dayOfWeek","timeOfDay","route","site","asNeeded","boundsDuration","boundsPeriod","boundsRange","countCountMax","event","code","maxDosePerPeriod","maxDosePerAdministration","maxDosePerLifetime","additionalInstruction","patientInstruction","text","extension"]},"description":"Control the display order used by the algorithm Useful when you want to turn on / off some specific rules for some reason"},"displaySeparator":{"type":"string","description":"Override separator between each part of \\"Dosage\\""},"dateTimeFormatOptions":{"$ref":"#/definitions/Intl.DateTimeFormatOptions","description":"To control the formatting of dateTime objects. If not provided, will use the defaults according locale e.g. \\"20/01/2024\\""}},"additionalProperties":false,"$id":"Config"},"Intl.DateTimeFormatOptions":{"type":"object","properties":{"localeMatcher":{"type":"string","enum":["best fit","lookup"]},"weekday":{"type":"string","enum":["long","short","narrow"]},"era":{"type":"string","enum":["long","short","narrow"]},"year":{"type":"string","enum":["numeric","2-digit"]},"month":{"type":"string","enum":["numeric","2-digit","long","short","narrow"]},"day":{"type":"string","enum":["numeric","2-digit"]},"hour":{"type":"string","enum":["numeric","2-digit"]},"minute":{"type":"string","enum":["numeric","2-digit"]},"second":{"type":"string","enum":["numeric","2-digit"]},"timeZoneName":{"type":"string","enum":["short","long","shortOffset","longOffset","shortGeneric","longGeneric"]},"formatMatcher":{"type":"string","enum":["best fit","basic"]},"hour12":{"type":"boolean"},"timeZone":{"type":"string"}},"additionalProperties":false}}}');var l=i(4848);const p=["file:///input-editor"],f=["file:///config-editor"];function u(){return(0,l.jsx)("div",{children:(0,l.jsx)(d.A,{values:{id:"json-schema.labels.loading"},children:"Loading ...."})})}function m(e){const{error:t}=e;return(0,l.jsx)(d.A,{values:{id:"json-schema.labels.errorOccurred",message:t.message},children:"Something bad happens : {message}"})}function y(e){let{error:t,tryAgain:i}=e;return(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{children:(0,l.jsx)(m,{error:t})}),(0,l.jsx)("button",{onClick:i,children:"Try Again!"})]})}function g(e,t){let i=e;return"boolean"==typeof i?`https://docusaurus.io/json-viewer/schema_${t}.json`:void 0!==i.$id?i.$id:`https://docusaurus.io/json-viewer/schema_${i.$ref||t}.json`}function b(e){const{...t}=e;return(0,l.jsx)(a.Ay,{height:"90vh",language:"json",editorWillMount:e=>{e.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0,schemas:[c,h].map(((e,t)=>({uri:g(e,t),fileMatch:0===t?p:f,schema:e})))})},...t})}function x(e){return(0,l.jsx)(s.A,{fallback:(0,l.jsx)(u,{}),children:()=>(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(r.A,{fallback:e=>(0,l.jsx)(y,{...e}),children:(0,l.jsx)(b,{...e})})})})}var v=i(1622);const w=(0,n.createContext)({state:{data:"{}",config:"{}",inputSchemaRef:void 0,configSchemaRef:void 0},updateState:()=>{}}),T=()=>(0,n.useContext)(w),j=w.Provider;function I(){const{state:{data:e},updateState:t}=T(),{colorMode:i}=(0,o.G)();return(0,l.jsx)(v.A,{summary:(0,l.jsx)("summary",{children:"Input"}),open:!0,children:(0,l.jsx)(x,{value:e,height:"70vh",theme:"dark"===i?"vs-dark":"vs",editorDidMount:e=>{t({inputSchemaRef:e})},uri:e=>{let{Uri:t}=e;return t.parse("input-editor")},onChange:e=>{t({data:e})}})})}function R(){return(0,l.jsx)(s.A,{fallback:(0,l.jsx)("div",{children:"Loading..."}),children:()=>(0,l.jsx)(I,{})})}function C(){const{state:{config:e},updateState:t}=T(),{colorMode:i}=(0,o.G)();return(0,l.jsx)(v.A,{summary:(0,l.jsx)("summary",{children:"Config"}),open:!1,children:(0,l.jsx)(x,{value:e,height:"70vh",theme:"dark"===i?"vs-dark":"vs",uri:e=>{let{Uri:t}=e;return t.parse("config-editor")},editorDidMount:e=>{t({configSchemaRef:e})},onChange:e=>{t({config:e})}})})}function $(){return(0,l.jsx)(s.A,{fallback:(0,l.jsx)("div",{children:"Loading..."}),children:()=>(0,l.jsx)(C,{})})}function A(){return(0,l.jsxs)("div",{style:{boxSizing:"border-box",width:"50%"},children:[(0,l.jsxs)("div",{style:{display:"flex",justifyContent:"flex-start",alignItems:"center",padding:"8px",backgroundColor:"inherit"},children:[(0,l.jsx)("h1",{children:"Setup"}),"\xa0",(0,l.jsx)("div",{style:{flex:1}})]}),(0,l.jsx)(R,{}),(0,l.jsx)($,{})]})}function q(){return(0,l.jsx)(s.A,{fallback:(0,l.jsx)("div",{children:"Loading..."}),children:()=>(0,l.jsx)(A,{})})}var E=i(8264);function D(e,t){try{return JSON.parse(e)}catch(i){return t}}function P(){return n.useLayoutEffect((()=>{const e=document.createElement("style");return e.innerHTML="\n .loading-animation {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n }\n\n .spinner {\n width: 50px;\n height: 50px;\n border: 3px solid #ccc;\n border-top-color: #333;\n border-radius: 50%;\n animation: spin 1s infinite linear; /* Infinite animation */\n }\n\n @keyframes spin {\n to {\n transform: rotate(360deg);\n }\n }\n ",document.head.appendChild(e),()=>{document.head.removeChild(e)}}),[]),(0,l.jsxs)("div",{className:"loading-animation",children:[(0,l.jsx)("div",{className:"spinner"}),(0,l.jsx)("p",{children:"Loading..."})]})}function S(){const{state:{data:e,config:t}}=T(),i=D(e,[]),n=D(t,{});return(0,l.jsxs)("div",{style:{boxSizing:"border-box",width:"50%"},children:[(0,l.jsxs)("div",{style:{display:"flex",justifyContent:"flex-start",alignItems:"center",padding:"8px",backgroundColor:"inherit"},children:[(0,l.jsx)("h1",{children:"Output"}),"\xa0",(0,l.jsx)("div",{style:{flex:1}})]}),(0,l.jsxs)("div",{children:[i.length>0&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(E.A,{dosages:i,config:n})}),0===i.length&&(0,l.jsx)(P,{})]})]})}function U(){return(0,l.jsx)(s.A,{fallback:(0,l.jsx)("div",{children:"Loading..."}),children:()=>(0,l.jsx)(S,{})})}const F=JSON.parse('[{"timing":{"repeat":{"frequency":1,"period":8,"periodUnit":"h"}}}]'),H=JSON.parse('{"dateTimeFormatOptions":{},"displayOrder":["method","doseQuantity","doseRange","rateRatio","rateQuantity","rateRange","durationDurationMax","frequencyFrequencyMaxPeriodPeriodMax","offsetWhen","dayOfWeek","timeOfDay","route","site","asNeeded","boundsDuration","boundsPeriod","boundsRange","countCountMax","event","code","maxDosePerPeriod","maxDosePerAdministration","maxDosePerLifetime","additionalInstruction","patientInstruction"],"displaySeparator":" - "}');function M(){const{state:{config:e,data:t}}=T();return(0,l.jsx)("div",{style:{display:"flex",flexDirection:"column",overflowY:"hidden",overflowX:"hidden"},children:(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between"},children:[(0,l.jsx)(q,{}),(0,l.jsx)(U,{},e+t)]})})}function k(){const[e,t]=n.useState({data:JSON.stringify(F,null,"\t"),config:JSON.stringify(H,null,"\t")});return(0,l.jsx)(j,{value:{state:e,updateState:function(e){t((t=>({...t,...e})))}},children:(0,l.jsx)(M,{})})}function L(){return(0,l.jsx)(s.A,{fallback:(0,l.jsx)("div",{children:"Loading..."}),children:()=>(0,l.jsx)(k,{})})}},4190:(e,t,i)=>{i.r(t),i.d(t,{default:()=>d});i(6540);var n=i(7747),s=i(8478),o=i(7489),a=i(4848);function r(){return(0,a.jsx)(o.A,{fallback:e=>{let{error:t,tryAgain:i}=e;return(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{children:["Playground component crashed because of error: ",t.message,"."]}),(0,a.jsx)("button",{onClick:i,children:"Try Again!"})]})},children:(0,a.jsx)(s.A,{fallback:(0,a.jsx)("div",{children:"Loading..."}),children:()=>{const e=i(8029).A;return(0,a.jsx)(e,{})}})})}function d(){return(0,a.jsx)(n.A,{title:"Playground",description:"Playground of docusaurus-json-schema-plugin",children:(0,a.jsx)(r,{})})}}}]); \ No newline at end of file diff --git a/assets/js/8926b418.6a4df707.js b/assets/js/8926b418.6a4df707.js deleted file mode 100644 index bb956917..00000000 --- a/assets/js/8926b418.6a4df707.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[3663],{8264:(e,t,i)=>{i.d(t,{A:()=>r});var n=i(6540),s=i(6300),o=i(1812),a=i(4848);function r(e){let{dosages:t,config:i,i18nConfig:r}=e;const[d,c]=(0,n.useState)(""),[h,l]=(0,n.useState)(i?.language||"en"),[p,f]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await s.A.build(i,r);f(e)}()}),[i]),(0,n.useEffect)((()=>{!async function(){if(p){const e=p.fromMultipleDosageToText(t);c(e)}}()}),[t,p]);return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{style:{display:"flex"},children:[(0,a.jsxs)("select",{value:h,onChange:e=>l(e.target.value),style:{marginRight:"10px"},children:[(0,a.jsx)("option",{value:"en",children:"English"}),(0,a.jsx)("option",{value:"fr",children:"French"}),(0,a.jsx)("option",{value:"nl",children:"Dutch"}),(0,a.jsx)("option",{value:"de",children:"German"})]}),(0,a.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(h);const e=p.fromMultipleDosageToText(t);c(e)}},children:"Confirm"})]}),(0,a.jsx)("div",{style:{marginTop:"10px"},children:(0,a.jsx)(o.default,{language:"markup",children:(u=d,u.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var u}},8029:(e,t,i)=>{i.d(t,{A:()=>L});var n=i(6540),s=i(8478),o=i(5293),a=i(1569),r=i(7489),d=i(1312);const c=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$ref":"#/definitions/PlaygroundInput","definitions":{"PlaygroundInput":{"type":"array","items":{"$ref":"#/definitions/Entry"},"$id":"Input"},"Entry":{"$ref":"#/definitions/Dosage"},"Dosage":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"modifierExtension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"additionalInstruction":{"type":"array","items":{"$ref":"#/definitions/CodeableConcept"},"description":"Information about administration or preparation of the medication (e.g. \\"infuse as rapidly as possibly via intraperitoneal port\\" or \\"immediately following drug x\\") should be populated in dosage.text."},"asNeededBoolean":{"type":"boolean","description":"Can express \\"as needed\\" without a reason by setting the Boolean = True. In this case the CodeableConcept is not populated. Or you can express \\"as needed\\" with a reason by including the CodeableConcept. In this case the Boolean is assumed to be True. If you set the Boolean to False, then the dose is given according to the schedule and is not \\"prn\\" or \\"as needed\\"."},"asNeededCodeableConcept":{"$ref":"#/definitions/CodeableConcept","description":"Can express \\"as needed\\" without a reason by setting the Boolean = True. In this case the CodeableConcept is not populated. Or you can express \\"as needed\\" with a reason by including the CodeableConcept. In this case the Boolean is assumed to be True. If you set the Boolean to False, then the dose is given according to the schedule and is not \\"prn\\" or \\"as needed\\"."},"doseAndRate":{"type":"array","items":{"$ref":"#/definitions/DosageDoseAndRate"},"description":"The amount of medication administered."},"maxDosePerAdministration":{"$ref":"#/definitions/Quantity","description":"This is intended for use as an adjunct to the dosage when there is an upper cap. For example, a body surface area related dose with a maximum amount, such as 1.5 mg/m2 (maximum 2 mg) IV over 5 \u2013 10 minutes would have doseQuantity of 1.5 mg/m2 and maxDosePerAdministration of 2 mg."},"maxDosePerLifetime":{"$ref":"#/definitions/Quantity","description":"Upper limit on medication per lifetime of the patient."},"maxDosePerPeriod":{"$ref":"#/definitions/Ratio","description":"This is intended for use as an adjunct to the dosage when there is an upper cap. For example \\"2 tablets every 4 hours to a maximum of 8/day\\"."},"method":{"$ref":"#/definitions/CodeableConcept","description":"Terminologies used often pre-coordinate this term with the route and or form of administration."},"patientInstruction":{"type":"string","description":"Instructions in terms that are understood by the patient or consumer."},"route":{"$ref":"#/definitions/CodeableConcept","description":"How drug should enter body."},"sequence":{"type":"number","description":"Indicates the order in which the dosage instructions should be applied or interpreted."},"site":{"$ref":"#/definitions/CodeableConcept","description":"If the use case requires attributes from the BodySite resource (e.g. to identify and track separately) then use the standard extension [bodySite](extension-bodysite.html). May be a summary code, or a reference to a very precise definition of the location, or both."},"text":{"type":"string","description":"Free text dosage instructions e.g. SIG."},"timing":{"$ref":"#/definitions/Timing","description":"This attribute might not always be populated while the Dosage.text is expected to be populated. If both are populated, then the Dosage.text should reflect the content of the Dosage.timing."}},"additionalProperties":false,"description":"Indicates how the medication is/was taken or should be taken by the patient."},"Extension":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"url":{"type":"string","description":"The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension."},"valueBase64Binary":{"type":"string","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueBoolean":{"type":"boolean","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueCanonical":{"type":"string","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueCode":{"type":"string","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueDate":{"type":"string","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueDateTime":{"type":"string","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueDecimal":{"type":"number","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueId":{"type":"string","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueInstant":{"type":"string","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueInteger":{"type":"number","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueMarkdown":{"type":"string","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueOid":{"type":"string","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valuePositiveInt":{"type":"number","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueString":{"type":"string","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueTime":{"type":"string","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueUnsignedInt":{"type":"number","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueUri":{"type":"string","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueUrl":{"type":"string","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueUuid":{"type":"string","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueAddress":{"$ref":"#/definitions/Address","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueAge":{"$ref":"#/definitions/Age","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueAnnotation":{"$ref":"#/definitions/Annotation","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueAttachment":{"$ref":"#/definitions/Attachment","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueCodeableConcept":{"$ref":"#/definitions/CodeableConcept","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueCoding":{"$ref":"#/definitions/Coding","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueContactPoint":{"$ref":"#/definitions/ContactPoint","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueCount":{"$ref":"#/definitions/Count","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueDistance":{"$ref":"#/definitions/Distance","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueDuration":{"$ref":"#/definitions/Duration","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueHumanName":{"$ref":"#/definitions/HumanName","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueIdentifier":{"$ref":"#/definitions/Identifier","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueMoney":{"$ref":"#/definitions/Money","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valuePeriod":{"$ref":"#/definitions/Period","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueQuantity":{"$ref":"#/definitions/Quantity","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueRange":{"$ref":"#/definitions/Range","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueRatio":{"$ref":"#/definitions/Ratio","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueReference":{"$ref":"#/definitions/Reference","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueSampledData":{"$ref":"#/definitions/SampledData","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueSignature":{"$ref":"#/definitions/Signature","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueTiming":{"$ref":"#/definitions/Timing","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueContactDetail":{"$ref":"#/definitions/ContactDetail","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueContributor":{"$ref":"#/definitions/Contributor","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueDataRequirement":{"$ref":"#/definitions/DataRequirement","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueExpression":{"$ref":"#/definitions/Expression","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueParameterDefinition":{"$ref":"#/definitions/ParameterDefinition","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueRelatedArtifact":{"$ref":"#/definitions/RelatedArtifact","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueTriggerDefinition":{"$ref":"#/definitions/TriggerDefinition","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueUsageContext":{"$ref":"#/definitions/UsageContext","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueDosage":{"$ref":"#/definitions/Dosage","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."},"valueMeta":{"$ref":"#/definitions/Meta","description":"Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list)."}},"required":["url"],"additionalProperties":false,"description":"Optional Extension Element - found in all resources."},"Element":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."}},"additionalProperties":false,"description":"Base definition for all elements in a resource."},"Address":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"city":{"type":"string","description":"The name of the city, town, suburb, village or other community or delivery center."},"country":{"type":"string","description":"ISO 3166 3 letter codes can be used in place of a human readable country name."},"district":{"type":"string","description":"District is sometimes known as county, but in some regions \'county\' is used in place of city (municipality), so county name should be conveyed in city instead."},"line":{"type":"array","items":{"type":"string"},"description":"This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information."},"period":{"$ref":"#/definitions/Period","description":"Time period when address was/is in use."},"postalCode":{"type":"string","description":"A postal code designating a region defined by the postal service."},"state":{"type":"string","description":"Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (e.g. US 2 letter state codes)."},"text":{"type":"string","description":"Can provide both a text representation and parts. Applications updating an address SHALL ensure that when both text and parts are present, no content is included in the text that isn\'t found in a part."},"type":{"type":"string","enum":["postal","physical","both"],"description":"The definition of Address states that \\"address is intended to describe postal addresses, not physical locations\\". However, many applications track whether an address has a dual purpose of being a location that can be visited as well as being a valid delivery destination, and Postal addresses are often used as proxies for physical locations (also see the [Location](location.html#) resource)."},"use":{"type":"string","enum":["home","work","temp","old","billing"],"description":"Applications can assume that an address is current unless it explicitly says that it is temporary or old."}},"additionalProperties":false,"description":"An address expressed using postal conventions (as opposed to GPS or other location definition formats). This data type may be used to convey addresses for use in delivering mail as well as for visiting locations which might not be valid for mail delivery. There are a variety of postal address formats defined around the world."},"Period":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"end":{"type":"string","description":"The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has an end value of 2012-02-03."},"start":{"type":"string","description":"If the low element is missing, the meaning is that the low boundary is not known."}},"additionalProperties":false,"description":"A time period defined by a start and end date and optionally time."},"Age":{"type":"object","additionalProperties":false,"properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"code":{"type":"string","description":"The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system."},"comparator":{"type":"string","enum":["<","<=",">=",">"],"description":"How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \\"<\\" , then the real value is < stated value."},"system":{"type":"string","description":"The identification of the system that provides the coded form of the unit."},"unit":{"type":"string","description":"A human-readable form of the unit."},"value":{"type":"number","description":"The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books)."}},"description":"A duration of time during which an organism (or a process) has existed."},"Annotation":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"authorReference":{"$ref":"#/definitions/Reference","description":"Organization is used when there\'s no need for specific attribution as to who made the comment."},"authorString":{"type":"string","description":"Organization is used when there\'s no need for specific attribution as to who made the comment."},"text":{"type":"string","description":"The text of the annotation in markdown format."},"time":{"type":"string","description":"Indicates when this particular annotation was made."}},"required":["text"],"additionalProperties":false,"description":"A text note which also contains information about who made the statement and when."},"Reference":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"display":{"type":"string","description":"This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what\'s being referenced, not to fully describe it."},"identifier":{"$ref":"#/definitions/Identifier","description":"When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. When both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it. Reference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any)."},"reference":{"type":"string","description":"Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \\"/[type]/[id]\\" then it should be assumed that the reference is to a FHIR RESTful server."},"type":{"type":"string","description":"This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified."}},"additionalProperties":false,"description":"A reference from one resource to another."},"Identifier":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"assigner":{"$ref":"#/definitions/Reference","description":"The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization."},"period":{"$ref":"#/definitions/Period","description":"Time period during which identifier is/was valid for use."},"system":{"type":"string","description":"Identifier.system is always case sensitive."},"type":{"$ref":"#/definitions/CodeableConcept","description":"This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type."},"use":{"type":"string","enum":["usual","official","temp","secondary","old"],"description":"Applications can assume that an identifier is permanent unless it explicitly says that it is temporary."},"value":{"type":"string","description":"If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value\'s primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe."}},"additionalProperties":false,"description":"An identifier - identifies some entity uniquely and unambiguously. Typically this is used for business identifiers."},"CodeableConcept":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"coding":{"type":"array","items":{"$ref":"#/definitions/Coding"},"description":"Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true."},"text":{"type":"string","description":"Very often the text is the same as a displayName of one of the codings."}},"additionalProperties":false,"description":"A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text."},"Coding":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"code":{"type":"string","description":"A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)."},"display":{"type":"string","description":"A representation of the meaning of the code in the system, following the rules of the system."},"system":{"type":"string","description":"The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7\'s list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously."},"userSelected":{"type":"boolean","description":"Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly \'directly chosen\' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely."},"version":{"type":"string","description":"Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date."}},"additionalProperties":false,"description":"A reference to a code defined by a terminology system."},"Attachment":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"contentType":{"type":"string","description":"Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate."},"creation":{"type":"string","description":"The date that the attachment was first created."},"data":{"type":"string","description":"The base64-encoded data SHALL be expressed in the same character set as the base resource XML or JSON."},"hash":{"type":"string","description":"The hash is calculated on the data prior to base64 encoding, if the data is based64 encoded. The hash is not intended to support digital signatures. Where protection against malicious threats a digital signature should be considered, see [Provenance.signature](provenance-definitions.html#Provenance.signature) for mechanism to protect a resource with a digital signature."},"language":{"type":"string","description":"The human language of the content. The value can be any valid value according to BCP 47."},"size":{"type":"number","description":"The number of bytes is redundant if the data is provided as a base64binary, but is useful if the data is provided as a url reference."},"title":{"type":"string","description":"A label or set of text to display in place of the data."},"url":{"type":"string","description":"If both data and url are provided, the url SHALL point to the same content as the data contains. Urls may be relative references or may reference transient locations such as a wrapping envelope using cid: though this has ramifications for using signatures. Relative URLs are interpreted relative to the service url, like a resource reference, rather than relative to the resource itself. If a URL is provided, it SHALL resolve to actual data."}},"additionalProperties":false,"description":"For referring to data content defined in other formats."},"ContactPoint":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"period":{"$ref":"#/definitions/Period","description":"Time period when the contact point was/is in use."},"rank":{"type":"number","description":"Note that rank does not necessarily follow the order in which the contacts are represented in the instance."},"system":{"type":"string","enum":["phone","fax","email","pager","url","sms","other"],"description":"Telecommunications form for contact point - what communications system is required to make use of the contact."},"use":{"type":"string","enum":["home","work","temp","old","mobile"],"description":"Applications can assume that a contact is current unless it explicitly says that it is temporary or old."},"value":{"type":"string","description":"Additional text data such as phone extension numbers, or notes about use of the contact are sometimes included in the value."}},"additionalProperties":false,"description":"Details for all kinds of technology mediated contact points for a person or organization, including telephone, email, etc."},"Count":{"type":"object","additionalProperties":false,"properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"code":{"type":"string","description":"The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system."},"comparator":{"type":"string","enum":["<","<=",">=",">"],"description":"How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \\"<\\" , then the real value is < stated value."},"system":{"type":"string","description":"The identification of the system that provides the coded form of the unit."},"unit":{"type":"string","description":"A human-readable form of the unit."},"value":{"type":"number","description":"The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books)."}},"description":"A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies."},"Distance":{"type":"object","additionalProperties":false,"properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"code":{"type":"string","description":"The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system."},"comparator":{"type":"string","enum":["<","<=",">=",">"],"description":"How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \\"<\\" , then the real value is < stated value."},"system":{"type":"string","description":"The identification of the system that provides the coded form of the unit."},"unit":{"type":"string","description":"A human-readable form of the unit."},"value":{"type":"number","description":"The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books)."}},"description":"A length - a value with a unit that is a physical distance."},"Duration":{"type":"object","additionalProperties":false,"properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"code":{"type":"string","description":"The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system."},"comparator":{"type":"string","enum":["<","<=",">=",">"],"description":"How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \\"<\\" , then the real value is < stated value."},"system":{"type":"string","description":"The identification of the system that provides the coded form of the unit."},"unit":{"type":"string","description":"A human-readable form of the unit."},"value":{"type":"number","description":"The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books)."}},"description":"A length of time."},"HumanName":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"family":{"type":"string","description":"Family Name may be decomposed into specific parts using extensions (de, nl, es related cultures)."},"given":{"type":"array","items":{"type":"string"},"description":"If only initials are recorded, they may be used in place of the full name parts. Initials may be separated into multiple given names but often aren\'t due to paractical limitations. This element is not called \\"first name\\" since given names do not always come first."},"period":{"$ref":"#/definitions/Period","description":"Indicates the period of time when this name was valid for the named person."},"prefix":{"type":"array","items":{"type":"string"},"description":"Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name."},"suffix":{"type":"array","items":{"type":"string"},"description":"Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name."},"text":{"type":"string","description":"Can provide both a text representation and parts. Applications updating a name SHALL ensure that when both text and parts are present, no content is included in the text that isn\'t found in a part."},"use":{"type":"string","enum":["usual","official","temp","nickname","anonymous","old","maiden"],"description":"Applications can assume that a name is current unless it explicitly says that it is temporary or old."}},"additionalProperties":false,"description":"A human\'s name with the ability to identify parts and usage."},"Money":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"currency":{"type":"string","description":"ISO 4217 Currency Code."},"value":{"type":"number","description":"Monetary values have their own rules for handling precision (refer to standard accounting text books)."}},"additionalProperties":false,"description":"An amount of economic utility in some recognized currency."},"Quantity":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"code":{"type":"string","description":"The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system."},"comparator":{"type":"string","enum":["<","<=",">=",">"],"description":"How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \\"<\\" , then the real value is < stated value."},"system":{"type":"string","description":"The identification of the system that provides the coded form of the unit."},"unit":{"type":"string","description":"A human-readable form of the unit."},"value":{"type":"number","description":"The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books)."}},"additionalProperties":false,"description":"A measured amount (or an amount that can potentially be measured). Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies."},"Range":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"high":{"$ref":"#/definitions/Quantity","description":"If the high element is missing, the high boundary is not known."},"low":{"$ref":"#/definitions/Quantity","description":"If the low element is missing, the low boundary is not known."}},"additionalProperties":false,"description":"A set of ordered Quantities defined by a low and high limit."},"Ratio":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"denominator":{"$ref":"#/definitions/Quantity","description":"The value of the denominator."},"numerator":{"$ref":"#/definitions/Quantity","description":"The value of the numerator."}},"additionalProperties":false,"description":"A relationship of two Quantity values - expressed as a numerator and a denominator."},"SampledData":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"data":{"type":"string","description":"Data may be missing if it is omitted for summarization purposes. In general, data is required for any actual use of a SampledData."},"dimensions":{"type":"number","description":"If there is more than one dimension, the code for the type of data will define the meaning of the dimensions (typically ECG data)."},"factor":{"type":"number","description":"A correction factor that is applied to the sampled data points before they are added to the origin."},"lowerLimit":{"type":"number","description":"The lower limit of detection of the measured points. This is needed if any of the data points have the value \\"L\\" (lower than detection limit)."},"origin":{"$ref":"#/definitions/Quantity","description":"The base quantity that a measured value of zero represents. In addition, this provides the units of the entire measurement series."},"period":{"type":"number","description":"This is usually a whole number."},"upperLimit":{"type":"number","description":"The upper limit of detection of the measured points. This is needed if any of the data points have the value \\"U\\" (higher than detection limit)."}},"required":["dimensions","origin","period"],"additionalProperties":false,"description":"A series of measurements taken by a device, with upper and lower limits. There may be more than one dimension in the data."},"Signature":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"data":{"type":"string","description":"Where the signature type is an XML DigSig, the signed content is a FHIR Resource(s), the signature is of the XML form of the Resource(s) using XML-Signature (XMLDIG) \\"Detached Signature\\" form."},"onBehalfOf":{"$ref":"#/definitions/Reference","description":"The party that can\'t sign. For example a child."},"sigFormat":{"type":"string","description":"A mime type that indicates the technical format of the signature. Important mime types are application/signature+xml for X ML DigSig, application/jose for JWS, and image/* for a graphical image of a signature, etc."},"targetFormat":{"type":"string","description":"\\"xml\\", \\"json\\" and \\"ttl\\" are allowed, which describe the simple encodings described in the specification (and imply appropriate bundle support). Otherwise, mime types are legal here."},"type":{"type":"array","items":{"$ref":"#/definitions/Coding"},"description":"Examples include attesting to: authorship, correct transcription, and witness of specific event. Also known as a "Commitment Type Indication"."},"when":{"type":"string","description":"This should agree with the information in the signature."},"who":{"$ref":"#/definitions/Reference","description":"This should agree with the information in the signature."}},"required":["type","when","who"],"additionalProperties":false,"description":"A signature along with supporting context. The signature may be a digital signature that is cryptographic in nature, or some other signature acceptable to the domain. This other signature may be as simple as a graphical image representing a hand-written signature, or a signature ceremony Different signature approaches have different utilities."},"Timing":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"modifierExtension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"code":{"$ref":"#/definitions/CodeableConcept","description":"BID etc. are defined as \'at institutionally specified times\'. For example, an institution may choose that BID is \\"always at 7am and 6pm\\". If it is inappropriate for this choice to be made, the code BID should not be used. Instead, a distinct organization-specific code should be used in place of the HL7-defined BID code and/or a structured representation should be used (in this case, specifying the two event times)."},"event":{"type":"array","items":{"type":"string"},"description":"Identifies specific times when the event occurs."},"repeat":{"$ref":"#/definitions/TimingRepeat","description":"A set of rules that describe when the event is scheduled."}},"additionalProperties":false,"description":"Specifies an event that may occur multiple times. Timing schedules are used to record when things are planned, expected or requested to occur. The most common usage is in dosage instructions for medications. They are also used when planning care of various kinds, and may be used for reporting the schedule to which past regular activities were carried out."},"TimingRepeat":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"boundsDuration":{"$ref":"#/definitions/Duration","description":"Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule."},"boundsRange":{"$ref":"#/definitions/Range","description":"Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule."},"boundsPeriod":{"$ref":"#/definitions/Period","description":"Either a duration for the length of the timing schedule, a range of possible length, or outer bounds for start and/or end limits of the timing schedule."},"count":{"type":"number","description":"If you have both bounds and count, then this should be understood as within the bounds period, until count times happens."},"countMax":{"type":"number","description":"If present, indicates that the count is a range - so to perform the action between [count] and [countMax] times."},"dayOfWeek":{"type":"array","items":{"type":"string","enum":["mon","tue","wed","thu","fri","sat","sun"]},"description":"If no days are specified, the action is assumed to happen every day as otherwise specified. The elements frequency and period cannot be used as well as dayOfWeek."},"duration":{"type":"number","description":"For some events the duration is part of the definition of the event (e.g. IV infusions, where the duration is implicit in the specified quantity and rate). For others, it\'s part of the timing specification (e.g. exercise)."},"durationMax":{"type":"number","description":"For some events the duration is part of the definition of the event (e.g. IV infusions, where the duration is implicit in the specified quantity and rate). For others, it\'s part of the timing specification (e.g. exercise)."},"durationUnit":{"type":"string","enum":["s","min","h","d","wk","mo","a"],"description":"The units of time for the duration, in UCUM units."},"frequency":{"type":"number","description":"The number of times to repeat the action within the specified period. If frequencyMax is present, this element indicates the lower bound of the allowed range of the frequency."},"frequencyMax":{"type":"number","description":"If present, indicates that the frequency is a range - so to repeat between [frequency] and [frequencyMax] times within the period or period range."},"offset":{"type":"number","description":"The number of minutes from the event. If the event code does not indicate whether the minutes is before or after the event, then the offset is assumed to be after the event."},"period":{"type":"number","description":"Indicates the duration of time over which repetitions are to occur; e.g. to express \\"3 times per day\\", 3 would be the frequency and \\"1 day\\" would be the period. If periodMax is present, this element indicates the lower bound of the allowed range of the period length."},"periodMax":{"type":"number","description":"If present, indicates that the period is a range from [period] to [periodMax], allowing expressing concepts such as \\"do this once every 3-5 days."},"periodUnit":{"type":"string","enum":["s","min","h","d","wk","mo","a"],"description":"The units of time for the period in UCUM units."},"timeOfDay":{"type":"array","items":{"type":"string"},"description":"When time of day is specified, it is inferred that the action happens every day (as filtered by dayofWeek) on the specified times. The elements when, frequency and period cannot be used as well as timeOfDay."},"when":{"type":"array","items":{"type":"string","enum":["MORN","MORN.early","MORN.late","NOON","AFT","AFT.early","AFT.late","EVE","EVE.early","EVE.late","NIGHT","PHS","IMD","HS","WAKE","C","CM","CD","CV","AC","ACM","ACD","ACV","PC","PCM","PCD","PCV"]},"description":"When more than one event is listed, the event is tied to the union of the specified events."}},"additionalProperties":false,"description":"A set of rules that describe when the event is scheduled."},"ContactDetail":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"name":{"type":"string","description":"If there is no named individual, the telecom information is for the organization as a whole."},"telecom":{"type":"array","items":{"$ref":"#/definitions/ContactPoint"},"description":"The contact details for the individual (if a name was provided) or the organization."}},"additionalProperties":false,"description":"Specifies contact information for a person or organization."},"Contributor":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"contact":{"type":"array","items":{"$ref":"#/definitions/ContactDetail"},"description":"Contact details to assist a user in finding and communicating with the contributor."},"name":{"type":"string","description":"The name of the individual or organization responsible for the contribution."},"type":{"type":"string","enum":["author","editor","reviewer","endorser"],"description":"The type of contributor."}},"required":["name","type"],"additionalProperties":false,"description":"A contributor to the content of a knowledge asset, including authors, editors, reviewers, and endorsers."},"DataRequirement":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"codeFilter":{"type":"array","items":{"$ref":"#/definitions/DataRequirementCodeFilter"},"description":"Code filters specify additional constraints on the data, specifying the value set of interest for a particular element of the data. Each code filter defines an additional constraint on the data, i.e. code filters are AND\'ed, not OR\'ed."},"dateFilter":{"type":"array","items":{"$ref":"#/definitions/DataRequirementDateFilter"},"description":"Date filters specify additional constraints on the data in terms of the applicable date range for specific elements. Each date filter specifies an additional constraint on the data, i.e. date filters are AND\'ed, not OR\'ed."},"limit":{"type":"number","description":"This element can be used in combination with the sort element to specify quota requirements such as \\"the most recent 5\\" or \\"the highest 5\\"."},"mustSupport":{"type":"array","items":{"type":"string"},"description":"Indicates that specific elements of the type are referenced by the knowledge module and must be supported by the consumer in order to obtain an effective evaluation. This does not mean that a value is required for this element, only that the consuming system must understand the element and be able to provide values for it if they are available. The value of mustSupport SHALL be a FHIRPath resolveable on the type of the DataRequirement. The path SHALL consist only of identifiers, constant indexers, and .resolve() (see the [Simple FHIRPath Profile](fhirpath.html#simple) for full details)."},"profile":{"type":"array","items":{"type":"string"},"description":"The profile of the required data, specified as the uri of the profile definition."},"sort":{"type":"array","items":{"$ref":"#/definitions/DataRequirementSort"},"description":"This element can be used in combination with the sort element to specify quota requirements such as \\"the most recent 5\\" or \\"the highest 5\\". When multiple sorts are specified, they are applied in the order they appear in the resource."},"subjectCodeableConcept":{"$ref":"#/definitions/CodeableConcept","description":"The subject of a data requirement is critical, as the data being specified is determined with respect to a particular subject. This corresponds roughly to the notion of a Compartment in that it limits what data is available based on its relationship to the subject. In CQL, this corresponds to the context declaration."},"subjectReference":{"$ref":"#/definitions/Reference","description":"The subject of a data requirement is critical, as the data being specified is determined with respect to a particular subject. This corresponds roughly to the notion of a Compartment in that it limits what data is available based on its relationship to the subject. In CQL, this corresponds to the context declaration."},"type":{"type":"string","description":"The type of the required data, specified as the type name of a resource. For profiles, this value is set to the type of the base resource of the profile."}},"required":["type"],"additionalProperties":false,"description":"Describes a required data item for evaluation in terms of the type of data, and optional code or date-based filters of the data."},"DataRequirementCodeFilter":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"code":{"type":"array","items":{"$ref":"#/definitions/Coding"},"description":"The codes for the code filter. If values are given, the filter will return only those data items for which the code-valued attribute specified by the path has a value that is one of the specified codes. If codes are specified in addition to a value set, the filter returns items matching a code in the value set or one of the specified codes."},"path":{"type":"string","description":"The path attribute contains a [Simple FHIRPath Subset](fhirpath.html#simple) that allows path traversal, but not calculation."},"searchParam":{"type":"string","description":"A token parameter that refers to a search parameter defined on the specified type of the DataRequirement, and which searches on elements of type code, Coding, or CodeableConcept."},"valueSet":{"type":"string","description":"The valueset for the code filter. The valueSet and code elements are additive. If valueSet is specified, the filter will return only those data items for which the value of the code-valued element specified in the path is a member of the specified valueset."}},"additionalProperties":false,"description":"Code filters specify additional constraints on the data, specifying the value set of interest for a particular element of the data. Each code filter defines an additional constraint on the data, i.e. code filters are AND\'ed, not OR\'ed."},"DataRequirementDateFilter":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"path":{"type":"string","description":"The path attribute contains a [Simple FHIR Subset](fhirpath.html#simple) that allows path traversal, but not calculation."},"searchParam":{"type":"string","description":"A date parameter that refers to a search parameter defined on the specified type of the DataRequirement, and which searches on elements of type date, dateTime, Period, Schedule, or Timing."},"valueDateTime":{"type":"string","description":"The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime. If a Duration is specified, the filter will return only those data items that fall within Duration before now."},"valuePeriod":{"$ref":"#/definitions/Period","description":"The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime. If a Duration is specified, the filter will return only those data items that fall within Duration before now."},"valueDuration":{"$ref":"#/definitions/Duration","description":"The value of the filter. If period is specified, the filter will return only those data items that fall within the bounds determined by the Period, inclusive of the period boundaries. If dateTime is specified, the filter will return only those data items that are equal to the specified dateTime. If a Duration is specified, the filter will return only those data items that fall within Duration before now."}},"additionalProperties":false,"description":"Date filters specify additional constraints on the data in terms of the applicable date range for specific elements. Each date filter specifies an additional constraint on the data, i.e. date filters are AND\'ed, not OR\'ed."},"DataRequirementSort":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"direction":{"type":"string","enum":["ascending","descending"],"description":"The direction of the sort, ascending or descending."},"path":{"type":"string","description":"The attribute of the sort. The specified path must be resolvable from the type of the required data. The path is allowed to contain qualifiers (.) to traverse sub-elements, as well as indexers ([x]) to traverse multiple-cardinality sub-elements. Note that the index must be an integer constant."}},"required":["direction","path"],"additionalProperties":false,"description":"This element can be used in combination with the sort element to specify quota requirements such as \\"the most recent 5\\" or \\"the highest 5\\". When multiple sorts are specified, they are applied in the order they appear in the resource."},"Expression":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"description":{"type":"string","description":"A brief, natural language description of the condition that effectively communicates the intended semantics."},"expression":{"type":"string","description":"An expression in the specified language that returns a value."},"language":{"type":"string","description":"The media type of the language for the expression."},"name":{"type":"string","description":"A short name assigned to the expression to allow for multiple reuse of the expression in the context where it is defined."},"reference":{"type":"string","description":"If both a reference and an expression is found, the reference SHALL point to the same expression."}},"required":["language"],"additionalProperties":false,"description":"A expression that is evaluated in a specified context and returns a value. The context of use of the expression must specify the context in which the expression is evaluated, and how the result of the expression is used."},"ParameterDefinition":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"documentation":{"type":"string","description":"A brief discussion of what the parameter is for and how it is used by the module."},"max":{"type":"string","description":"The maximum number of times this element is permitted to appear in the request or response."},"min":{"type":"number","description":"The minimum number of times this parameter SHALL appear in the request or response."},"name":{"type":"string","description":"The name of the parameter used to allow access to the value of the parameter in evaluation contexts."},"profile":{"type":"string","description":"If specified, this indicates a profile that the input data must conform to, or that the output data will conform to."},"type":{"type":"string","description":"The type of the parameter."},"use":{"type":"string","enum":["in","out"],"description":"Whether the parameter is input or output for the module."}},"required":["type","use"],"additionalProperties":false,"description":"The parameters to the module. This collection specifies both the input and output parameters. Input parameters are provided by the caller as part of the $evaluate operation. Output parameters are included in the GuidanceResponse."},"RelatedArtifact":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"citation":{"type":"string","description":"Additional structured information about citations should be captured as extensions."},"display":{"type":"string","description":"A brief description of the document or knowledge resource being referenced, suitable for display to a consumer."},"document":{"$ref":"#/definitions/Attachment","description":"The document being referenced, represented as an attachment. This is exclusive with the resource element."},"label":{"type":"string","description":"A short label that can be used to reference the citation from elsewhere in the containing artifact, such as a footnote index."},"resource":{"type":"string","description":"If the type is predecessor, this is a reference to the succeeding knowledge resource. If the type is successor, this is a reference to the prior knowledge resource."},"type":{"type":"string","enum":["documentation","justification","citation","predecessor","successor","derived-from","depends-on","composed-of"],"description":"The type of relationship to the related artifact."},"url":{"type":"string","description":"If a document or resource element is present, this element SHALL NOT be provided (use the url or reference in the Attachment or resource reference)."}},"required":["type"],"additionalProperties":false,"description":"Related artifacts such as additional documentation, justification, or bibliographic references."},"TriggerDefinition":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"condition":{"$ref":"#/definitions/Expression","description":"This element can be only be specified for data type triggers and provides additional semantics for the trigger. The context available within the condition is based on the type of data event. For all events, the current resource will be available as context. In addition, for modification events, the previous resource will also be available. The expression may be inlined, or may be a simple absolute URI, which is a reference to a named expression within a logic library referenced by a library element or extension within the containing resource. If the expression is a FHIR Path expression, it evaluates in the context of a resource of one of the type identified in the data requirement, and may also refer to the variable %previous for delta comparisons on events of type data-changed, data-modified, and data-deleted which will always have the same type."},"data":{"type":"array","items":{"$ref":"#/definitions/DataRequirement"},"description":"This element shall be present for any data type trigger."},"name":{"type":"string","description":"An event name can be provided for all event types, but is required for named events. If a name is provided for a type other than named events, it is considered to be a shorthand for the semantics described by the formal description of the event."},"timingTiming":{"$ref":"#/definitions/Timing","description":"The timing of the event (if this is a periodic trigger)."},"timingReference":{"$ref":"#/definitions/Reference","description":"The timing of the event (if this is a periodic trigger)."},"timingDate":{"type":"string","description":"The timing of the event (if this is a periodic trigger)."},"timingDateTime":{"type":"string","description":"The timing of the event (if this is a periodic trigger)."},"type":{"type":"string","enum":["named-event","periodic","data-changed","data-added","data-modified","data-removed","data-accessed","data-access-ended"],"description":"The type of triggering event."}},"required":["type"],"additionalProperties":false,"description":"A description of a triggering event. Triggering events can be named events, data events, or periodic, as determined by the type element."},"UsageContext":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"code":{"$ref":"#/definitions/Coding","description":"A code that identifies the type of context being specified by this usage context."},"valueCodeableConcept":{"$ref":"#/definitions/CodeableConcept","description":"A value that defines the context specified in this context of use. The interpretation of the value is defined by the code."},"valueQuantity":{"$ref":"#/definitions/Quantity","description":"A value that defines the context specified in this context of use. The interpretation of the value is defined by the code."},"valueRange":{"$ref":"#/definitions/Range","description":"A value that defines the context specified in this context of use. The interpretation of the value is defined by the code."},"valueReference":{"$ref":"#/definitions/Reference","description":"A value that defines the context specified in this context of use. The interpretation of the value is defined by the code."}},"required":["code"],"additionalProperties":false,"description":"Specifies clinical/business/etc. metadata that can be used to retrieve, index and/or categorize an artifact. This metadata can either be specific to the applicable population (e.g., age category, DRG) or the specific context of care (e.g., venue, care setting, provider of care)."},"Meta":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"lastUpdated":{"type":"string","description":"This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http.html#read) interaction."},"profile":{"type":"array","items":{"type":"string"},"description":"It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set."},"security":{"type":"array","items":{"$ref":"#/definitions/Coding"},"description":"The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored."},"source":{"type":"string","description":"In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. This element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL."},"tag":{"type":"array","items":{"$ref":"#/definitions/Coding"},"description":"The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored."},"versionId":{"type":"string","description":"The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes."}},"additionalProperties":false,"description":"The metadata about a resource. This is content in the resource that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource."},"DosageDoseAndRate":{"type":"object","properties":{"extension":{"type":"array","items":{"$ref":"#/definitions/Extension"},"description":"There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."},"id":{"type":"string","description":"Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."},"doseRange":{"$ref":"#/definitions/Range","description":"Note that this specifies the quantity of the specified medication, not the quantity for each active ingredient(s). Each ingredient amount can be communicated in the Medication resource. For example, if one wants to communicate that a tablet was 375 mg, where the dose was one tablet, you can use the Medication resource to document that the tablet was comprised of 375 mg of drug XYZ. Alternatively if the dose was 375 mg, then you may only need to use the Medication resource to indicate this was a tablet. If the example were an IV such as dopamine and you wanted to communicate that 400mg of dopamine was mixed in 500 ml of some IV solution, then this would all be communicated in the Medication resource. If the administration is not intended to be instantaneous (rate is present or timing has a duration), this can be specified to convey the total amount to be administered over the period of time as indicated by the schedule e.g. 500 ml in dose, with timing used to convey that this should be done over 4 hours."},"doseQuantity":{"$ref":"#/definitions/Quantity","description":"Note that this specifies the quantity of the specified medication, not the quantity for each active ingredient(s). Each ingredient amount can be communicated in the Medication resource. For example, if one wants to communicate that a tablet was 375 mg, where the dose was one tablet, you can use the Medication resource to document that the tablet was comprised of 375 mg of drug XYZ. Alternatively if the dose was 375 mg, then you may only need to use the Medication resource to indicate this was a tablet. If the example were an IV such as dopamine and you wanted to communicate that 400mg of dopamine was mixed in 500 ml of some IV solution, then this would all be communicated in the Medication resource. If the administration is not intended to be instantaneous (rate is present or timing has a duration), this can be specified to convey the total amount to be administered over the period of time as indicated by the schedule e.g. 500 ml in dose, with timing used to convey that this should be done over 4 hours."},"rateRatio":{"$ref":"#/definitions/Ratio","description":"It is possible to supply both a rate and a doseQuantity to provide full details about how the medication is to be administered and supplied. If the rate is intended to change over time, depending on local rules/regulations, each change should be captured as a new version of the MedicationRequest with an updated rate, or captured with a new MedicationRequest with the new rate. It is possible to specify a rate over time (for example, 100 ml/hour) using either the rateRatio and rateQuantity. The rateQuantity approach requires systems to have the capability to parse UCUM grammer where ml/hour is included rather than a specific ratio where the time is specified as the denominator. Where a rate such as 500ml over 2 hours is specified, the use of rateRatio may be more semantically correct than specifying using a rateQuantity of 250 mg/hour."},"rateRange":{"$ref":"#/definitions/Range","description":"It is possible to supply both a rate and a doseQuantity to provide full details about how the medication is to be administered and supplied. If the rate is intended to change over time, depending on local rules/regulations, each change should be captured as a new version of the MedicationRequest with an updated rate, or captured with a new MedicationRequest with the new rate. It is possible to specify a rate over time (for example, 100 ml/hour) using either the rateRatio and rateQuantity. The rateQuantity approach requires systems to have the capability to parse UCUM grammer where ml/hour is included rather than a specific ratio where the time is specified as the denominator. Where a rate such as 500ml over 2 hours is specified, the use of rateRatio may be more semantically correct than specifying using a rateQuantity of 250 mg/hour."},"rateQuantity":{"$ref":"#/definitions/Quantity","description":"It is possible to supply both a rate and a doseQuantity to provide full details about how the medication is to be administered and supplied. If the rate is intended to change over time, depending on local rules/regulations, each change should be captured as a new version of the MedicationRequest with an updated rate, or captured with a new MedicationRequest with the new rate. It is possible to specify a rate over time (for example, 100 ml/hour) using either the rateRatio and rateQuantity. The rateQuantity approach requires systems to have the capability to parse UCUM grammer where ml/hour is included rather than a specific ratio where the time is specified as the denominator. Where a rate such as 500ml over 2 hours is specified, the use of rateRatio may be more semantically correct than specifying using a rateQuantity of 250 mg/hour."},"type":{"$ref":"#/definitions/CodeableConcept","description":"The kind of dose or rate specified, for example, ordered or calculated."}},"additionalProperties":false,"description":"The amount of medication administered."}}}'),h=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$ref":"#/definitions/Config","definitions":{"Config":{"type":"object","properties":{"language":{"type":"string","enum":["en","fr","nl","de"],"description":"To set up the language"},"displayOrder":{"type":"array","items":{"type":"string","enum":["method","doseQuantity","doseRange","rateRatio","rateQuantity","rateRange","durationDurationMax","frequencyFrequencyMax","periodPeriodMax","frequencyFrequencyMaxPeriodPeriodMax","offsetWhen","dayOfWeek","timeOfDay","route","site","asNeeded","boundsDuration","boundsPeriod","boundsRange","countCountMax","event","code","maxDosePerPeriod","maxDosePerAdministration","maxDosePerLifetime","additionalInstruction","patientInstruction","text","extension"]},"description":"Control the display order used by the algorithm Useful when you want to turn on / off some specific rules for some reason"},"displaySeparator":{"type":"string","description":"Override separator between each part of \\"Dosage\\""},"dateTimeFormatOptions":{"$ref":"#/definitions/Intl.DateTimeFormatOptions","description":"To control the formatting of dateTime objects. If not provided, will use the defaults according locale e.g. \\"20/01/2024\\""}},"additionalProperties":false,"$id":"Config"},"Intl.DateTimeFormatOptions":{"type":"object","properties":{"localeMatcher":{"type":"string","enum":["best fit","lookup"]},"weekday":{"type":"string","enum":["long","short","narrow"]},"era":{"type":"string","enum":["long","short","narrow"]},"year":{"type":"string","enum":["numeric","2-digit"]},"month":{"type":"string","enum":["numeric","2-digit","long","short","narrow"]},"day":{"type":"string","enum":["numeric","2-digit"]},"hour":{"type":"string","enum":["numeric","2-digit"]},"minute":{"type":"string","enum":["numeric","2-digit"]},"second":{"type":"string","enum":["numeric","2-digit"]},"timeZoneName":{"type":"string","enum":["short","long","shortOffset","longOffset","shortGeneric","longGeneric"]},"formatMatcher":{"type":"string","enum":["best fit","basic"]},"hour12":{"type":"boolean"},"timeZone":{"type":"string"}},"additionalProperties":false}}}');var l=i(4848);const p=["file:///input-editor"],f=["file:///config-editor"];function u(){return(0,l.jsx)("div",{children:(0,l.jsx)(d.A,{values:{id:"json-schema.labels.loading"},children:"Loading ...."})})}function m(e){const{error:t}=e;return(0,l.jsx)(d.A,{values:{id:"json-schema.labels.errorOccurred",message:t.message},children:"Something bad happens : {message}"})}function y(e){let{error:t,tryAgain:i}=e;return(0,l.jsxs)("div",{children:[(0,l.jsx)("p",{children:(0,l.jsx)(m,{error:t})}),(0,l.jsx)("button",{onClick:i,children:"Try Again!"})]})}function g(e,t){let i=e;return"boolean"==typeof i?`https://docusaurus.io/json-viewer/schema_${t}.json`:void 0!==i.$id?i.$id:`https://docusaurus.io/json-viewer/schema_${i.$ref||t}.json`}function b(e){const{...t}=e;return(0,l.jsx)(a.Ay,{height:"90vh",language:"json",editorWillMount:e=>{e.languages.json.jsonDefaults.setDiagnosticsOptions({validate:!0,schemas:[c,h].map(((e,t)=>({uri:g(e,t),fileMatch:0===t?p:f,schema:e})))})},...t})}function x(e){return(0,l.jsx)(s.A,{fallback:(0,l.jsx)(u,{}),children:()=>(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(r.A,{fallback:e=>(0,l.jsx)(y,{...e}),children:(0,l.jsx)(b,{...e})})})})}var v=i(1622);const w=(0,n.createContext)({state:{data:"{}",config:"{}",inputSchemaRef:void 0,configSchemaRef:void 0},updateState:()=>{}}),T=()=>(0,n.useContext)(w),j=w.Provider;function I(){const{state:{data:e},updateState:t}=T(),{colorMode:i}=(0,o.G)();return(0,l.jsx)(v.A,{summary:(0,l.jsx)("summary",{children:"Input"}),open:!0,children:(0,l.jsx)(x,{value:e,height:"70vh",theme:"dark"===i?"vs-dark":"vs",editorDidMount:e=>{t({inputSchemaRef:e})},uri:e=>{let{Uri:t}=e;return t.parse("input-editor")},onChange:e=>{t({data:e})}})})}function R(){return(0,l.jsx)(s.A,{fallback:(0,l.jsx)("div",{children:"Loading..."}),children:()=>(0,l.jsx)(I,{})})}function C(){const{state:{config:e},updateState:t}=T(),{colorMode:i}=(0,o.G)();return(0,l.jsx)(v.A,{summary:(0,l.jsx)("summary",{children:"Config"}),open:!1,children:(0,l.jsx)(x,{value:e,height:"70vh",theme:"dark"===i?"vs-dark":"vs",uri:e=>{let{Uri:t}=e;return t.parse("config-editor")},editorDidMount:e=>{t({configSchemaRef:e})},onChange:e=>{t({config:e})}})})}function $(){return(0,l.jsx)(s.A,{fallback:(0,l.jsx)("div",{children:"Loading..."}),children:()=>(0,l.jsx)(C,{})})}function A(){return(0,l.jsxs)("div",{style:{boxSizing:"border-box",width:"50%"},children:[(0,l.jsxs)("div",{style:{display:"flex",justifyContent:"flex-start",alignItems:"center",padding:"8px",backgroundColor:"inherit"},children:[(0,l.jsx)("h1",{children:"Setup"}),"\xa0",(0,l.jsx)("div",{style:{flex:1}})]}),(0,l.jsx)(R,{}),(0,l.jsx)($,{})]})}function q(){return(0,l.jsx)(s.A,{fallback:(0,l.jsx)("div",{children:"Loading..."}),children:()=>(0,l.jsx)(A,{})})}var E=i(8264);function D(e,t){try{return JSON.parse(e)}catch(i){return t}}function P(){return n.useLayoutEffect((()=>{const e=document.createElement("style");return e.innerHTML="\n .loading-animation {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n }\n\n .spinner {\n width: 50px;\n height: 50px;\n border: 3px solid #ccc;\n border-top-color: #333;\n border-radius: 50%;\n animation: spin 1s infinite linear; /* Infinite animation */\n }\n\n @keyframes spin {\n to {\n transform: rotate(360deg);\n }\n }\n ",document.head.appendChild(e),()=>{document.head.removeChild(e)}}),[]),(0,l.jsxs)("div",{className:"loading-animation",children:[(0,l.jsx)("div",{className:"spinner"}),(0,l.jsx)("p",{children:"Loading..."})]})}function S(){const{state:{data:e,config:t}}=T(),i=D(e,[]),n=D(t,{});return(0,l.jsxs)("div",{style:{boxSizing:"border-box",width:"50%"},children:[(0,l.jsxs)("div",{style:{display:"flex",justifyContent:"flex-start",alignItems:"center",padding:"8px",backgroundColor:"inherit"},children:[(0,l.jsx)("h1",{children:"Output"}),"\xa0",(0,l.jsx)("div",{style:{flex:1}})]}),(0,l.jsxs)("div",{children:[i.length>0&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)(E.A,{dosages:i,config:n})}),0===i.length&&(0,l.jsx)(P,{})]})]})}function U(){return(0,l.jsx)(s.A,{fallback:(0,l.jsx)("div",{children:"Loading..."}),children:()=>(0,l.jsx)(S,{})})}const F=JSON.parse('[{"timing":{"repeat":{"frequency":1,"period":8,"periodUnit":"h"}}}]'),H=JSON.parse('{"dateTimeFormatOptions":{},"displayOrder":["method","doseQuantity","doseRange","rateRatio","rateQuantity","rateRange","durationDurationMax","frequencyFrequencyMaxPeriodPeriodMax","offsetWhen","dayOfWeek","timeOfDay","route","site","asNeeded","boundsDuration","boundsPeriod","boundsRange","countCountMax","event","code","maxDosePerPeriod","maxDosePerAdministration","maxDosePerLifetime","additionalInstruction","patientInstruction"],"displaySeparator":" - "}');function M(){const{state:{config:e,data:t}}=T();return(0,l.jsx)("div",{style:{display:"flex",flexDirection:"column",overflowY:"hidden",overflowX:"hidden"},children:(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"row",justifyContent:"space-between"},children:[(0,l.jsx)(q,{}),(0,l.jsx)(U,{},e+t)]})})}function k(){const[e,t]=n.useState({data:JSON.stringify(F,null,"\t"),config:JSON.stringify(H,null,"\t")});return(0,l.jsx)(j,{value:{state:e,updateState:function(e){t((t=>({...t,...e})))}},children:(0,l.jsx)(M,{})})}function L(){return(0,l.jsx)(s.A,{fallback:(0,l.jsx)("div",{children:"Loading..."}),children:()=>(0,l.jsx)(k,{})})}},4190:(e,t,i)=>{i.r(t),i.d(t,{default:()=>d});i(6540);var n=i(7747),s=i(8478),o=i(7489),a=i(4848);function r(){return(0,a.jsx)(o.A,{fallback:e=>{let{error:t,tryAgain:i}=e;return(0,a.jsxs)("div",{children:[(0,a.jsxs)("p",{children:["Playground component crashed because of error: ",t.message,"."]}),(0,a.jsx)("button",{onClick:i,children:"Try Again!"})]})},children:(0,a.jsx)(s.A,{fallback:(0,a.jsx)("div",{children:"Loading..."}),children:()=>{const e=i(8029).A;return(0,a.jsx)(e,{})}})})}function d(){return(0,a.jsx)(n.A,{title:"Playground",description:"Playground of docusaurus-json-schema-plugin",children:(0,a.jsx)(r,{})})}}}]); \ No newline at end of file diff --git a/assets/js/915d2175.1ab31656.js b/assets/js/915d2175.2cf05589.js similarity index 91% rename from assets/js/915d2175.1ab31656.js rename to assets/js/915d2175.2cf05589.js index 6ad2279a..fd1df186 100644 --- a/assets/js/915d2175.1ab31656.js +++ b/assets/js/915d2175.2cf05589.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[7829],{9591:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>f,contentTitle:()=>u,default:()=>h,frontMatter:()=>d,metadata:()=>g,toc:()=>p});var n=i(4848),s=i(8453),a=i(1812);const r=JSON.parse('{"timing":{"repeat":{"dayOfWeek":["fri"]}}}');var l=i(4865),o=i(9365),c=i(816);const d={description:"Single item",title:"\ud83d\udcc5 Single item"},u=void 0,g={id:"specs/dayOfWeek/single_item",title:"\ud83d\udcc5 Single item",description:"Single item",source:"@site/docs/specs/dayOfWeek/single_item.mdx",sourceDirName:"specs/dayOfWeek",slug:"/specs/dayOfWeek/single_item",permalink:"/fhir-dosage-utils/docs/specs/dayOfWeek/single_item",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/dayOfWeek/single_item.mdx",tags:[],version:"current",frontMatter:{description:"Single item",title:"\ud83d\udcc5 Single item"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udcc5 Multiple items",permalink:"/fhir-dosage-utils/docs/specs/dayOfWeek/multiple_items"},next:{title:"\ud83d\udc8a doseQuantity",permalink:"/fhir-dosage-utils/docs/category/-dosequantity"}},f={},p=[];function m(e){return(0,n.jsxs)(l.A,{children:[(0,n.jsx)(o.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(c.A,{dosage:r})}),(0,n.jsx)(o.A,{value:"json",label:"Dosage",children:(0,n.jsx)(a.default,{language:"json",children:JSON.stringify(r,null,2)})})]})}function h(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(m,{...e})}):m()}},816:(e,t,i)=>{i.d(t,{A:()=>l});var n=i(6540),s=i(6300),a=i(1812),r=i(4848);function l(e){let{dosage:t,config:i,i18nConfig:l}=e;const[o,c]=(0,n.useState)(""),[d,u]=(0,n.useState)(i?.language||"en"),[g,f]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await s.A.build(i,l);f(e)}()}),[i]),(0,n.useEffect)((()=>{!async function(){if(g){const e=g.fromDosageToText(t);c(e)}}()}),[t,g]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:d,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(g){await g.changeLanguage(d);const e=g.fromDosageToText(t);c(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(a.default,{language:"markup",children:(p=o,p.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var p}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[7829],{9591:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>f,contentTitle:()=>u,default:()=>h,frontMatter:()=>d,metadata:()=>g,toc:()=>p});var n=i(4848),s=i(8453),a=i(1812);const r=JSON.parse('{"timing":{"repeat":{"dayOfWeek":["fri"]}}}');var l=i(4865),o=i(9365),c=i(816);const d={description:"Single item",title:"\ud83d\udcc5 Single item"},u=void 0,g={id:"specs/dayOfWeek/single_item",title:"\ud83d\udcc5 Single item",description:"Single item",source:"@site/docs/specs/dayOfWeek/single_item.mdx",sourceDirName:"specs/dayOfWeek",slug:"/specs/dayOfWeek/single_item",permalink:"/fhir-dosage-utils/docs/specs/dayOfWeek/single_item",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/dayOfWeek/single_item.mdx",tags:[],version:"current",frontMatter:{description:"Single item",title:"\ud83d\udcc5 Single item"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udcc5 Multiple items",permalink:"/fhir-dosage-utils/docs/specs/dayOfWeek/multiple_items"},next:{title:"\ud83d\udc8a doseQuantity",permalink:"/fhir-dosage-utils/docs/category/-dosequantity"}},f={},p=[];function m(e){return(0,n.jsxs)(l.A,{children:[(0,n.jsx)(o.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(c.A,{dosage:r})}),(0,n.jsx)(o.A,{value:"json",label:"Dosage",children:(0,n.jsx)(a.default,{language:"json",children:JSON.stringify(r,null,2)})})]})}function h(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(m,{...e})}):m()}},816:(e,t,i)=>{i.d(t,{A:()=>l});var n=i(6540),s=i(6300),a=i(1812),r=i(4848);function l(e){let{dosage:t,config:i,i18nConfig:l}=e;const[o,c]=(0,n.useState)(""),[d,u]=(0,n.useState)(i?.language||"en"),[g,f]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await s.A.build(i,l);f(e)}()}),[i]),(0,n.useEffect)((()=>{!async function(){if(g){const e=g.fromDosageToText(t);c(e)}}()}),[t,g]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:d,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(g){await g.changeLanguage(d);const e=g.fromDosageToText(t);c(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(a.default,{language:"markup",children:(p=o,p.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var p}}}]); \ No newline at end of file diff --git a/assets/js/96e7b265.5a850e79.js b/assets/js/96e7b265.04a6fb3c.js similarity index 77% rename from assets/js/96e7b265.5a850e79.js rename to assets/js/96e7b265.04a6fb3c.js index fb9ab3a5..0ae2c513 100644 --- a/assets/js/96e7b265.5a850e79.js +++ b/assets/js/96e7b265.04a6fb3c.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[3301],{7398:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>h,contentTitle:()=>u,default:()=>x,frontMatter:()=>c,metadata:()=>g,toc:()=>p});var t=s(4848),o=s(8453),a=s(1812);const i=JSON.parse('{"doseAndRate":[{"doseRange":{"low":{"value":3,"unit":"pills"},"high":{"value":5,"unit":"pills"}}}]}');var r=s(4865),l=s(9365),d=s(816);const c={description:"Low & High",title:"\ud83d\udccf doseRange (Low & High)"},u=void 0,g={id:"specs/doseRange/low_and_high",title:"\ud83d\udccf doseRange (Low & High)",description:"Low & High",source:"@site/docs/specs/doseRange/low_and_high.mdx",sourceDirName:"specs/doseRange",slug:"/specs/doseRange/low_and_high",permalink:"/fhir-dosage-utils/docs/specs/doseRange/low_and_high",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/doseRange/low_and_high.mdx",tags:[],version:"current",frontMatter:{description:"Low & High",title:"\ud83d\udccf doseRange (Low & High)"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udccf doseRange (High only)",permalink:"/fhir-dosage-utils/docs/specs/doseRange/high_only"},next:{title:"\ud83d\udccf doseRange (Low only)",permalink:"/fhir-dosage-utils/docs/specs/doseRange/low_only"}},h={},p=[];function f(e){const n={a:"a",admonition:"admonition",p:"p",...(0,o.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(r.A,{children:[(0,t.jsx)(l.A,{value:"text",label:"Human readable text",default:!0,children:(0,t.jsx)(d.A,{dosage:i})}),(0,t.jsx)(l.A,{value:"json",label:"Dosage",children:(0,t.jsx)(a.default,{language:"json",children:JSON.stringify(i,null,2)})})]}),"\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsxs)(n.p,{children:["Don't forget you can use ",(0,t.jsx)(n.a,{href:"/api/interface/Params",children:"fromFHIRQuantityUnitToString"})," option to fit your needs"]})})]})}function x(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(f,{...e})}):f(e)}},816:(e,n,s)=>{s.d(n,{A:()=>r});var t=s(6540),o=s(6300),a=s(1812),i=s(4848);function r(e){let{dosage:n,config:s,i18nConfig:r}=e;const[l,d]=(0,t.useState)(""),[c,u]=(0,t.useState)(s?.language||"en"),[g,h]=(0,t.useState)(null);(0,t.useEffect)((()=>{!async function(){const e=await o.A.build(s,r);h(e)}()}),[s]),(0,t.useEffect)((()=>{!async function(){if(g){const e=g.fromDosageToText(n);d(e)}}()}),[n,g]);return(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{style:{display:"flex"},children:[(0,i.jsxs)("select",{value:c,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,i.jsx)("option",{value:"en",children:"English"}),(0,i.jsx)("option",{value:"fr",children:"French"}),(0,i.jsx)("option",{value:"nl",children:"Dutch"}),(0,i.jsx)("option",{value:"de",children:"German"})]}),(0,i.jsx)("button",{onClick:async()=>{if(g){await g.changeLanguage(c);const e=g.fromDosageToText(n);d(e)}},children:"Confirm"})]}),(0,i.jsx)("div",{style:{marginTop:"10px"},children:(0,i.jsx)(a.default,{language:"markup",children:(p=l,p.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var p}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[3301],{7398:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>h,contentTitle:()=>u,default:()=>x,frontMatter:()=>c,metadata:()=>g,toc:()=>p});var t=s(4848),a=s(8453),o=s(1812);const i=JSON.parse('{"doseAndRate":[{"doseRange":{"low":{"value":3,"unit":"pills"},"high":{"value":5,"unit":"pills"}}}]}');var r=s(4865),l=s(9365),d=s(816);const c={description:"Low & High",title:"\ud83d\udccf doseRange (Low & High)"},u=void 0,g={id:"specs/doseRange/low_and_high",title:"\ud83d\udccf doseRange (Low & High)",description:"Low & High",source:"@site/docs/specs/doseRange/low_and_high.mdx",sourceDirName:"specs/doseRange",slug:"/specs/doseRange/low_and_high",permalink:"/fhir-dosage-utils/docs/specs/doseRange/low_and_high",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/doseRange/low_and_high.mdx",tags:[],version:"current",frontMatter:{description:"Low & High",title:"\ud83d\udccf doseRange (Low & High)"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udccf doseRange (High only)",permalink:"/fhir-dosage-utils/docs/specs/doseRange/high_only"},next:{title:"\ud83d\udccf doseRange (Low only)",permalink:"/fhir-dosage-utils/docs/specs/doseRange/low_only"}},h={},p=[];function f(e){const n={a:"a",admonition:"admonition",p:"p",...(0,a.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(r.A,{children:[(0,t.jsx)(l.A,{value:"text",label:"Human readable text",default:!0,children:(0,t.jsx)(d.A,{dosage:i})}),(0,t.jsx)(l.A,{value:"json",label:"Dosage",children:(0,t.jsx)(o.default,{language:"json",children:JSON.stringify(i,null,2)})})]}),"\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsxs)(n.p,{children:["Don't forget you can use ",(0,t.jsx)(n.a,{href:"/api/interface/Params",children:"fromFHIRQuantityUnitToString"})," option to fit your needs"]})})]})}function x(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(f,{...e})}):f(e)}},816:(e,n,s)=>{s.d(n,{A:()=>r});var t=s(6540),a=s(6300),o=s(1812),i=s(4848);function r(e){let{dosage:n,config:s,i18nConfig:r}=e;const[l,d]=(0,t.useState)(""),[c,u]=(0,t.useState)(s?.language||"en"),[g,h]=(0,t.useState)(null);(0,t.useEffect)((()=>{!async function(){const e=await a.A.build(s,r);h(e)}()}),[s]),(0,t.useEffect)((()=>{!async function(){if(g){const e=g.fromDosageToText(n);d(e)}}()}),[n,g]);return(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{style:{display:"flex"},children:[(0,i.jsxs)("select",{value:c,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,i.jsx)("option",{value:"en",children:"English"}),(0,i.jsx)("option",{value:"fr",children:"French"}),(0,i.jsx)("option",{value:"nl",children:"Dutch"}),(0,i.jsx)("option",{value:"de",children:"German"})]}),(0,i.jsx)("button",{onClick:async()=>{if(g){await g.changeLanguage(c);const e=g.fromDosageToText(n);d(e)}},children:"Confirm"})]}),(0,i.jsx)("div",{style:{marginTop:"10px"},children:(0,i.jsx)(o.default,{language:"markup",children:(p=l,p.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var p}}}]); \ No newline at end of file diff --git a/assets/js/97031957.4f4e4f95.js b/assets/js/97031957.56b4fd9a.js similarity index 93% rename from assets/js/97031957.4f4e4f95.js rename to assets/js/97031957.56b4fd9a.js index 5fec1820..fed45350 100644 --- a/assets/js/97031957.4f4e4f95.js +++ b/assets/js/97031957.56b4fd9a.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[4222],{3416:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>y,contentTitle:()=>f,default:()=>p,frontMatter:()=>l,metadata:()=>d,toc:()=>x});var a=r(4848),c=r(8453),t=r(1812);const s=JSON.parse('{"timing":{"repeat":{"frequency":1,"frequencyMax":3}}}');var u=r(4865),i=r(9365),o=r(816);const l={description:"frequency and frequencyMax",title:"\ud83d\udd01 frequency and frequencyMax"},f=void 0,d={id:"specs/frequencyFrequencyMax/frequency_and_frequencyMax",title:"\ud83d\udd01 frequency and frequencyMax",description:"frequency and frequencyMax",source:"@site/docs/specs/frequencyFrequencyMax/frequency_and_frequencyMax.mdx",sourceDirName:"specs/frequencyFrequencyMax",slug:"/specs/frequencyFrequencyMax/frequency_and_frequencyMax",permalink:"/fhir-dosage-utils/docs/specs/frequencyFrequencyMax/frequency_and_frequencyMax",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/frequencyFrequencyMax/frequency_and_frequencyMax.mdx",tags:[],version:"current",frontMatter:{description:"frequency and frequencyMax",title:"\ud83d\udd01 frequency and frequencyMax"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udd01 frequencyMax",permalink:"/fhir-dosage-utils/docs/specs/frequencyFrequencyMax/frequencyMax_only"},next:{title:"\ud83d\udd01 frequency",permalink:"/fhir-dosage-utils/docs/specs/frequencyFrequencyMax/frequency_only"}},y={},x=[];function q(e){return(0,a.jsxs)(u.A,{children:[(0,a.jsx)(i.A,{value:"text",label:"Human readable text",default:!0,children:(0,a.jsx)(o.A,{dosage:s})}),(0,a.jsx)(i.A,{value:"json",label:"Dosage",children:(0,a.jsx)(t.default,{language:"json",children:JSON.stringify(s,null,2)})})]})}function p(e={}){const{wrapper:n}={...(0,c.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(q,{...e})}):q()}},816:(e,n,r)=>{r.d(n,{A:()=>u});var a=r(6540),c=r(6300),t=r(1812),s=r(4848);function u(e){let{dosage:n,config:r,i18nConfig:u}=e;const[i,o]=(0,a.useState)(""),[l,f]=(0,a.useState)(r?.language||"en"),[d,y]=(0,a.useState)(null);(0,a.useEffect)((()=>{!async function(){const e=await c.A.build(r,u);y(e)}()}),[r]),(0,a.useEffect)((()=>{!async function(){if(d){const e=d.fromDosageToText(n);o(e)}}()}),[n,d]);return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{style:{display:"flex"},children:[(0,s.jsxs)("select",{value:l,onChange:e=>f(e.target.value),style:{marginRight:"10px"},children:[(0,s.jsx)("option",{value:"en",children:"English"}),(0,s.jsx)("option",{value:"fr",children:"French"}),(0,s.jsx)("option",{value:"nl",children:"Dutch"}),(0,s.jsx)("option",{value:"de",children:"German"})]}),(0,s.jsx)("button",{onClick:async()=>{if(d){await d.changeLanguage(l);const e=d.fromDosageToText(n);o(e)}},children:"Confirm"})]}),(0,s.jsx)("div",{style:{marginTop:"10px"},children:(0,s.jsx)(t.default,{language:"markup",children:(x=i,x.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var x}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[4222],{3416:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>y,contentTitle:()=>f,default:()=>p,frontMatter:()=>l,metadata:()=>d,toc:()=>x});var a=r(4848),c=r(8453),t=r(1812);const s=JSON.parse('{"timing":{"repeat":{"frequency":1,"frequencyMax":3}}}');var u=r(4865),i=r(9365),o=r(816);const l={description:"frequency and frequencyMax",title:"\ud83d\udd01 frequency and frequencyMax"},f=void 0,d={id:"specs/frequencyFrequencyMax/frequency_and_frequencyMax",title:"\ud83d\udd01 frequency and frequencyMax",description:"frequency and frequencyMax",source:"@site/docs/specs/frequencyFrequencyMax/frequency_and_frequencyMax.mdx",sourceDirName:"specs/frequencyFrequencyMax",slug:"/specs/frequencyFrequencyMax/frequency_and_frequencyMax",permalink:"/fhir-dosage-utils/docs/specs/frequencyFrequencyMax/frequency_and_frequencyMax",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/frequencyFrequencyMax/frequency_and_frequencyMax.mdx",tags:[],version:"current",frontMatter:{description:"frequency and frequencyMax",title:"\ud83d\udd01 frequency and frequencyMax"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udd01 frequencyMax",permalink:"/fhir-dosage-utils/docs/specs/frequencyFrequencyMax/frequencyMax_only"},next:{title:"\ud83d\udd01 frequency",permalink:"/fhir-dosage-utils/docs/specs/frequencyFrequencyMax/frequency_only"}},y={},x=[];function q(e){return(0,a.jsxs)(u.A,{children:[(0,a.jsx)(i.A,{value:"text",label:"Human readable text",default:!0,children:(0,a.jsx)(o.A,{dosage:s})}),(0,a.jsx)(i.A,{value:"json",label:"Dosage",children:(0,a.jsx)(t.default,{language:"json",children:JSON.stringify(s,null,2)})})]})}function p(e={}){const{wrapper:n}={...(0,c.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(q,{...e})}):q()}},816:(e,n,r)=>{r.d(n,{A:()=>u});var a=r(6540),c=r(6300),t=r(1812),s=r(4848);function u(e){let{dosage:n,config:r,i18nConfig:u}=e;const[i,o]=(0,a.useState)(""),[l,f]=(0,a.useState)(r?.language||"en"),[d,y]=(0,a.useState)(null);(0,a.useEffect)((()=>{!async function(){const e=await c.A.build(r,u);y(e)}()}),[r]),(0,a.useEffect)((()=>{!async function(){if(d){const e=d.fromDosageToText(n);o(e)}}()}),[n,d]);return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{style:{display:"flex"},children:[(0,s.jsxs)("select",{value:l,onChange:e=>f(e.target.value),style:{marginRight:"10px"},children:[(0,s.jsx)("option",{value:"en",children:"English"}),(0,s.jsx)("option",{value:"fr",children:"French"}),(0,s.jsx)("option",{value:"nl",children:"Dutch"}),(0,s.jsx)("option",{value:"de",children:"German"})]}),(0,s.jsx)("button",{onClick:async()=>{if(d){await d.changeLanguage(l);const e=d.fromDosageToText(n);o(e)}},children:"Confirm"})]}),(0,s.jsx)("div",{style:{marginTop:"10px"},children:(0,s.jsx)(t.default,{language:"markup",children:(x=i,x.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var x}}}]); \ No newline at end of file diff --git a/assets/js/9caecde7.e51a04c0.js b/assets/js/9caecde7.adb12808.js similarity index 95% rename from assets/js/9caecde7.e51a04c0.js rename to assets/js/9caecde7.adb12808.js index 209fa9dd..b1b6808a 100644 --- a/assets/js/9caecde7.e51a04c0.js +++ b/assets/js/9caecde7.adb12808.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[980],{3293:(e,t,o)=>{o.r(t),o.d(t,{assets:()=>p,contentTitle:()=>u,default:()=>y,frontMatter:()=>c,metadata:()=>m,toc:()=>g});var i=o(4848),n=o(8453),s=o(1812);const r=JSON.parse('[{"sequence":1,"text":"Take 4 tablets daily for 7 days starting January 16, 2015","timing":{"repeat":{"boundsPeriod":{"start":"2015-01-16","end":"2015-01-22"},"frequency":1,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral Route"}]},"method":{"coding":[{"system":"http://snomed.info/sct","code":"421521009","display":"Swallow - dosing instruction imperative (qualifier value)"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":4,"unit":"TAB","system":"http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm","code":"TAB"}}]},{"sequence":2,"text":"Take 2 tablets daily for 7 days starting January 23, 2015","timing":{"repeat":{"boundsPeriod":{"start":"2015-01-23","end":"2015-01-29"},"frequency":1,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral Route"}]},"method":{"coding":[{"system":"http://snomed.info/sct","code":"421521009","display":"Swallow - dosing instruction imperative (qualifier value)"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":2,"unit":"TAB","system":"http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm","code":"TAB"}}]},{"sequence":3,"text":"Take 1 tablets daily for 7 days starting January 30, 2015","timing":{"repeat":{"boundsPeriod":{"start":"2015-01-30","end":"2015-02-05"},"frequency":1,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral Route"}]},"method":{"coding":[{"system":"http://snomed.info/sct","code":"421521009","display":"Swallow - dosing instruction imperative (qualifier value)"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":1,"unit":"TAB","system":"http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm","code":"TAB"}}]}]');var d=o(4865),a=o(9365),l=o(8264);const c={description:"Order for Tapering Dose - Prednisone - active with note and multiple DosageInstructions with boundsPeriod",title:"medrx0303"},u=void 0,m={id:"examples/medicationrequest/medrx0303",title:"medrx0303",description:"Order for Tapering Dose - Prednisone - active with note and multiple DosageInstructions with boundsPeriod",source:"@site/docs/examples/medicationrequest/medrx0303.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx0303",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0303",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx0303.mdx",tags:[],version:"current",frontMatter:{description:"Order for Tapering Dose - Prednisone - active with note and multiple DosageInstructions with boundsPeriod",title:"medrx0303"},sidebar:"tutorialSidebar",previous:{title:"medrx0302",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0302"},next:{title:"medrx0305",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0305"}},p={},g=[];function h(e){const t={a:"a",admonition:"admonition",p:"p",...(0,n.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.admonition,{type:"info",children:(0,i.jsxs)(t.p,{children:["Source: ",(0,i.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequest0303.html",children:"HL7"}),' - "Order for Tapering Dose - Prednisone - active with note and multiple DosageInstructions with boundsPeriod"']})}),"\n",(0,i.jsxs)(d.A,{children:[(0,i.jsx)(a.A,{value:"text",label:"Human readable text",default:!0,children:(0,i.jsx)(l.A,{dosages:r,config:{}})}),(0,i.jsx)(a.A,{value:"json",label:"Dosage",children:(0,i.jsx)(s.default,{language:"json",children:JSON.stringify(r,null,2)})})]})]})}function y(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(h,{...e})}):h(e)}},8264:(e,t,o)=>{o.d(t,{A:()=>d});var i=o(6540),n=o(6300),s=o(1812),r=o(4848);function d(e){let{dosages:t,config:o,i18nConfig:d}=e;const[a,l]=(0,i.useState)(""),[c,u]=(0,i.useState)(o?.language||"en"),[m,p]=(0,i.useState)(null);(0,i.useEffect)((()=>{!async function(){const e=await n.A.build(o,d);p(e)}()}),[o]),(0,i.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);l(e)}}()}),[t,m]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:c,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(c);const e=m.fromMultipleDosageToText(t);l(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(s.default,{language:"markup",children:(g=a,g.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[980],{3293:(e,t,o)=>{o.r(t),o.d(t,{assets:()=>p,contentTitle:()=>u,default:()=>y,frontMatter:()=>c,metadata:()=>m,toc:()=>g});var i=o(4848),n=o(8453),s=o(1812);const r=JSON.parse('[{"sequence":1,"text":"Take 4 tablets daily for 7 days starting January 16, 2015","timing":{"repeat":{"boundsPeriod":{"start":"2015-01-16","end":"2015-01-22"},"frequency":1,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral Route"}]},"method":{"coding":[{"system":"http://snomed.info/sct","code":"421521009","display":"Swallow - dosing instruction imperative (qualifier value)"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":4,"unit":"TAB","system":"http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm","code":"TAB"}}]},{"sequence":2,"text":"Take 2 tablets daily for 7 days starting January 23, 2015","timing":{"repeat":{"boundsPeriod":{"start":"2015-01-23","end":"2015-01-29"},"frequency":1,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral Route"}]},"method":{"coding":[{"system":"http://snomed.info/sct","code":"421521009","display":"Swallow - dosing instruction imperative (qualifier value)"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":2,"unit":"TAB","system":"http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm","code":"TAB"}}]},{"sequence":3,"text":"Take 1 tablets daily for 7 days starting January 30, 2015","timing":{"repeat":{"boundsPeriod":{"start":"2015-01-30","end":"2015-02-05"},"frequency":1,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"26643006","display":"Oral Route"}]},"method":{"coding":[{"system":"http://snomed.info/sct","code":"421521009","display":"Swallow - dosing instruction imperative (qualifier value)"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":1,"unit":"TAB","system":"http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm","code":"TAB"}}]}]');var d=o(4865),a=o(9365),l=o(8264);const c={description:"Order for Tapering Dose - Prednisone - active with note and multiple DosageInstructions with boundsPeriod",title:"medrx0303"},u=void 0,m={id:"examples/medicationrequest/medrx0303",title:"medrx0303",description:"Order for Tapering Dose - Prednisone - active with note and multiple DosageInstructions with boundsPeriod",source:"@site/docs/examples/medicationrequest/medrx0303.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx0303",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0303",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx0303.mdx",tags:[],version:"current",frontMatter:{description:"Order for Tapering Dose - Prednisone - active with note and multiple DosageInstructions with boundsPeriod",title:"medrx0303"},sidebar:"tutorialSidebar",previous:{title:"medrx0302",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0302"},next:{title:"medrx0305",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0305"}},p={},g=[];function h(e){const t={a:"a",admonition:"admonition",p:"p",...(0,n.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.admonition,{type:"info",children:(0,i.jsxs)(t.p,{children:["Source: ",(0,i.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequest0303.html",children:"HL7"}),' - "Order for Tapering Dose - Prednisone - active with note and multiple DosageInstructions with boundsPeriod"']})}),"\n",(0,i.jsxs)(d.A,{children:[(0,i.jsx)(a.A,{value:"text",label:"Human readable text",default:!0,children:(0,i.jsx)(l.A,{dosages:r,config:{}})}),(0,i.jsx)(a.A,{value:"json",label:"Dosage",children:(0,i.jsx)(s.default,{language:"json",children:JSON.stringify(r,null,2)})})]})]})}function y(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(h,{...e})}):h(e)}},8264:(e,t,o)=>{o.d(t,{A:()=>d});var i=o(6540),n=o(6300),s=o(1812),r=o(4848);function d(e){let{dosages:t,config:o,i18nConfig:d}=e;const[a,l]=(0,i.useState)(""),[c,u]=(0,i.useState)(o?.language||"en"),[m,p]=(0,i.useState)(null);(0,i.useEffect)((()=>{!async function(){const e=await n.A.build(o,d);p(e)}()}),[o]),(0,i.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);l(e)}}()}),[t,m]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:c,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(c);const e=m.fromMultipleDosageToText(t);l(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(s.default,{language:"markup",children:(g=a,g.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}}}]); \ No newline at end of file diff --git a/assets/js/a5e5ec5a.545468d6.js b/assets/js/a5e5ec5a.c8173fe1.js similarity index 75% rename from assets/js/a5e5ec5a.545468d6.js rename to assets/js/a5e5ec5a.c8173fe1.js index bf1c69ea..8be5a808 100644 --- a/assets/js/a5e5ec5a.545468d6.js +++ b/assets/js/a5e5ec5a.c8173fe1.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[3253],{4861:(e,t,a)=>{a.r(t),a.d(t,{assets:()=>g,contentTitle:()=>u,default:()=>h,frontMatter:()=>c,metadata:()=>p,toc:()=>m});var o=a(4848),r=a(8453),s=a(1812),n=a(9763),i=a(4865),l=a(9365),d=a(8264);const c={description:'Override separator between each part of "Dosage"',title:"\u2796 displaySeparator"},u=void 0,p={id:"custom/displaySeparator",title:"\u2796 displaySeparator",description:'Override separator between each part of "Dosage"',source:"@site/docs/custom/displaySeparator.mdx",sourceDirName:"custom",slug:"/custom/displaySeparator",permalink:"/fhir-dosage-utils/docs/custom/displaySeparator",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/custom/displaySeparator.mdx",tags:[],version:"current",frontMatter:{description:'Override separator between each part of "Dosage"',title:"\u2796 displaySeparator"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udd22 displayOrder",permalink:"/fhir-dosage-utils/docs/custom/displayOrder"},next:{title:"\ud83d\udcbb fromCodeableConceptToString",permalink:"/fhir-dosage-utils/docs/custom/fromCodeableConceptToString"}},g={},m=[];function f(e){const t={code:"code",pre:"pre",...(0,r.R)(),...e.components};return(0,o.jsxs)(i.A,{children:[(0,o.jsx)(l.A,{value:"text",label:"Human readable text",default:!0,children:(0,o.jsx)(d.A,{dosages:n,config:{displaySeparator:" | "}})}),(0,o.jsx)(l.A,{value:"json",label:"Dosage",children:(0,o.jsx)(s.default,{language:"json",children:JSON.stringify(n,null,2)})}),(0,o.jsx)(l.A,{value:"config",label:"Configuration",children:(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{className:"language-js",children:'{\n displaySeparator: " | "\n}\n'})})})]})}function h(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(f,{...e})}):f(e)}},8264:(e,t,a)=>{a.d(t,{A:()=>i});var o=a(6540),r=a(6300),s=a(1812),n=a(4848);function i(e){let{dosages:t,config:a,i18nConfig:i}=e;const[l,d]=(0,o.useState)(""),[c,u]=(0,o.useState)(a?.language||"en"),[p,g]=(0,o.useState)(null);(0,o.useEffect)((()=>{!async function(){const e=await r.A.build(a,i);g(e)}()}),[a]),(0,o.useEffect)((()=>{!async function(){if(p){const e=p.fromMultipleDosageToText(t);d(e)}}()}),[t,p]);return(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{style:{display:"flex"},children:[(0,n.jsxs)("select",{value:c,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,n.jsx)("option",{value:"en",children:"English"}),(0,n.jsx)("option",{value:"fr",children:"French"}),(0,n.jsx)("option",{value:"nl",children:"Dutch"}),(0,n.jsx)("option",{value:"de",children:"German"})]}),(0,n.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(c);const e=p.fromMultipleDosageToText(t);d(e)}},children:"Confirm"})]}),(0,n.jsx)("div",{style:{marginTop:"10px"},children:(0,n.jsx)(s.default,{language:"markup",children:(m=l,m.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var m}},9763:e=>{e.exports=JSON.parse('[{"sequence":1,"text":"Administer in 100cc NS as follows: First treatment infuse over 90 minutes, if no reaction then second treatment infuse over 60 minutes, if no reaction then on third and following treatments give over 30 minutes.","timing":{"event":["2023-01-18T00:00:00.000Z"]},"route":{"coding":[{"system":"http://flatiron.com/CodeSystem/Route","code":"IV"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":5,"unit":"mg/kg"}},{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"calculated","display":"Calculated"}]},"doseQuantity":{"value":340,"unit":"mg"}}]}]')}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[3253],{4861:(e,t,a)=>{a.r(t),a.d(t,{assets:()=>g,contentTitle:()=>u,default:()=>h,frontMatter:()=>c,metadata:()=>p,toc:()=>m});var o=a(4848),r=a(8453),s=a(1812),n=a(9763),i=a(4865),l=a(9365),d=a(8264);const c={description:'Override separator between each part of "Dosage"',title:"\u2796 displaySeparator"},u=void 0,p={id:"custom/displaySeparator",title:"\u2796 displaySeparator",description:'Override separator between each part of "Dosage"',source:"@site/docs/custom/displaySeparator.mdx",sourceDirName:"custom",slug:"/custom/displaySeparator",permalink:"/fhir-dosage-utils/docs/custom/displaySeparator",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/custom/displaySeparator.mdx",tags:[],version:"current",frontMatter:{description:'Override separator between each part of "Dosage"',title:"\u2796 displaySeparator"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udd22 displayOrder",permalink:"/fhir-dosage-utils/docs/custom/displayOrder"},next:{title:"\ud83d\udcbb fromCodeableConceptToString",permalink:"/fhir-dosage-utils/docs/custom/fromCodeableConceptToString"}},g={},m=[];function f(e){const t={code:"code",pre:"pre",...(0,r.R)(),...e.components};return(0,o.jsxs)(i.A,{children:[(0,o.jsx)(l.A,{value:"text",label:"Human readable text",default:!0,children:(0,o.jsx)(d.A,{dosages:n,config:{displaySeparator:" | "}})}),(0,o.jsx)(l.A,{value:"json",label:"Dosage",children:(0,o.jsx)(s.default,{language:"json",children:JSON.stringify(n,null,2)})}),(0,o.jsx)(l.A,{value:"config",label:"Configuration",children:(0,o.jsx)(t.pre,{children:(0,o.jsx)(t.code,{className:"language-js",children:'{\n displaySeparator: " | "\n}\n'})})})]})}function h(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(f,{...e})}):f(e)}},8264:(e,t,a)=>{a.d(t,{A:()=>i});var o=a(6540),r=a(6300),s=a(1812),n=a(4848);function i(e){let{dosages:t,config:a,i18nConfig:i}=e;const[l,d]=(0,o.useState)(""),[c,u]=(0,o.useState)(a?.language||"en"),[p,g]=(0,o.useState)(null);(0,o.useEffect)((()=>{!async function(){const e=await r.A.build(a,i);g(e)}()}),[a]),(0,o.useEffect)((()=>{!async function(){if(p){const e=p.fromMultipleDosageToText(t);d(e)}}()}),[t,p]);return(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{style:{display:"flex"},children:[(0,n.jsxs)("select",{value:c,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,n.jsx)("option",{value:"en",children:"English"}),(0,n.jsx)("option",{value:"fr",children:"French"}),(0,n.jsx)("option",{value:"nl",children:"Dutch"}),(0,n.jsx)("option",{value:"de",children:"German"})]}),(0,n.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(c);const e=p.fromMultipleDosageToText(t);d(e)}},children:"Confirm"})]}),(0,n.jsx)("div",{style:{marginTop:"10px"},children:(0,n.jsx)(s.default,{language:"markup",children:(m=l,m.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var m}},9763:e=>{e.exports=JSON.parse('[{"sequence":1,"text":"Administer in 100cc NS as follows: First treatment infuse over 90 minutes, if no reaction then second treatment infuse over 60 minutes, if no reaction then on third and following treatments give over 30 minutes.","timing":{"event":["2023-01-18T00:00:00.000Z"]},"route":{"coding":[{"system":"http://flatiron.com/CodeSystem/Route","code":"IV"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":5,"unit":"mg/kg"}},{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"calculated","display":"Calculated"}]},"doseQuantity":{"value":340,"unit":"mg"}}]}]')}}]); \ No newline at end of file diff --git a/assets/js/aa77b6a8.d613690d.js b/assets/js/aa77b6a8.e8e746b6.js similarity index 81% rename from assets/js/aa77b6a8.d613690d.js rename to assets/js/aa77b6a8.e8e746b6.js index 47df6f64..53e5623d 100644 --- a/assets/js/aa77b6a8.d613690d.js +++ b/assets/js/aa77b6a8.e8e746b6.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[4048],{8585:(t,e,n)=>{n.r(e),n.d(e,{assets:()=>f,contentTitle:()=>d,default:()=>x,frontMatter:()=>l,metadata:()=>p,toc:()=>g});var i=n(4848),s=n(8453),a=n(1812);const r=JSON.parse('{"patientInstruction":"patientInstruction"}');var o=n(4865),c=n(9365),u=n(816);const l={description:"patientInstruction",title:"\ud83d\udccb patientInstruction"},d=void 0,p={id:"specs/patientInstruction/patientInstruction",title:"\ud83d\udccb patientInstruction",description:"patientInstruction",source:"@site/docs/specs/patientInstruction/patientInstruction.mdx",sourceDirName:"specs/patientInstruction",slug:"/specs/patientInstruction/",permalink:"/fhir-dosage-utils/docs/specs/patientInstruction/",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/patientInstruction/patientInstruction.mdx",tags:[],version:"current",frontMatter:{description:"patientInstruction",title:"\ud83d\udccb patientInstruction"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udccb patientInstruction",permalink:"/fhir-dosage-utils/docs/category/-patientinstruction"},next:{title:"\u267b\ufe0f periodPeriodMax",permalink:"/fhir-dosage-utils/docs/category/\ufe0f-periodperiodmax"}},f={},g=[];function h(t){return(0,i.jsxs)(o.A,{children:[(0,i.jsx)(c.A,{value:"text",label:"Human readable text",default:!0,children:(0,i.jsx)(u.A,{dosage:r})}),(0,i.jsx)(c.A,{value:"json",label:"Dosage",children:(0,i.jsx)(a.default,{language:"json",children:JSON.stringify(r,null,2)})})]})}function x(t={}){const{wrapper:e}={...(0,s.R)(),...t.components};return e?(0,i.jsx)(e,{...t,children:(0,i.jsx)(h,{...t})}):h()}},816:(t,e,n)=>{n.d(e,{A:()=>o});var i=n(6540),s=n(6300),a=n(1812),r=n(4848);function o(t){let{dosage:e,config:n,i18nConfig:o}=t;const[c,u]=(0,i.useState)(""),[l,d]=(0,i.useState)(n?.language||"en"),[p,f]=(0,i.useState)(null);(0,i.useEffect)((()=>{!async function(){const t=await s.A.build(n,o);f(t)}()}),[n]),(0,i.useEffect)((()=>{!async function(){if(p){const t=p.fromDosageToText(e);u(t)}}()}),[e,p]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:l,onChange:t=>d(t.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(l);const t=p.fromDosageToText(e);u(t)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(a.default,{language:"markup",children:(g=c,g.replace(/"/g,'"').replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(e)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(t,e){return String.fromCharCode(parseInt(e,16))})))})})]});var g}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[4048],{8585:(t,e,n)=>{n.r(e),n.d(e,{assets:()=>g,contentTitle:()=>d,default:()=>x,frontMatter:()=>l,metadata:()=>p,toc:()=>f});var i=n(4848),s=n(8453),a=n(1812);const r=JSON.parse('{"patientInstruction":"patientInstruction"}');var o=n(4865),c=n(9365),u=n(816);const l={description:"patientInstruction",title:"\ud83d\udccb patientInstruction"},d=void 0,p={id:"specs/patientInstruction/patientInstruction",title:"\ud83d\udccb patientInstruction",description:"patientInstruction",source:"@site/docs/specs/patientInstruction/patientInstruction.mdx",sourceDirName:"specs/patientInstruction",slug:"/specs/patientInstruction/",permalink:"/fhir-dosage-utils/docs/specs/patientInstruction/",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/patientInstruction/patientInstruction.mdx",tags:[],version:"current",frontMatter:{description:"patientInstruction",title:"\ud83d\udccb patientInstruction"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udccb patientInstruction",permalink:"/fhir-dosage-utils/docs/category/-patientinstruction"},next:{title:"\u267b\ufe0f periodPeriodMax",permalink:"/fhir-dosage-utils/docs/category/\ufe0f-periodperiodmax"}},g={},f=[];function h(t){return(0,i.jsxs)(o.A,{children:[(0,i.jsx)(c.A,{value:"text",label:"Human readable text",default:!0,children:(0,i.jsx)(u.A,{dosage:r})}),(0,i.jsx)(c.A,{value:"json",label:"Dosage",children:(0,i.jsx)(a.default,{language:"json",children:JSON.stringify(r,null,2)})})]})}function x(t={}){const{wrapper:e}={...(0,s.R)(),...t.components};return e?(0,i.jsx)(e,{...t,children:(0,i.jsx)(h,{...t})}):h()}},816:(t,e,n)=>{n.d(e,{A:()=>o});var i=n(6540),s=n(6300),a=n(1812),r=n(4848);function o(t){let{dosage:e,config:n,i18nConfig:o}=t;const[c,u]=(0,i.useState)(""),[l,d]=(0,i.useState)(n?.language||"en"),[p,g]=(0,i.useState)(null);(0,i.useEffect)((()=>{!async function(){const t=await s.A.build(n,o);g(t)}()}),[n]),(0,i.useEffect)((()=>{!async function(){if(p){const t=p.fromDosageToText(e);u(t)}}()}),[e,p]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:l,onChange:t=>d(t.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(l);const t=p.fromDosageToText(e);u(t)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(a.default,{language:"markup",children:(f=c,f.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(e)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(t,e){return String.fromCharCode(parseInt(e,16))})))})})]});var f}}}]); \ No newline at end of file diff --git a/assets/js/ab10b176.0f3319b5.js b/assets/js/ab10b176.ed3b23ad.js similarity index 73% rename from assets/js/ab10b176.0f3319b5.js rename to assets/js/ab10b176.ed3b23ad.js index e56e504c..5d8d6d4c 100644 --- a/assets/js/ab10b176.0f3319b5.js +++ b/assets/js/ab10b176.ed3b23ad.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[3421],{909:(e,i,r)=>{r.r(i),r.d(i,{assets:()=>x,contentTitle:()=>p,default:()=>h,frontMatter:()=>l,metadata:()=>u,toc:()=>f});var o=r(4848),a=r(8453),t=r(1812);const n=JSON.parse('{"timing":{"repeat":{"period":1,"periodMax":3,"periodUnit":"d"}}}');var d=r(4865),s=r(9365),c=r(816);const l={description:"period & periodMax",title:"\u267b\ufe0f period & periodMax"},p=void 0,u={id:"specs/periodPeriodMax/period_and_periodMax",title:"\u267b\ufe0f period & periodMax",description:"period & periodMax",source:"@site/docs/specs/periodPeriodMax/period_and_periodMax.mdx",sourceDirName:"specs/periodPeriodMax",slug:"/specs/periodPeriodMax/period_and_periodMax",permalink:"/fhir-dosage-utils/docs/specs/periodPeriodMax/period_and_periodMax",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/periodPeriodMax/period_and_periodMax.mdx",tags:[],version:"current",frontMatter:{description:"period & periodMax",title:"\u267b\ufe0f period & periodMax"},sidebar:"tutorialSidebar",previous:{title:"\u267b\ufe0f periodMax (only)",permalink:"/fhir-dosage-utils/docs/specs/periodPeriodMax/periodMax_only"},next:{title:"\u267b\ufe0f period (only)",permalink:"/fhir-dosage-utils/docs/specs/periodPeriodMax/period_only"}},x={},f=[];function g(e){return(0,o.jsxs)(d.A,{children:[(0,o.jsx)(s.A,{value:"text",label:"Human readable text",default:!0,children:(0,o.jsx)(c.A,{dosage:n})}),(0,o.jsx)(s.A,{value:"json",label:"Dosage",children:(0,o.jsx)(t.default,{language:"json",children:JSON.stringify(n,null,2)})})]})}function h(e={}){const{wrapper:i}={...(0,a.R)(),...e.components};return i?(0,o.jsx)(i,{...e,children:(0,o.jsx)(g,{...e})}):g()}},816:(e,i,r)=>{r.d(i,{A:()=>d});var o=r(6540),a=r(6300),t=r(1812),n=r(4848);function d(e){let{dosage:i,config:r,i18nConfig:d}=e;const[s,c]=(0,o.useState)(""),[l,p]=(0,o.useState)(r?.language||"en"),[u,x]=(0,o.useState)(null);(0,o.useEffect)((()=>{!async function(){const e=await a.A.build(r,d);x(e)}()}),[r]),(0,o.useEffect)((()=>{!async function(){if(u){const e=u.fromDosageToText(i);c(e)}}()}),[i,u]);return(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{style:{display:"flex"},children:[(0,n.jsxs)("select",{value:l,onChange:e=>p(e.target.value),style:{marginRight:"10px"},children:[(0,n.jsx)("option",{value:"en",children:"English"}),(0,n.jsx)("option",{value:"fr",children:"French"}),(0,n.jsx)("option",{value:"nl",children:"Dutch"}),(0,n.jsx)("option",{value:"de",children:"German"})]}),(0,n.jsx)("button",{onClick:async()=>{if(u){await u.changeLanguage(l);const e=u.fromDosageToText(i);c(e)}},children:"Confirm"})]}),(0,n.jsx)("div",{style:{marginTop:"10px"},children:(0,n.jsx)(t.default,{language:"markup",children:(f=s,f.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,i){return String.fromCharCode(i)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,i){return String.fromCharCode(parseInt(i,16))})))})})]});var f}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[3421],{909:(e,i,r)=>{r.r(i),r.d(i,{assets:()=>x,contentTitle:()=>l,default:()=>h,frontMatter:()=>c,metadata:()=>u,toc:()=>f});var o=r(4848),a=r(8453),t=r(1812);const n=JSON.parse('{"timing":{"repeat":{"period":1,"periodMax":3,"periodUnit":"d"}}}');var d=r(4865),s=r(9365),p=r(816);const c={description:"period & periodMax",title:"\u267b\ufe0f period & periodMax"},l=void 0,u={id:"specs/periodPeriodMax/period_and_periodMax",title:"\u267b\ufe0f period & periodMax",description:"period & periodMax",source:"@site/docs/specs/periodPeriodMax/period_and_periodMax.mdx",sourceDirName:"specs/periodPeriodMax",slug:"/specs/periodPeriodMax/period_and_periodMax",permalink:"/fhir-dosage-utils/docs/specs/periodPeriodMax/period_and_periodMax",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/periodPeriodMax/period_and_periodMax.mdx",tags:[],version:"current",frontMatter:{description:"period & periodMax",title:"\u267b\ufe0f period & periodMax"},sidebar:"tutorialSidebar",previous:{title:"\u267b\ufe0f periodMax (only)",permalink:"/fhir-dosage-utils/docs/specs/periodPeriodMax/periodMax_only"},next:{title:"\u267b\ufe0f period (only)",permalink:"/fhir-dosage-utils/docs/specs/periodPeriodMax/period_only"}},x={},f=[];function g(e){return(0,o.jsxs)(d.A,{children:[(0,o.jsx)(s.A,{value:"text",label:"Human readable text",default:!0,children:(0,o.jsx)(p.A,{dosage:n})}),(0,o.jsx)(s.A,{value:"json",label:"Dosage",children:(0,o.jsx)(t.default,{language:"json",children:JSON.stringify(n,null,2)})})]})}function h(e={}){const{wrapper:i}={...(0,a.R)(),...e.components};return i?(0,o.jsx)(i,{...e,children:(0,o.jsx)(g,{...e})}):g()}},816:(e,i,r)=>{r.d(i,{A:()=>d});var o=r(6540),a=r(6300),t=r(1812),n=r(4848);function d(e){let{dosage:i,config:r,i18nConfig:d}=e;const[s,p]=(0,o.useState)(""),[c,l]=(0,o.useState)(r?.language||"en"),[u,x]=(0,o.useState)(null);(0,o.useEffect)((()=>{!async function(){const e=await a.A.build(r,d);x(e)}()}),[r]),(0,o.useEffect)((()=>{!async function(){if(u){const e=u.fromDosageToText(i);p(e)}}()}),[i,u]);return(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{style:{display:"flex"},children:[(0,n.jsxs)("select",{value:c,onChange:e=>l(e.target.value),style:{marginRight:"10px"},children:[(0,n.jsx)("option",{value:"en",children:"English"}),(0,n.jsx)("option",{value:"fr",children:"French"}),(0,n.jsx)("option",{value:"nl",children:"Dutch"}),(0,n.jsx)("option",{value:"de",children:"German"})]}),(0,n.jsx)("button",{onClick:async()=>{if(u){await u.changeLanguage(c);const e=u.fromDosageToText(i);p(e)}},children:"Confirm"})]}),(0,n.jsx)("div",{style:{marginTop:"10px"},children:(0,n.jsx)(t.default,{language:"markup",children:(f=s,f.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,i){return String.fromCharCode(i)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,i){return String.fromCharCode(parseInt(i,16))})))})})]});var f}}}]); \ No newline at end of file diff --git a/assets/js/ad90b1c0.bdab94b2.js b/assets/js/ad90b1c0.02edc0aa.js similarity index 81% rename from assets/js/ad90b1c0.bdab94b2.js rename to assets/js/ad90b1c0.02edc0aa.js index 16f6300b..b1ff94f6 100644 --- a/assets/js/ad90b1c0.bdab94b2.js +++ b/assets/js/ad90b1c0.02edc0aa.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[513],{2223:(t,e,a)=>{a.r(e),a.d(e,{assets:()=>f,contentTitle:()=>d,default:()=>x,frontMatter:()=>l,metadata:()=>p,toc:()=>g});var n=a(4848),i=a(8453),r=a(1812);const s=JSON.parse('{"doseAndRate":[{"rateQuantity":{"value":3,"unit":"pills"}}]}');var o=a(4865),u=a(9365),c=a(816);const l={description:"rateQuantity",title:"\u23f2\ufe0f rateQuantity"},d=void 0,p={id:"specs/rateQuantity/rateQuantity",title:"\u23f2\ufe0f rateQuantity",description:"rateQuantity",source:"@site/docs/specs/rateQuantity/rateQuantity.mdx",sourceDirName:"specs/rateQuantity",slug:"/specs/rateQuantity/",permalink:"/fhir-dosage-utils/docs/specs/rateQuantity/",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/rateQuantity/rateQuantity.mdx",tags:[],version:"current",frontMatter:{description:"rateQuantity",title:"\u23f2\ufe0f rateQuantity"},sidebar:"tutorialSidebar",previous:{title:"\u23f2\ufe0f rateQuantity",permalink:"/fhir-dosage-utils/docs/category/\ufe0f-ratequantity"},next:{title:"\u2696\ufe0f rateRange",permalink:"/fhir-dosage-utils/docs/category/\ufe0f-raterange"}},f={},g=[];function h(t){const e={a:"a",admonition:"admonition",p:"p",...(0,i.R)(),...t.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(o.A,{children:[(0,n.jsx)(u.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(c.A,{dosage:s})}),(0,n.jsx)(u.A,{value:"json",label:"Dosage",children:(0,n.jsx)(r.default,{language:"json",children:JSON.stringify(s,null,2)})})]}),"\n",(0,n.jsx)(e.admonition,{type:"tip",children:(0,n.jsxs)(e.p,{children:["Don't forget you can use ",(0,n.jsx)(e.a,{href:"/api/interface/Params",children:"fromFHIRQuantityUnitToString"})," option to fit your needs"]})})]})}function x(t={}){const{wrapper:e}={...(0,i.R)(),...t.components};return e?(0,n.jsx)(e,{...t,children:(0,n.jsx)(h,{...t})}):h(t)}},816:(t,e,a)=>{a.d(e,{A:()=>o});var n=a(6540),i=a(6300),r=a(1812),s=a(4848);function o(t){let{dosage:e,config:a,i18nConfig:o}=t;const[u,c]=(0,n.useState)(""),[l,d]=(0,n.useState)(a?.language||"en"),[p,f]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const t=await i.A.build(a,o);f(t)}()}),[a]),(0,n.useEffect)((()=>{!async function(){if(p){const t=p.fromDosageToText(e);c(t)}}()}),[e,p]);return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{style:{display:"flex"},children:[(0,s.jsxs)("select",{value:l,onChange:t=>d(t.target.value),style:{marginRight:"10px"},children:[(0,s.jsx)("option",{value:"en",children:"English"}),(0,s.jsx)("option",{value:"fr",children:"French"}),(0,s.jsx)("option",{value:"nl",children:"Dutch"}),(0,s.jsx)("option",{value:"de",children:"German"})]}),(0,s.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(l);const t=p.fromDosageToText(e);c(t)}},children:"Confirm"})]}),(0,s.jsx)("div",{style:{marginTop:"10px"},children:(0,s.jsx)(r.default,{language:"markup",children:(g=u,g.replace(/"/g,'"').replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(e)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(t,e){return String.fromCharCode(parseInt(e,16))})))})})]});var g}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[513],{2223:(t,e,a)=>{a.r(e),a.d(e,{assets:()=>g,contentTitle:()=>d,default:()=>x,frontMatter:()=>l,metadata:()=>p,toc:()=>f});var n=a(4848),i=a(8453),r=a(1812);const s=JSON.parse('{"doseAndRate":[{"rateQuantity":{"value":3,"unit":"pills"}}]}');var o=a(4865),u=a(9365),c=a(816);const l={description:"rateQuantity",title:"\u23f2\ufe0f rateQuantity"},d=void 0,p={id:"specs/rateQuantity/rateQuantity",title:"\u23f2\ufe0f rateQuantity",description:"rateQuantity",source:"@site/docs/specs/rateQuantity/rateQuantity.mdx",sourceDirName:"specs/rateQuantity",slug:"/specs/rateQuantity/",permalink:"/fhir-dosage-utils/docs/specs/rateQuantity/",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/rateQuantity/rateQuantity.mdx",tags:[],version:"current",frontMatter:{description:"rateQuantity",title:"\u23f2\ufe0f rateQuantity"},sidebar:"tutorialSidebar",previous:{title:"\u23f2\ufe0f rateQuantity",permalink:"/fhir-dosage-utils/docs/category/\ufe0f-ratequantity"},next:{title:"\u2696\ufe0f rateRange",permalink:"/fhir-dosage-utils/docs/category/\ufe0f-raterange"}},g={},f=[];function h(t){const e={a:"a",admonition:"admonition",p:"p",...(0,i.R)(),...t.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(o.A,{children:[(0,n.jsx)(u.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(c.A,{dosage:s})}),(0,n.jsx)(u.A,{value:"json",label:"Dosage",children:(0,n.jsx)(r.default,{language:"json",children:JSON.stringify(s,null,2)})})]}),"\n",(0,n.jsx)(e.admonition,{type:"tip",children:(0,n.jsxs)(e.p,{children:["Don't forget you can use ",(0,n.jsx)(e.a,{href:"/api/interface/Params",children:"fromFHIRQuantityUnitToString"})," option to fit your needs"]})})]})}function x(t={}){const{wrapper:e}={...(0,i.R)(),...t.components};return e?(0,n.jsx)(e,{...t,children:(0,n.jsx)(h,{...t})}):h(t)}},816:(t,e,a)=>{a.d(e,{A:()=>o});var n=a(6540),i=a(6300),r=a(1812),s=a(4848);function o(t){let{dosage:e,config:a,i18nConfig:o}=t;const[u,c]=(0,n.useState)(""),[l,d]=(0,n.useState)(a?.language||"en"),[p,g]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const t=await i.A.build(a,o);g(t)}()}),[a]),(0,n.useEffect)((()=>{!async function(){if(p){const t=p.fromDosageToText(e);c(t)}}()}),[e,p]);return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{style:{display:"flex"},children:[(0,s.jsxs)("select",{value:l,onChange:t=>d(t.target.value),style:{marginRight:"10px"},children:[(0,s.jsx)("option",{value:"en",children:"English"}),(0,s.jsx)("option",{value:"fr",children:"French"}),(0,s.jsx)("option",{value:"nl",children:"Dutch"}),(0,s.jsx)("option",{value:"de",children:"German"})]}),(0,s.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(l);const t=p.fromDosageToText(e);c(t)}},children:"Confirm"})]}),(0,s.jsx)("div",{style:{marginTop:"10px"},children:(0,s.jsx)(r.default,{language:"markup",children:(f=u,f.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(e)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(t,e){return String.fromCharCode(parseInt(e,16))})))})})]});var f}}}]); \ No newline at end of file diff --git a/assets/js/afe92c27.7debc254.js b/assets/js/afe92c27.9b6caeba.js similarity index 58% rename from assets/js/afe92c27.7debc254.js rename to assets/js/afe92c27.9b6caeba.js index 0b53f59a..84b3b74d 100644 --- a/assets/js/afe92c27.7debc254.js +++ b/assets/js/afe92c27.9b6caeba.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[4088],{2390:(e,r,s)=>{s.r(r),s.d(r,{assets:()=>x,contentTitle:()=>u,default:()=>g,frontMatter:()=>l,metadata:()=>m,toc:()=>p});var o=s(4848),t=s(8453),n=s(1812);const a=JSON.parse('{"maxDosePerPeriod":{"numerator":{"value":3,"unit":"pills"},"denominator":{"value":5,"unit":"hours"}}}');var i=s(4865),d=s(9365),c=s(816);const l={description:"maxDosePerPeriod (R4)",title:"\u23f3 maxDosePerPeriod (R4)"},u=void 0,m={id:"specs/maxDosePerPeriod/r4",title:"\u23f3 maxDosePerPeriod (R4)",description:"maxDosePerPeriod (R4)",source:"@site/docs/specs/maxDosePerPeriod/r4.mdx",sourceDirName:"specs/maxDosePerPeriod",slug:"/specs/maxDosePerPeriod/r4",permalink:"/fhir-dosage-utils/docs/specs/maxDosePerPeriod/r4",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/maxDosePerPeriod/r4.mdx",tags:[],version:"current",frontMatter:{description:"maxDosePerPeriod (R4)",title:"\u23f3 maxDosePerPeriod (R4)"},sidebar:"tutorialSidebar",previous:{title:"\u23f3 maxDosePerPeriod",permalink:"/fhir-dosage-utils/docs/category/-maxdoseperperiod"},next:{title:"\u23f3 maxDosePerPeriod (R5)",permalink:"/fhir-dosage-utils/docs/specs/maxDosePerPeriod/r5"}},x={},p=[];function f(e){const r={a:"a",admonition:"admonition",p:"p",...(0,t.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(i.A,{children:[(0,o.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,o.jsx)(c.A,{dosage:a})}),(0,o.jsx)(d.A,{value:"json",label:"Dosage",children:(0,o.jsx)(n.default,{language:"json",children:JSON.stringify(a,null,2)})})]}),"\n",(0,o.jsx)(r.admonition,{type:"tip",children:(0,o.jsxs)(r.p,{children:["Don't forget you can use ",(0,o.jsx)(r.a,{href:"/api/interface/Params",children:"fromFHIRQuantityUnitToString"})," option to fit your needs"]})})]})}function g(e={}){const{wrapper:r}={...(0,t.R)(),...e.components};return r?(0,o.jsx)(r,{...e,children:(0,o.jsx)(f,{...e})}):f(e)}},816:(e,r,s)=>{s.d(r,{A:()=>i});var o=s(6540),t=s(6300),n=s(1812),a=s(4848);function i(e){let{dosage:r,config:s,i18nConfig:i}=e;const[d,c]=(0,o.useState)(""),[l,u]=(0,o.useState)(s?.language||"en"),[m,x]=(0,o.useState)(null);(0,o.useEffect)((()=>{!async function(){const e=await t.A.build(s,i);x(e)}()}),[s]),(0,o.useEffect)((()=>{!async function(){if(m){const e=m.fromDosageToText(r);c(e)}}()}),[r,m]);return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{style:{display:"flex"},children:[(0,a.jsxs)("select",{value:l,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,a.jsx)("option",{value:"en",children:"English"}),(0,a.jsx)("option",{value:"fr",children:"French"}),(0,a.jsx)("option",{value:"nl",children:"Dutch"}),(0,a.jsx)("option",{value:"de",children:"German"})]}),(0,a.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(l);const e=m.fromDosageToText(r);c(e)}},children:"Confirm"})]}),(0,a.jsx)("div",{style:{marginTop:"10px"},children:(0,a.jsx)(n.default,{language:"markup",children:(p=d,p.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,r){return String.fromCharCode(r)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,r){return String.fromCharCode(parseInt(r,16))})))})})]});var p}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[4088],{2390:(e,r,s)=>{s.r(r),s.d(r,{assets:()=>p,contentTitle:()=>u,default:()=>g,frontMatter:()=>l,metadata:()=>m,toc:()=>x});var o=s(4848),t=s(8453),a=s(1812);const n=JSON.parse('{"maxDosePerPeriod":{"numerator":{"value":3,"unit":"pills"},"denominator":{"value":5,"unit":"hours"}}}');var i=s(4865),d=s(9365),c=s(816);const l={description:"maxDosePerPeriod (R4)",title:"\u23f3 maxDosePerPeriod (R4)"},u=void 0,m={id:"specs/maxDosePerPeriod/r4",title:"\u23f3 maxDosePerPeriod (R4)",description:"maxDosePerPeriod (R4)",source:"@site/docs/specs/maxDosePerPeriod/r4.mdx",sourceDirName:"specs/maxDosePerPeriod",slug:"/specs/maxDosePerPeriod/r4",permalink:"/fhir-dosage-utils/docs/specs/maxDosePerPeriod/r4",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/maxDosePerPeriod/r4.mdx",tags:[],version:"current",frontMatter:{description:"maxDosePerPeriod (R4)",title:"\u23f3 maxDosePerPeriod (R4)"},sidebar:"tutorialSidebar",previous:{title:"\u23f3 maxDosePerPeriod",permalink:"/fhir-dosage-utils/docs/category/-maxdoseperperiod"},next:{title:"\u23f3 maxDosePerPeriod (R5)",permalink:"/fhir-dosage-utils/docs/specs/maxDosePerPeriod/r5"}},p={},x=[];function f(e){const r={a:"a",admonition:"admonition",p:"p",...(0,t.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(i.A,{children:[(0,o.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,o.jsx)(c.A,{dosage:n})}),(0,o.jsx)(d.A,{value:"json",label:"Dosage",children:(0,o.jsx)(a.default,{language:"json",children:JSON.stringify(n,null,2)})})]}),"\n",(0,o.jsx)(r.admonition,{type:"tip",children:(0,o.jsxs)(r.p,{children:["Don't forget you can use ",(0,o.jsx)(r.a,{href:"/api/interface/Params",children:"fromFHIRQuantityUnitToString"})," option to fit your needs"]})})]})}function g(e={}){const{wrapper:r}={...(0,t.R)(),...e.components};return r?(0,o.jsx)(r,{...e,children:(0,o.jsx)(f,{...e})}):f(e)}},816:(e,r,s)=>{s.d(r,{A:()=>i});var o=s(6540),t=s(6300),a=s(1812),n=s(4848);function i(e){let{dosage:r,config:s,i18nConfig:i}=e;const[d,c]=(0,o.useState)(""),[l,u]=(0,o.useState)(s?.language||"en"),[m,p]=(0,o.useState)(null);(0,o.useEffect)((()=>{!async function(){const e=await t.A.build(s,i);p(e)}()}),[s]),(0,o.useEffect)((()=>{!async function(){if(m){const e=m.fromDosageToText(r);c(e)}}()}),[r,m]);return(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{style:{display:"flex"},children:[(0,n.jsxs)("select",{value:l,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,n.jsx)("option",{value:"en",children:"English"}),(0,n.jsx)("option",{value:"fr",children:"French"}),(0,n.jsx)("option",{value:"nl",children:"Dutch"}),(0,n.jsx)("option",{value:"de",children:"German"})]}),(0,n.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(l);const e=m.fromDosageToText(r);c(e)}},children:"Confirm"})]}),(0,n.jsx)("div",{style:{marginTop:"10px"},children:(0,n.jsx)(a.default,{language:"markup",children:(x=d,x.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,r){return String.fromCharCode(r)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,r){return String.fromCharCode(parseInt(r,16))})))})})]});var x}}}]); \ No newline at end of file diff --git a/assets/js/b30e43e1.ca945d29.js b/assets/js/b30e43e1.8fce9f6d.js similarity index 76% rename from assets/js/b30e43e1.ca945d29.js rename to assets/js/b30e43e1.8fce9f6d.js index 7661fbc2..ef7e1f22 100644 --- a/assets/js/b30e43e1.ca945d29.js +++ b/assets/js/b30e43e1.8fce9f6d.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[1146],{7874:(e,n,o)=>{o.r(n),o.d(n,{assets:()=>p,contentTitle:()=>u,default:()=>x,frontMatter:()=>c,metadata:()=>g,toc:()=>f});var t=o(4848),s=o(8453),a=o(1812);const i=JSON.parse('{"doseAndRate":[{"doseRange":{"low":{"value":3,"unit":"pills"}}}]}');var r=o(4865),l=o(9365),d=o(816);const c={description:"Low only",title:"\ud83d\udccf doseRange (Low only)"},u=void 0,g={id:"specs/doseRange/low_only",title:"\ud83d\udccf doseRange (Low only)",description:"Low only",source:"@site/docs/specs/doseRange/low_only.mdx",sourceDirName:"specs/doseRange",slug:"/specs/doseRange/low_only",permalink:"/fhir-dosage-utils/docs/specs/doseRange/low_only",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/doseRange/low_only.mdx",tags:[],version:"current",frontMatter:{description:"Low only",title:"\ud83d\udccf doseRange (Low only)"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udccf doseRange (Low & High)",permalink:"/fhir-dosage-utils/docs/specs/doseRange/low_and_high"},next:{title:"\u23f0 durationDurationMax",permalink:"/fhir-dosage-utils/docs/category/-durationdurationmax"}},p={},f=[];function h(e){const n={a:"a",admonition:"admonition",p:"p",...(0,s.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(r.A,{children:[(0,t.jsx)(l.A,{value:"text",label:"Human readable text",default:!0,children:(0,t.jsx)(d.A,{dosage:i})}),(0,t.jsx)(l.A,{value:"json",label:"Dosage",children:(0,t.jsx)(a.default,{language:"json",children:JSON.stringify(i,null,2)})})]}),"\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsxs)(n.p,{children:["Don't forget you can use ",(0,t.jsx)(n.a,{href:"/api/interface/Params",children:"fromFHIRQuantityUnitToString"})," option to fit your needs"]})})]})}function x(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(h,{...e})}):h(e)}},816:(e,n,o)=>{o.d(n,{A:()=>r});var t=o(6540),s=o(6300),a=o(1812),i=o(4848);function r(e){let{dosage:n,config:o,i18nConfig:r}=e;const[l,d]=(0,t.useState)(""),[c,u]=(0,t.useState)(o?.language||"en"),[g,p]=(0,t.useState)(null);(0,t.useEffect)((()=>{!async function(){const e=await s.A.build(o,r);p(e)}()}),[o]),(0,t.useEffect)((()=>{!async function(){if(g){const e=g.fromDosageToText(n);d(e)}}()}),[n,g]);return(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{style:{display:"flex"},children:[(0,i.jsxs)("select",{value:c,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,i.jsx)("option",{value:"en",children:"English"}),(0,i.jsx)("option",{value:"fr",children:"French"}),(0,i.jsx)("option",{value:"nl",children:"Dutch"}),(0,i.jsx)("option",{value:"de",children:"German"})]}),(0,i.jsx)("button",{onClick:async()=>{if(g){await g.changeLanguage(c);const e=g.fromDosageToText(n);d(e)}},children:"Confirm"})]}),(0,i.jsx)("div",{style:{marginTop:"10px"},children:(0,i.jsx)(a.default,{language:"markup",children:(f=l,f.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var f}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[1146],{7874:(e,n,o)=>{o.r(n),o.d(n,{assets:()=>p,contentTitle:()=>u,default:()=>x,frontMatter:()=>d,metadata:()=>g,toc:()=>f});var t=o(4848),s=o(8453),a=o(1812);const i=JSON.parse('{"doseAndRate":[{"doseRange":{"low":{"value":3,"unit":"pills"}}}]}');var r=o(4865),l=o(9365),c=o(816);const d={description:"Low only",title:"\ud83d\udccf doseRange (Low only)"},u=void 0,g={id:"specs/doseRange/low_only",title:"\ud83d\udccf doseRange (Low only)",description:"Low only",source:"@site/docs/specs/doseRange/low_only.mdx",sourceDirName:"specs/doseRange",slug:"/specs/doseRange/low_only",permalink:"/fhir-dosage-utils/docs/specs/doseRange/low_only",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/doseRange/low_only.mdx",tags:[],version:"current",frontMatter:{description:"Low only",title:"\ud83d\udccf doseRange (Low only)"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udccf doseRange (Low & High)",permalink:"/fhir-dosage-utils/docs/specs/doseRange/low_and_high"},next:{title:"\u23f0 durationDurationMax",permalink:"/fhir-dosage-utils/docs/category/-durationdurationmax"}},p={},f=[];function h(e){const n={a:"a",admonition:"admonition",p:"p",...(0,s.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(r.A,{children:[(0,t.jsx)(l.A,{value:"text",label:"Human readable text",default:!0,children:(0,t.jsx)(c.A,{dosage:i})}),(0,t.jsx)(l.A,{value:"json",label:"Dosage",children:(0,t.jsx)(a.default,{language:"json",children:JSON.stringify(i,null,2)})})]}),"\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsxs)(n.p,{children:["Don't forget you can use ",(0,t.jsx)(n.a,{href:"/api/interface/Params",children:"fromFHIRQuantityUnitToString"})," option to fit your needs"]})})]})}function x(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(h,{...e})}):h(e)}},816:(e,n,o)=>{o.d(n,{A:()=>r});var t=o(6540),s=o(6300),a=o(1812),i=o(4848);function r(e){let{dosage:n,config:o,i18nConfig:r}=e;const[l,c]=(0,t.useState)(""),[d,u]=(0,t.useState)(o?.language||"en"),[g,p]=(0,t.useState)(null);(0,t.useEffect)((()=>{!async function(){const e=await s.A.build(o,r);p(e)}()}),[o]),(0,t.useEffect)((()=>{!async function(){if(g){const e=g.fromDosageToText(n);c(e)}}()}),[n,g]);return(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{style:{display:"flex"},children:[(0,i.jsxs)("select",{value:d,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,i.jsx)("option",{value:"en",children:"English"}),(0,i.jsx)("option",{value:"fr",children:"French"}),(0,i.jsx)("option",{value:"nl",children:"Dutch"}),(0,i.jsx)("option",{value:"de",children:"German"})]}),(0,i.jsx)("button",{onClick:async()=>{if(g){await g.changeLanguage(d);const e=g.fromDosageToText(n);c(e)}},children:"Confirm"})]}),(0,i.jsx)("div",{style:{marginTop:"10px"},children:(0,i.jsx)(a.default,{language:"markup",children:(f=l,f.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var f}}}]); \ No newline at end of file diff --git a/assets/js/b52bbddc.2966e35f.js b/assets/js/b52bbddc.b6e96b31.js similarity index 92% rename from assets/js/b52bbddc.2966e35f.js rename to assets/js/b52bbddc.b6e96b31.js index 151e50d0..f689f9d2 100644 --- a/assets/js/b52bbddc.2966e35f.js +++ b/assets/js/b52bbddc.b6e96b31.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[3361],{5950:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>p,contentTitle:()=>u,default:()=>x,frontMatter:()=>d,metadata:()=>g,toc:()=>f});var a=t(4848),o=t(8453),s=t(1812);const r=JSON.parse('{"doseAndRate":[{"rateRange":{"low":{"value":3,"unit":"pills"}}}]}');var i=t(4865),l=t(9365),c=t(816);const d={description:"Low only",title:"\u2696\ufe0f rateRange (Low only)"},u=void 0,g={id:"specs/rateRange/low_only",title:"\u2696\ufe0f rateRange (Low only)",description:"Low only",source:"@site/docs/specs/rateRange/low_only.mdx",sourceDirName:"specs/rateRange",slug:"/specs/rateRange/low_only",permalink:"/fhir-dosage-utils/docs/specs/rateRange/low_only",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/rateRange/low_only.mdx",tags:[],version:"current",frontMatter:{description:"Low only",title:"\u2696\ufe0f rateRange (Low only)"},sidebar:"tutorialSidebar",previous:{title:"\u2696\ufe0f rateRange (Low & High)",permalink:"/fhir-dosage-utils/docs/specs/rateRange/low_and_high"},next:{title:"\ud83d\udcc8 rateRatio",permalink:"/fhir-dosage-utils/docs/category/-rateratio"}},p={},f=[];function h(e){const n={a:"a",admonition:"admonition",p:"p",...(0,o.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(i.A,{children:[(0,a.jsx)(l.A,{value:"text",label:"Human readable text",default:!0,children:(0,a.jsx)(c.A,{dosage:r})}),(0,a.jsx)(l.A,{value:"json",label:"Dosage",children:(0,a.jsx)(s.default,{language:"json",children:JSON.stringify(r,null,2)})})]}),"\n",(0,a.jsx)(n.admonition,{type:"tip",children:(0,a.jsxs)(n.p,{children:["Don't forget you can use ",(0,a.jsx)(n.a,{href:"/api/interface/Params",children:"fromFHIRQuantityUnitToString"})," option to fit your needs"]})})]})}function x(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(h,{...e})}):h(e)}},816:(e,n,t)=>{t.d(n,{A:()=>i});var a=t(6540),o=t(6300),s=t(1812),r=t(4848);function i(e){let{dosage:n,config:t,i18nConfig:i}=e;const[l,c]=(0,a.useState)(""),[d,u]=(0,a.useState)(t?.language||"en"),[g,p]=(0,a.useState)(null);(0,a.useEffect)((()=>{!async function(){const e=await o.A.build(t,i);p(e)}()}),[t]),(0,a.useEffect)((()=>{!async function(){if(g){const e=g.fromDosageToText(n);c(e)}}()}),[n,g]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:d,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(g){await g.changeLanguage(d);const e=g.fromDosageToText(n);c(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(s.default,{language:"markup",children:(f=l,f.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var f}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[3361],{5950:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>p,contentTitle:()=>u,default:()=>x,frontMatter:()=>d,metadata:()=>g,toc:()=>f});var a=t(4848),o=t(8453),s=t(1812);const r=JSON.parse('{"doseAndRate":[{"rateRange":{"low":{"value":3,"unit":"pills"}}}]}');var i=t(4865),l=t(9365),c=t(816);const d={description:"Low only",title:"\u2696\ufe0f rateRange (Low only)"},u=void 0,g={id:"specs/rateRange/low_only",title:"\u2696\ufe0f rateRange (Low only)",description:"Low only",source:"@site/docs/specs/rateRange/low_only.mdx",sourceDirName:"specs/rateRange",slug:"/specs/rateRange/low_only",permalink:"/fhir-dosage-utils/docs/specs/rateRange/low_only",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/rateRange/low_only.mdx",tags:[],version:"current",frontMatter:{description:"Low only",title:"\u2696\ufe0f rateRange (Low only)"},sidebar:"tutorialSidebar",previous:{title:"\u2696\ufe0f rateRange (Low & High)",permalink:"/fhir-dosage-utils/docs/specs/rateRange/low_and_high"},next:{title:"\ud83d\udcc8 rateRatio",permalink:"/fhir-dosage-utils/docs/category/-rateratio"}},p={},f=[];function h(e){const n={a:"a",admonition:"admonition",p:"p",...(0,o.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(i.A,{children:[(0,a.jsx)(l.A,{value:"text",label:"Human readable text",default:!0,children:(0,a.jsx)(c.A,{dosage:r})}),(0,a.jsx)(l.A,{value:"json",label:"Dosage",children:(0,a.jsx)(s.default,{language:"json",children:JSON.stringify(r,null,2)})})]}),"\n",(0,a.jsx)(n.admonition,{type:"tip",children:(0,a.jsxs)(n.p,{children:["Don't forget you can use ",(0,a.jsx)(n.a,{href:"/api/interface/Params",children:"fromFHIRQuantityUnitToString"})," option to fit your needs"]})})]})}function x(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,a.jsx)(n,{...e,children:(0,a.jsx)(h,{...e})}):h(e)}},816:(e,n,t)=>{t.d(n,{A:()=>i});var a=t(6540),o=t(6300),s=t(1812),r=t(4848);function i(e){let{dosage:n,config:t,i18nConfig:i}=e;const[l,c]=(0,a.useState)(""),[d,u]=(0,a.useState)(t?.language||"en"),[g,p]=(0,a.useState)(null);(0,a.useEffect)((()=>{!async function(){const e=await o.A.build(t,i);p(e)}()}),[t]),(0,a.useEffect)((()=>{!async function(){if(g){const e=g.fromDosageToText(n);c(e)}}()}),[n,g]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:d,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(g){await g.changeLanguage(d);const e=g.fromDosageToText(n);c(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(s.default,{language:"markup",children:(f=l,f.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var f}}}]); \ No newline at end of file diff --git a/assets/js/bc0994c2.eed7a378.js b/assets/js/bc0994c2.6c229ee8.js similarity index 90% rename from assets/js/bc0994c2.eed7a378.js rename to assets/js/bc0994c2.6c229ee8.js index 08be2df4..6a5bc323 100644 --- a/assets/js/bc0994c2.eed7a378.js +++ b/assets/js/bc0994c2.6c229ee8.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[9643],{4008:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>d,default:()=>h,frontMatter:()=>u,metadata:()=>g,toc:()=>m});var i=n(4848),s=n(8453),a=n(1812),r=n(3180),o=n(4865),l=n(9365),c=n(816);const u={description:"Single item",title:"\u274c Single item"},d=void 0,g={id:"specs/event/single_item",title:"\u274c Single item",description:"Single item",source:"@site/docs/specs/event/single_item.mdx",sourceDirName:"specs/event",slug:"/specs/event/single_item",permalink:"/fhir-dosage-utils/docs/specs/event/single_item",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/event/single_item.mdx",tags:[],version:"current",frontMatter:{description:"Single item",title:"\u274c Single item"},sidebar:"tutorialSidebar",previous:{title:"\u2795 Multiple items",permalink:"/fhir-dosage-utils/docs/specs/event/multiple_items"},next:{title:"\ud83d\udd01 frequencyFrequencyMax",permalink:"/fhir-dosage-utils/docs/category/-frequencyfrequencymax"}},p={},m=[];function f(e){const t={a:"a",admonition:"admonition",p:"p",...(0,s.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(o.A,{children:[(0,i.jsx)(l.A,{value:"text",label:"Human readable text",default:!0,children:(0,i.jsx)(c.A,{dosage:r})}),(0,i.jsx)(l.A,{value:"json",label:"Dosage",children:(0,i.jsx)(a.default,{language:"json",children:JSON.stringify(r,null,2)})})]}),"\n",(0,i.jsx)(t.admonition,{type:"tip",children:(0,i.jsxs)(t.p,{children:["Don't forget you can use ",(0,i.jsx)(t.a,{href:"/api/interface/Params",children:"dateTimeFormatOptions"})," option to fit your needs"]})})]})}function h(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(f,{...e})}):f(e)}},816:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(6540),s=n(6300),a=n(1812),r=n(4848);function o(e){let{dosage:t,config:n,i18nConfig:o}=e;const[l,c]=(0,i.useState)(""),[u,d]=(0,i.useState)(n?.language||"en"),[g,p]=(0,i.useState)(null);(0,i.useEffect)((()=>{!async function(){const e=await s.A.build(n,o);p(e)}()}),[n]),(0,i.useEffect)((()=>{!async function(){if(g){const e=g.fromDosageToText(t);c(e)}}()}),[t,g]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:u,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(g){await g.changeLanguage(u);const e=g.fromDosageToText(t);c(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(a.default,{language:"markup",children:(m=l,m.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var m}},3180:e=>{e.exports=JSON.parse('{"timing":{"event":["2024-01-01"]}}')}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[9643],{4008:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>d,default:()=>h,frontMatter:()=>u,metadata:()=>g,toc:()=>m});var i=n(4848),s=n(8453),a=n(1812),r=n(3180),o=n(4865),l=n(9365),c=n(816);const u={description:"Single item",title:"\u274c Single item"},d=void 0,g={id:"specs/event/single_item",title:"\u274c Single item",description:"Single item",source:"@site/docs/specs/event/single_item.mdx",sourceDirName:"specs/event",slug:"/specs/event/single_item",permalink:"/fhir-dosage-utils/docs/specs/event/single_item",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/event/single_item.mdx",tags:[],version:"current",frontMatter:{description:"Single item",title:"\u274c Single item"},sidebar:"tutorialSidebar",previous:{title:"\u2795 Multiple items",permalink:"/fhir-dosage-utils/docs/specs/event/multiple_items"},next:{title:"\ud83d\udd01 frequencyFrequencyMax",permalink:"/fhir-dosage-utils/docs/category/-frequencyfrequencymax"}},p={},m=[];function f(e){const t={a:"a",admonition:"admonition",p:"p",...(0,s.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(o.A,{children:[(0,i.jsx)(l.A,{value:"text",label:"Human readable text",default:!0,children:(0,i.jsx)(c.A,{dosage:r})}),(0,i.jsx)(l.A,{value:"json",label:"Dosage",children:(0,i.jsx)(a.default,{language:"json",children:JSON.stringify(r,null,2)})})]}),"\n",(0,i.jsx)(t.admonition,{type:"tip",children:(0,i.jsxs)(t.p,{children:["Don't forget you can use ",(0,i.jsx)(t.a,{href:"/api/interface/Params",children:"dateTimeFormatOptions"})," option to fit your needs"]})})]})}function h(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(f,{...e})}):f(e)}},816:(e,t,n)=>{n.d(t,{A:()=>o});var i=n(6540),s=n(6300),a=n(1812),r=n(4848);function o(e){let{dosage:t,config:n,i18nConfig:o}=e;const[l,c]=(0,i.useState)(""),[u,d]=(0,i.useState)(n?.language||"en"),[g,p]=(0,i.useState)(null);(0,i.useEffect)((()=>{!async function(){const e=await s.A.build(n,o);p(e)}()}),[n]),(0,i.useEffect)((()=>{!async function(){if(g){const e=g.fromDosageToText(t);c(e)}}()}),[t,g]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:u,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(g){await g.changeLanguage(u);const e=g.fromDosageToText(t);c(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(a.default,{language:"markup",children:(m=l,m.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var m}},3180:e=>{e.exports=JSON.parse('{"timing":{"event":["2024-01-01"]}}')}}]); \ No newline at end of file diff --git a/assets/js/c0086ef4.72cdf050.js b/assets/js/c0086ef4.abe0f44b.js similarity index 94% rename from assets/js/c0086ef4.72cdf050.js rename to assets/js/c0086ef4.abe0f44b.js index e8b6f952..c70023cf 100644 --- a/assets/js/c0086ef4.72cdf050.js +++ b/assets/js/c0086ef4.abe0f44b.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[2495],{5333:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>g,contentTitle:()=>l,default:()=>f,frontMatter:()=>u,metadata:()=>m,toc:()=>p});var i=n(4848),s=n(8453),a=n(1812);const o=JSON.parse('[{"sequence":1,"text":"0.05 - 0.1mg/kg IV over 2-5 minutes every 15 minutes as needed","timing":{"repeat":{"frequency":1,"period":15,"periodUnit":"min"}},"asNeeded":true,"route":{"coding":[{"system":"http://snomed.info/sct","code":"255560000","display":"Intravenous"}]},"method":{"coding":[{"system":"http://snomed.info/sct","code":"420620005","display":"Push - dosing instruction imperative (qualifier value)"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseRange":{"low":{"value":0.05,"unit":"mg/kg","system":"http://unitsofmeasure.org","code":"mg/kg"},"high":{"value":0.1,"unit":"mg/kg","system":"http://unitsofmeasure.org","code":"mg/kg"}},"rateRange":{"low":{"value":2,"unit":"min","system":"http://unitsofmeasure.org","code":"min"},"high":{"value":5,"unit":"min","system":"http://unitsofmeasure.org","code":"min"}}}]}]');var r=n(4865),d=n(9365),c=n(8264);const u={description:"Request for an injectable medication - Lorazepam - active - with link to encounter, reasonCode and dosageInstruction",title:"medrx0315"},l=void 0,m={id:"examples/medicationrequest/medrx0315",title:"medrx0315",description:"Request for an injectable medication - Lorazepam - active - with link to encounter, reasonCode and dosageInstruction",source:"@site/docs/examples/medicationrequest/medrx0315.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx0315",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0315",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx0315.mdx",tags:[],version:"current",frontMatter:{description:"Request for an injectable medication - Lorazepam - active - with link to encounter, reasonCode and dosageInstruction",title:"medrx0315"},sidebar:"tutorialSidebar",previous:{title:"medrx0314",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0314"},next:{title:"medrx0317",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0317"}},g={},p=[];function h(e){const t={a:"a",admonition:"admonition",p:"p",...(0,s.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.admonition,{type:"info",children:(0,i.jsxs)(t.p,{children:["Source: ",(0,i.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequest0315.html",children:"HL7"}),' - "Request for an injectable medication - Lorazepam - active - with link to encounter, reasonCode and dosageInstruction"']})}),"\n",(0,i.jsxs)(r.A,{children:[(0,i.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,i.jsx)(c.A,{dosages:o,config:{}})}),(0,i.jsx)(d.A,{value:"json",label:"Dosage",children:(0,i.jsx)(a.default,{language:"json",children:JSON.stringify(o,null,2)})})]})]})}function f(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(h,{...e})}):h(e)}},8264:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(6540),s=n(6300),a=n(1812),o=n(4848);function r(e){let{dosages:t,config:n,i18nConfig:r}=e;const[d,c]=(0,i.useState)(""),[u,l]=(0,i.useState)(n?.language||"en"),[m,g]=(0,i.useState)(null);(0,i.useEffect)((()=>{!async function(){const e=await s.A.build(n,r);g(e)}()}),[n]),(0,i.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);c(e)}}()}),[t,m]);return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{style:{display:"flex"},children:[(0,o.jsxs)("select",{value:u,onChange:e=>l(e.target.value),style:{marginRight:"10px"},children:[(0,o.jsx)("option",{value:"en",children:"English"}),(0,o.jsx)("option",{value:"fr",children:"French"}),(0,o.jsx)("option",{value:"nl",children:"Dutch"}),(0,o.jsx)("option",{value:"de",children:"German"})]}),(0,o.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(u);const e=m.fromMultipleDosageToText(t);c(e)}},children:"Confirm"})]}),(0,o.jsx)("div",{style:{marginTop:"10px"},children:(0,o.jsx)(a.default,{language:"markup",children:(p=d,p.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var p}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[2495],{5333:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>g,contentTitle:()=>l,default:()=>f,frontMatter:()=>u,metadata:()=>m,toc:()=>p});var i=n(4848),s=n(8453),a=n(1812);const o=JSON.parse('[{"sequence":1,"text":"0.05 - 0.1mg/kg IV over 2-5 minutes every 15 minutes as needed","timing":{"repeat":{"frequency":1,"period":15,"periodUnit":"min"}},"asNeeded":true,"route":{"coding":[{"system":"http://snomed.info/sct","code":"255560000","display":"Intravenous"}]},"method":{"coding":[{"system":"http://snomed.info/sct","code":"420620005","display":"Push - dosing instruction imperative (qualifier value)"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseRange":{"low":{"value":0.05,"unit":"mg/kg","system":"http://unitsofmeasure.org","code":"mg/kg"},"high":{"value":0.1,"unit":"mg/kg","system":"http://unitsofmeasure.org","code":"mg/kg"}},"rateRange":{"low":{"value":2,"unit":"min","system":"http://unitsofmeasure.org","code":"min"},"high":{"value":5,"unit":"min","system":"http://unitsofmeasure.org","code":"min"}}}]}]');var r=n(4865),d=n(9365),c=n(8264);const u={description:"Request for an injectable medication - Lorazepam - active - with link to encounter, reasonCode and dosageInstruction",title:"medrx0315"},l=void 0,m={id:"examples/medicationrequest/medrx0315",title:"medrx0315",description:"Request for an injectable medication - Lorazepam - active - with link to encounter, reasonCode and dosageInstruction",source:"@site/docs/examples/medicationrequest/medrx0315.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx0315",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0315",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx0315.mdx",tags:[],version:"current",frontMatter:{description:"Request for an injectable medication - Lorazepam - active - with link to encounter, reasonCode and dosageInstruction",title:"medrx0315"},sidebar:"tutorialSidebar",previous:{title:"medrx0314",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0314"},next:{title:"medrx0317",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0317"}},g={},p=[];function h(e){const t={a:"a",admonition:"admonition",p:"p",...(0,s.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.admonition,{type:"info",children:(0,i.jsxs)(t.p,{children:["Source: ",(0,i.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequest0315.html",children:"HL7"}),' - "Request for an injectable medication - Lorazepam - active - with link to encounter, reasonCode and dosageInstruction"']})}),"\n",(0,i.jsxs)(r.A,{children:[(0,i.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,i.jsx)(c.A,{dosages:o,config:{}})}),(0,i.jsx)(d.A,{value:"json",label:"Dosage",children:(0,i.jsx)(a.default,{language:"json",children:JSON.stringify(o,null,2)})})]})]})}function f(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(h,{...e})}):h(e)}},8264:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(6540),s=n(6300),a=n(1812),o=n(4848);function r(e){let{dosages:t,config:n,i18nConfig:r}=e;const[d,c]=(0,i.useState)(""),[u,l]=(0,i.useState)(n?.language||"en"),[m,g]=(0,i.useState)(null);(0,i.useEffect)((()=>{!async function(){const e=await s.A.build(n,r);g(e)}()}),[n]),(0,i.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);c(e)}}()}),[t,m]);return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{style:{display:"flex"},children:[(0,o.jsxs)("select",{value:u,onChange:e=>l(e.target.value),style:{marginRight:"10px"},children:[(0,o.jsx)("option",{value:"en",children:"English"}),(0,o.jsx)("option",{value:"fr",children:"French"}),(0,o.jsx)("option",{value:"nl",children:"Dutch"}),(0,o.jsx)("option",{value:"de",children:"German"})]}),(0,o.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(u);const e=m.fromMultipleDosageToText(t);c(e)}},children:"Confirm"})]}),(0,o.jsx)("div",{style:{marginTop:"10px"},children:(0,o.jsx)(a.default,{language:"markup",children:(p=d,p.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var p}}}]); \ No newline at end of file diff --git a/assets/js/c36217b7.cf235a26.js b/assets/js/c36217b7.42d23c96.js similarity index 59% rename from assets/js/c36217b7.cf235a26.js rename to assets/js/c36217b7.42d23c96.js index 0960bd42..48a165e6 100644 --- a/assets/js/c36217b7.cf235a26.js +++ b/assets/js/c36217b7.42d23c96.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[6016],{3403:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>f,contentTitle:()=>d,default:()=>h,frontMatter:()=>u,metadata:()=>x,toc:()=>g});var n=s(4848),a=s(8453),i=s(1812);const r={text:"SIG"};var o=s(4865),c=s(9365),l=s(816);const u={description:"text",title:"\ud83d\udcdd text"},d=void 0,x={id:"specs/text/text",title:"\ud83d\udcdd text",description:"text",source:"@site/docs/specs/text/text.mdx",sourceDirName:"specs/text",slug:"/specs/text/",permalink:"/fhir-dosage-utils/docs/specs/text/",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/text/text.mdx",tags:[],version:"current",frontMatter:{description:"text",title:"\ud83d\udcdd text"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udcdd text",permalink:"/fhir-dosage-utils/docs/category/-text"},next:{title:"\u231a timeOfDay",permalink:"/fhir-dosage-utils/docs/category/-timeofday"}},f={},g=[];function p(e){return(0,n.jsxs)(o.A,{children:[(0,n.jsx)(c.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(l.A,{dosage:r,config:{displayOrder:["text"]}})}),(0,n.jsx)(c.A,{value:"json",label:"Dosage",children:(0,n.jsx)(i.default,{language:"json",children:JSON.stringify(r,null,2)})})]})}function h(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(p,{...e})}):p()}},816:(e,t,s)=>{s.d(t,{A:()=>o});var n=s(6540),a=s(6300),i=s(1812),r=s(4848);function o(e){let{dosage:t,config:s,i18nConfig:o}=e;const[c,l]=(0,n.useState)(""),[u,d]=(0,n.useState)(s?.language||"en"),[x,f]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await a.A.build(s,o);f(e)}()}),[s]),(0,n.useEffect)((()=>{!async function(){if(x){const e=x.fromDosageToText(t);l(e)}}()}),[t,x]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:u,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(x){await x.changeLanguage(u);const e=x.fromDosageToText(t);l(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(i.default,{language:"markup",children:(g=c,g.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[6016],{3403:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>f,contentTitle:()=>d,default:()=>h,frontMatter:()=>u,metadata:()=>x,toc:()=>g});var n=s(4848),a=s(8453),r=s(1812);const i={text:"SIG"};var o=s(4865),c=s(9365),l=s(816);const u={description:"text",title:"\ud83d\udcdd text"},d=void 0,x={id:"specs/text/text",title:"\ud83d\udcdd text",description:"text",source:"@site/docs/specs/text/text.mdx",sourceDirName:"specs/text",slug:"/specs/text/",permalink:"/fhir-dosage-utils/docs/specs/text/",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/text/text.mdx",tags:[],version:"current",frontMatter:{description:"text",title:"\ud83d\udcdd text"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udcdd text",permalink:"/fhir-dosage-utils/docs/category/-text"},next:{title:"\u231a timeOfDay",permalink:"/fhir-dosage-utils/docs/category/-timeofday"}},f={},g=[];function p(e){return(0,n.jsxs)(o.A,{children:[(0,n.jsx)(c.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(l.A,{dosage:i,config:{displayOrder:["text"]}})}),(0,n.jsx)(c.A,{value:"json",label:"Dosage",children:(0,n.jsx)(r.default,{language:"json",children:JSON.stringify(i,null,2)})})]})}function h(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(p,{...e})}):p()}},816:(e,t,s)=>{s.d(t,{A:()=>o});var n=s(6540),a=s(6300),r=s(1812),i=s(4848);function o(e){let{dosage:t,config:s,i18nConfig:o}=e;const[c,l]=(0,n.useState)(""),[u,d]=(0,n.useState)(s?.language||"en"),[x,f]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await a.A.build(s,o);f(e)}()}),[s]),(0,n.useEffect)((()=>{!async function(){if(x){const e=x.fromDosageToText(t);l(e)}}()}),[t,x]);return(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{style:{display:"flex"},children:[(0,i.jsxs)("select",{value:u,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,i.jsx)("option",{value:"en",children:"English"}),(0,i.jsx)("option",{value:"fr",children:"French"}),(0,i.jsx)("option",{value:"nl",children:"Dutch"}),(0,i.jsx)("option",{value:"de",children:"German"})]}),(0,i.jsx)("button",{onClick:async()=>{if(x){await x.changeLanguage(u);const e=x.fromDosageToText(t);l(e)}},children:"Confirm"})]}),(0,i.jsx)("div",{style:{marginTop:"10px"},children:(0,i.jsx)(r.default,{language:"markup",children:(g=c,g.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}}}]); \ No newline at end of file diff --git a/assets/js/c9387e11.50fd3a5f.js b/assets/js/c9387e11.1ca48fa9.js similarity index 90% rename from assets/js/c9387e11.50fd3a5f.js rename to assets/js/c9387e11.1ca48fa9.js index 2939e94e..ccb2d604 100644 --- a/assets/js/c9387e11.50fd3a5f.js +++ b/assets/js/c9387e11.1ca48fa9.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[3140],{459:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>g,contentTitle:()=>m,default:()=>x,frontMatter:()=>u,metadata:()=>f,toc:()=>p});var o=n(4848),a=n(8453),i=n(1812),s=n(3180);const r=JSON.parse('{"dateTimeFormatOptions":{"weekday":"long","year":"numeric","month":"long","day":"numeric"}}');var c=n(4865),l=n(9365),d=n(816);const u={description:"To control the formatting of dateTime objects",title:"\ud83c\udf89 dateTimeFormatOptions"},m=void 0,f={id:"custom/dateTimeFormatOptions",title:"\ud83c\udf89 dateTimeFormatOptions",description:"To control the formatting of dateTime objects",source:"@site/docs/custom/dateTimeFormatOptions.mdx",sourceDirName:"custom",slug:"/custom/dateTimeFormatOptions",permalink:"/fhir-dosage-utils/docs/custom/dateTimeFormatOptions",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/custom/dateTimeFormatOptions.mdx",tags:[],version:"current",frontMatter:{description:"To control the formatting of dateTime objects",title:"\ud83c\udf89 dateTimeFormatOptions"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udee0\ufe0f Customizations",permalink:"/fhir-dosage-utils/docs/demo/custom"},next:{title:"\ud83d\udd22 displayOrder",permalink:"/fhir-dosage-utils/docs/custom/displayOrder"}},g={},p=[];function h(e){return(0,o.jsxs)(c.A,{children:[(0,o.jsx)(l.A,{value:"text",label:"Human readable text",default:!0,children:(0,o.jsx)(d.A,{dosage:s,config:r})}),(0,o.jsx)(l.A,{value:"json",label:"Dosage",children:(0,o.jsx)(i.default,{language:"json",children:JSON.stringify(s,null,2)})}),(0,o.jsx)(l.A,{value:"config",label:"Configuration",children:(0,o.jsx)(i.default,{language:"json",children:JSON.stringify(r,null,2)})})]})}function x(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(h,{...e})}):h()}},816:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(6540),a=n(6300),i=n(1812),s=n(4848);function r(e){let{dosage:t,config:n,i18nConfig:r}=e;const[c,l]=(0,o.useState)(""),[d,u]=(0,o.useState)(n?.language||"en"),[m,f]=(0,o.useState)(null);(0,o.useEffect)((()=>{!async function(){const e=await a.A.build(n,r);f(e)}()}),[n]),(0,o.useEffect)((()=>{!async function(){if(m){const e=m.fromDosageToText(t);l(e)}}()}),[t,m]);return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{style:{display:"flex"},children:[(0,s.jsxs)("select",{value:d,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,s.jsx)("option",{value:"en",children:"English"}),(0,s.jsx)("option",{value:"fr",children:"French"}),(0,s.jsx)("option",{value:"nl",children:"Dutch"}),(0,s.jsx)("option",{value:"de",children:"German"})]}),(0,s.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(d);const e=m.fromDosageToText(t);l(e)}},children:"Confirm"})]}),(0,s.jsx)("div",{style:{marginTop:"10px"},children:(0,s.jsx)(i.default,{language:"markup",children:(g=c,g.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}},3180:e=>{e.exports=JSON.parse('{"timing":{"event":["2024-01-01"]}}')}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[3140],{459:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>g,contentTitle:()=>m,default:()=>x,frontMatter:()=>u,metadata:()=>f,toc:()=>p});var o=n(4848),a=n(8453),i=n(1812),s=n(3180);const r=JSON.parse('{"dateTimeFormatOptions":{"weekday":"long","year":"numeric","month":"long","day":"numeric"}}');var c=n(4865),l=n(9365),d=n(816);const u={description:"To control the formatting of dateTime objects",title:"\ud83c\udf89 dateTimeFormatOptions"},m=void 0,f={id:"custom/dateTimeFormatOptions",title:"\ud83c\udf89 dateTimeFormatOptions",description:"To control the formatting of dateTime objects",source:"@site/docs/custom/dateTimeFormatOptions.mdx",sourceDirName:"custom",slug:"/custom/dateTimeFormatOptions",permalink:"/fhir-dosage-utils/docs/custom/dateTimeFormatOptions",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/custom/dateTimeFormatOptions.mdx",tags:[],version:"current",frontMatter:{description:"To control the formatting of dateTime objects",title:"\ud83c\udf89 dateTimeFormatOptions"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udee0\ufe0f Customizations",permalink:"/fhir-dosage-utils/docs/demo/custom"},next:{title:"\ud83d\udd22 displayOrder",permalink:"/fhir-dosage-utils/docs/custom/displayOrder"}},g={},p=[];function h(e){return(0,o.jsxs)(c.A,{children:[(0,o.jsx)(l.A,{value:"text",label:"Human readable text",default:!0,children:(0,o.jsx)(d.A,{dosage:s,config:r})}),(0,o.jsx)(l.A,{value:"json",label:"Dosage",children:(0,o.jsx)(i.default,{language:"json",children:JSON.stringify(s,null,2)})}),(0,o.jsx)(l.A,{value:"config",label:"Configuration",children:(0,o.jsx)(i.default,{language:"json",children:JSON.stringify(r,null,2)})})]})}function x(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(h,{...e})}):h()}},816:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(6540),a=n(6300),i=n(1812),s=n(4848);function r(e){let{dosage:t,config:n,i18nConfig:r}=e;const[c,l]=(0,o.useState)(""),[d,u]=(0,o.useState)(n?.language||"en"),[m,f]=(0,o.useState)(null);(0,o.useEffect)((()=>{!async function(){const e=await a.A.build(n,r);f(e)}()}),[n]),(0,o.useEffect)((()=>{!async function(){if(m){const e=m.fromDosageToText(t);l(e)}}()}),[t,m]);return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{style:{display:"flex"},children:[(0,s.jsxs)("select",{value:d,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,s.jsx)("option",{value:"en",children:"English"}),(0,s.jsx)("option",{value:"fr",children:"French"}),(0,s.jsx)("option",{value:"nl",children:"Dutch"}),(0,s.jsx)("option",{value:"de",children:"German"})]}),(0,s.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(d);const e=m.fromDosageToText(t);l(e)}},children:"Confirm"})]}),(0,s.jsx)("div",{style:{marginTop:"10px"},children:(0,s.jsx)(i.default,{language:"markup",children:(g=c,g.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}},3180:e=>{e.exports=JSON.parse('{"timing":{"event":["2024-01-01"]}}')}}]); \ No newline at end of file diff --git a/assets/js/cd12752c.0310de61.js b/assets/js/cd12752c.2ec836b5.js similarity index 82% rename from assets/js/cd12752c.0310de61.js rename to assets/js/cd12752c.2ec836b5.js index c8d48162..27390bed 100644 --- a/assets/js/cd12752c.0310de61.js +++ b/assets/js/cd12752c.2ec836b5.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[6614],{844:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>g,contentTitle:()=>d,default:()=>m,frontMatter:()=>c,metadata:()=>f,toc:()=>h});var o=t(4848),i=t(8453),r=t(1812);const s=JSON.parse('{"extension":[{"url":"https://www.ehealth.fgov.be/standards/fhir/medication/StructureDefinition/DosageOverride","valueBoolean":true},{"url":"https://www.ehealth.fgov.be/standards/fhir/medication/StructureDefinition/DosageOverrideReason","valueCodeableConcept":{"text":"Respect my authority ! - Eric Cartman"}}]}');var a=t(4865),u=t(9365),l=t(816);const c={description:"Function to turn extension(s) into a string for humans.",title:"\ud83d\udd0c fromExtensionsToString"},d=void 0,f={id:"custom/fromExtensionsToString",title:"\ud83d\udd0c fromExtensionsToString",description:"Function to turn extension(s) into a string for humans.",source:"@site/docs/custom/fromExtensionsToString.mdx",sourceDirName:"custom",slug:"/custom/fromExtensionsToString",permalink:"/fhir-dosage-utils/docs/custom/fromExtensionsToString",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/custom/fromExtensionsToString.mdx",tags:[],version:"current",frontMatter:{description:"Function to turn extension(s) into a string for humans.",title:"\ud83d\udd0c fromExtensionsToString"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udcbb fromCodeableConceptToString",permalink:"/fhir-dosage-utils/docs/custom/fromCodeableConceptToString"},next:{title:"\ud83d\udccf fromFHIRQuantityUnitToString",permalink:"/fhir-dosage-utils/docs/custom/fromFHIRQuantityUnitToString"}},g={},h=[];function x(e){const n={code:"code",pre:"pre",...(0,i.R)(),...e.components};return(0,o.jsxs)(a.A,{children:[(0,o.jsx)(u.A,{value:"text",label:"Human readable text",default:!0,children:(0,o.jsx)(l.A,{dosage:s,config:{displayOrder:["extension"],fromExtensionsToString:({extensions:e,language:n})=>{if(void 0===e||0===e.length)return;return e.map((e=>{switch(e.url){case"https://www.ehealth.fgov.be/standards/fhir/medication/StructureDefinition/DosageOverride":let t=e.valueBoolean;return`[${n} translation of "dosageOverride" set to "${t}"]`;case"https://www.ehealth.fgov.be/standards/fhir/medication/StructureDefinition/DosageOverrideReason":return e.valueCodeableConcept.text;default:return`[${n} translation of "${JSON.stringify(e)}"]`}})).join(" | ")}}})}),(0,o.jsx)(u.A,{value:"json",label:"Dosage",children:(0,o.jsx)(r.default,{language:"json",children:JSON.stringify(s,null,2)})}),(0,o.jsx)(u.A,{value:"config",label:"Configuration",children:(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-js",children:'{\n displayOrder: ["extension"],\n fromExtensionsToString: ({extensions, language}) => {\n // If no extensions, skip it\n if (extensions === undefined || extensions.length === 0) {\n return undefined;\n }\n\n // Your own logic here ;)\n const parts = extensions.map(extension => {\n switch(extension.url) {\n case "https://www.ehealth.fgov.be/standards/fhir/medication/StructureDefinition/DosageOverride":\n let dosageOverride = extension.valueBoolean;\n return `[${language} translation of "dosageOverride" set to "${dosageOverride}"]`;\n case "https://www.ehealth.fgov.be/standards/fhir/medication/StructureDefinition/DosageOverrideReason":\n return extension.valueCodeableConcept.text;\n default:\n return `[${language} translation of "${JSON.stringify(extension)}"]`;\n }\n });\n\n return parts.join(" | ");\n }\n}\n'})})})]})}function m(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(x,{...e})}):x(e)}},816:(e,n,t)=>{t.d(n,{A:()=>a});var o=t(6540),i=t(6300),r=t(1812),s=t(4848);function a(e){let{dosage:n,config:t,i18nConfig:a}=e;const[u,l]=(0,o.useState)(""),[c,d]=(0,o.useState)(t?.language||"en"),[f,g]=(0,o.useState)(null);(0,o.useEffect)((()=>{!async function(){const e=await i.A.build(t,a);g(e)}()}),[t]),(0,o.useEffect)((()=>{!async function(){if(f){const e=f.fromDosageToText(n);l(e)}}()}),[n,f]);return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{style:{display:"flex"},children:[(0,s.jsxs)("select",{value:c,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,s.jsx)("option",{value:"en",children:"English"}),(0,s.jsx)("option",{value:"fr",children:"French"}),(0,s.jsx)("option",{value:"nl",children:"Dutch"}),(0,s.jsx)("option",{value:"de",children:"German"})]}),(0,s.jsx)("button",{onClick:async()=>{if(f){await f.changeLanguage(c);const e=f.fromDosageToText(n);l(e)}},children:"Confirm"})]}),(0,s.jsx)("div",{style:{marginTop:"10px"},children:(0,s.jsx)(r.default,{language:"markup",children:(h=u,h.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var h}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[6614],{844:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>g,contentTitle:()=>d,default:()=>x,frontMatter:()=>c,metadata:()=>f,toc:()=>h});var o=t(4848),r=t(8453),i=t(1812);const s=JSON.parse('{"extension":[{"url":"https://www.ehealth.fgov.be/standards/fhir/medication/StructureDefinition/DosageOverride","valueBoolean":true},{"url":"https://www.ehealth.fgov.be/standards/fhir/medication/StructureDefinition/DosageOverrideReason","valueCodeableConcept":{"text":"Respect my authority ! - Eric Cartman"}}]}');var a=t(4865),u=t(9365),l=t(816);const c={description:"Function to turn extension(s) into a string for humans.",title:"\ud83d\udd0c fromExtensionsToString"},d=void 0,f={id:"custom/fromExtensionsToString",title:"\ud83d\udd0c fromExtensionsToString",description:"Function to turn extension(s) into a string for humans.",source:"@site/docs/custom/fromExtensionsToString.mdx",sourceDirName:"custom",slug:"/custom/fromExtensionsToString",permalink:"/fhir-dosage-utils/docs/custom/fromExtensionsToString",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/custom/fromExtensionsToString.mdx",tags:[],version:"current",frontMatter:{description:"Function to turn extension(s) into a string for humans.",title:"\ud83d\udd0c fromExtensionsToString"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udcbb fromCodeableConceptToString",permalink:"/fhir-dosage-utils/docs/custom/fromCodeableConceptToString"},next:{title:"\ud83d\udccf fromFHIRQuantityUnitToString",permalink:"/fhir-dosage-utils/docs/custom/fromFHIRQuantityUnitToString"}},g={},h=[];function m(e){const n={code:"code",pre:"pre",...(0,r.R)(),...e.components};return(0,o.jsxs)(a.A,{children:[(0,o.jsx)(u.A,{value:"text",label:"Human readable text",default:!0,children:(0,o.jsx)(l.A,{dosage:s,config:{displayOrder:["extension"],fromExtensionsToString:({extensions:e,language:n})=>{if(void 0===e||0===e.length)return;return e.map((e=>{switch(e.url){case"https://www.ehealth.fgov.be/standards/fhir/medication/StructureDefinition/DosageOverride":let t=e.valueBoolean;return`[${n} translation of "dosageOverride" set to "${t}"]`;case"https://www.ehealth.fgov.be/standards/fhir/medication/StructureDefinition/DosageOverrideReason":return e.valueCodeableConcept.text;default:return`[${n} translation of "${JSON.stringify(e)}"]`}})).join(" | ")}}})}),(0,o.jsx)(u.A,{value:"json",label:"Dosage",children:(0,o.jsx)(i.default,{language:"json",children:JSON.stringify(s,null,2)})}),(0,o.jsx)(u.A,{value:"config",label:"Configuration",children:(0,o.jsx)(n.pre,{children:(0,o.jsx)(n.code,{className:"language-js",children:'{\n displayOrder: ["extension"],\n fromExtensionsToString: ({extensions, language}) => {\n // If no extensions, skip it\n if (extensions === undefined || extensions.length === 0) {\n return undefined;\n }\n\n // Your own logic here ;)\n const parts = extensions.map(extension => {\n switch(extension.url) {\n case "https://www.ehealth.fgov.be/standards/fhir/medication/StructureDefinition/DosageOverride":\n let dosageOverride = extension.valueBoolean;\n return `[${language} translation of "dosageOverride" set to "${dosageOverride}"]`;\n case "https://www.ehealth.fgov.be/standards/fhir/medication/StructureDefinition/DosageOverrideReason":\n return extension.valueCodeableConcept.text;\n default:\n return `[${language} translation of "${JSON.stringify(extension)}"]`;\n }\n });\n\n return parts.join(" | ");\n }\n}\n'})})})]})}function x(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(m,{...e})}):m(e)}},816:(e,n,t)=>{t.d(n,{A:()=>a});var o=t(6540),r=t(6300),i=t(1812),s=t(4848);function a(e){let{dosage:n,config:t,i18nConfig:a}=e;const[u,l]=(0,o.useState)(""),[c,d]=(0,o.useState)(t?.language||"en"),[f,g]=(0,o.useState)(null);(0,o.useEffect)((()=>{!async function(){const e=await r.A.build(t,a);g(e)}()}),[t]),(0,o.useEffect)((()=>{!async function(){if(f){const e=f.fromDosageToText(n);l(e)}}()}),[n,f]);return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{style:{display:"flex"},children:[(0,s.jsxs)("select",{value:c,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,s.jsx)("option",{value:"en",children:"English"}),(0,s.jsx)("option",{value:"fr",children:"French"}),(0,s.jsx)("option",{value:"nl",children:"Dutch"}),(0,s.jsx)("option",{value:"de",children:"German"})]}),(0,s.jsx)("button",{onClick:async()=>{if(f){await f.changeLanguage(c);const e=f.fromDosageToText(n);l(e)}},children:"Confirm"})]}),(0,s.jsx)("div",{style:{marginTop:"10px"},children:(0,s.jsx)(i.default,{language:"markup",children:(h=u,h.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var h}}}]); \ No newline at end of file diff --git a/assets/js/d0a7fa20.7778fb49.js b/assets/js/d0a7fa20.fddbf773.js similarity index 73% rename from assets/js/d0a7fa20.7778fb49.js rename to assets/js/d0a7fa20.fddbf773.js index d40631cd..37e36012 100644 --- a/assets/js/d0a7fa20.7778fb49.js +++ b/assets/js/d0a7fa20.fddbf773.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[3462],{8484:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>h,contentTitle:()=>d,default:()=>m,frontMatter:()=>u,metadata:()=>f,toc:()=>g});var s=t(4848),i=t(8453),a=t(1812);const l=JSON.parse('{"timing":{"repeat":{"when":["MORN"]}}}');var o=t(4865),r=t(9365),c=t(816);const u={description:"when - single item",title:"\ud83d\udd52 When (Single item)"},d=void 0,f={id:"specs/offsetWhen/when/single_item",title:"\ud83d\udd52 When (Single item)",description:"when - single item",source:"@site/docs/specs/offsetWhen/when/single_item.mdx",sourceDirName:"specs/offsetWhen/when",slug:"/specs/offsetWhen/when/single_item",permalink:"/fhir-dosage-utils/docs/specs/offsetWhen/when/single_item",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/offsetWhen/when/single_item.mdx",tags:[],version:"current",frontMatter:{description:"when - single item",title:"\ud83d\udd52 When (Single item)"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udd52 When (Multiple items)",permalink:"/fhir-dosage-utils/docs/specs/offsetWhen/when/multiple_items"},next:{title:"\ud83d\udd52 offset and when",permalink:"/fhir-dosage-utils/docs/specs/offsetWhen/when_and_offset"}},h={},g=[];function p(e){return(0,s.jsxs)(o.A,{children:[(0,s.jsx)(r.A,{value:"text",label:"Human readable text",default:!0,children:(0,s.jsx)(c.A,{dosage:l})}),(0,s.jsx)(r.A,{value:"json",label:"Dosage",children:(0,s.jsx)(a.default,{language:"json",children:JSON.stringify(l,null,2)})})]})}function m(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(p,{...e})}):p()}},816:(e,n,t)=>{t.d(n,{A:()=>o});var s=t(6540),i=t(6300),a=t(1812),l=t(4848);function o(e){let{dosage:n,config:t,i18nConfig:o}=e;const[r,c]=(0,s.useState)(""),[u,d]=(0,s.useState)(t?.language||"en"),[f,h]=(0,s.useState)(null);(0,s.useEffect)((()=>{!async function(){const e=await i.A.build(t,o);h(e)}()}),[t]),(0,s.useEffect)((()=>{!async function(){if(f){const e=f.fromDosageToText(n);c(e)}}()}),[n,f]);return(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{style:{display:"flex"},children:[(0,l.jsxs)("select",{value:u,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,l.jsx)("option",{value:"en",children:"English"}),(0,l.jsx)("option",{value:"fr",children:"French"}),(0,l.jsx)("option",{value:"nl",children:"Dutch"}),(0,l.jsx)("option",{value:"de",children:"German"})]}),(0,l.jsx)("button",{onClick:async()=>{if(f){await f.changeLanguage(u);const e=f.fromDosageToText(n);c(e)}},children:"Confirm"})]}),(0,l.jsx)("div",{style:{marginTop:"10px"},children:(0,l.jsx)(a.default,{language:"markup",children:(g=r,g.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var g}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[3462],{8484:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>h,contentTitle:()=>d,default:()=>m,frontMatter:()=>u,metadata:()=>f,toc:()=>g});var s=t(4848),i=t(8453),a=t(1812);const l=JSON.parse('{"timing":{"repeat":{"when":["MORN"]}}}');var r=t(4865),o=t(9365),c=t(816);const u={description:"when - single item",title:"\ud83d\udd52 When (Single item)"},d=void 0,f={id:"specs/offsetWhen/when/single_item",title:"\ud83d\udd52 When (Single item)",description:"when - single item",source:"@site/docs/specs/offsetWhen/when/single_item.mdx",sourceDirName:"specs/offsetWhen/when",slug:"/specs/offsetWhen/when/single_item",permalink:"/fhir-dosage-utils/docs/specs/offsetWhen/when/single_item",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/offsetWhen/when/single_item.mdx",tags:[],version:"current",frontMatter:{description:"when - single item",title:"\ud83d\udd52 When (Single item)"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udd52 When (Multiple items)",permalink:"/fhir-dosage-utils/docs/specs/offsetWhen/when/multiple_items"},next:{title:"\ud83d\udd52 offset and when",permalink:"/fhir-dosage-utils/docs/specs/offsetWhen/when_and_offset"}},h={},g=[];function p(e){return(0,s.jsxs)(r.A,{children:[(0,s.jsx)(o.A,{value:"text",label:"Human readable text",default:!0,children:(0,s.jsx)(c.A,{dosage:l})}),(0,s.jsx)(o.A,{value:"json",label:"Dosage",children:(0,s.jsx)(a.default,{language:"json",children:JSON.stringify(l,null,2)})})]})}function m(e={}){const{wrapper:n}={...(0,i.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(p,{...e})}):p()}},816:(e,n,t)=>{t.d(n,{A:()=>r});var s=t(6540),i=t(6300),a=t(1812),l=t(4848);function r(e){let{dosage:n,config:t,i18nConfig:r}=e;const[o,c]=(0,s.useState)(""),[u,d]=(0,s.useState)(t?.language||"en"),[f,h]=(0,s.useState)(null);(0,s.useEffect)((()=>{!async function(){const e=await i.A.build(t,r);h(e)}()}),[t]),(0,s.useEffect)((()=>{!async function(){if(f){const e=f.fromDosageToText(n);c(e)}}()}),[n,f]);return(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{style:{display:"flex"},children:[(0,l.jsxs)("select",{value:u,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,l.jsx)("option",{value:"en",children:"English"}),(0,l.jsx)("option",{value:"fr",children:"French"}),(0,l.jsx)("option",{value:"nl",children:"Dutch"}),(0,l.jsx)("option",{value:"de",children:"German"})]}),(0,l.jsx)("button",{onClick:async()=>{if(f){await f.changeLanguage(u);const e=f.fromDosageToText(n);c(e)}},children:"Confirm"})]}),(0,l.jsx)("div",{style:{marginTop:"10px"},children:(0,l.jsx)(a.default,{language:"markup",children:(g=o,g.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var g}}}]); \ No newline at end of file diff --git a/assets/js/d5205798.dd9dfda2.js b/assets/js/d5205798.11d315dc.js similarity index 67% rename from assets/js/d5205798.dd9dfda2.js rename to assets/js/d5205798.11d315dc.js index a8a20b15..ffcd6e2d 100644 --- a/assets/js/d5205798.dd9dfda2.js +++ b/assets/js/d5205798.11d315dc.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[3920],{3472:(e,n,t)=>{t.d(n,{A:()=>U});t(6540);var i=t(8473),o=t(4164),r=t(1312),a=t(7559);const d={admonition:"admonition_xJq3",admonitionHeading:"admonitionHeading_Gvgb",admonitionIcon:"admonitionIcon_Rf37",admonitionContent:"admonitionContent_BuS1"};var s=t(4848);function l(e){let{type:n,className:t,children:i}=e;return(0,s.jsx)("div",{className:(0,o.A)(a.G.common.admonition,a.G.common.admonitionType(n),d.admonition,t),children:i})}function c(e){let{icon:n,title:t}=e;return(0,s.jsxs)("div",{className:d.admonitionHeading,children:[(0,s.jsx)("span",{className:d.admonitionIcon,children:n}),t]})}function u(e){let{children:n}=e;return n?(0,s.jsx)("div",{className:d.admonitionContent,children:n}):null}function h(e){const{type:n,icon:t,title:i,children:o,className:r}=e;return(0,s.jsxs)(l,{type:n,className:r,children:[(0,s.jsx)(c,{title:i,icon:t}),(0,s.jsx)(u,{children:o})]})}function m(e){return(0,s.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"})})}const f={icon:(0,s.jsx)(m,{}),title:(0,s.jsx)(r.A,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)",children:"note"})};function p(e){return(0,s.jsx)(h,{...f,...e,className:(0,o.A)("alert alert--secondary",e.className),children:e.children})}function g(e){return(0,s.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"})})}const x={icon:(0,s.jsx)(g,{}),title:(0,s.jsx)(r.A,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)",children:"tip"})};function j(e){return(0,s.jsx)(h,{...x,...e,className:(0,o.A)("alert alert--success",e.className),children:e.children})}function y(e){return(0,s.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"})})}const v={icon:(0,s.jsx)(y,{}),title:(0,s.jsx)(r.A,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)",children:"info"})};function A(e){return(0,s.jsx)(h,{...v,...e,className:(0,o.A)("alert alert--info",e.className),children:e.children})}function b(e){return(0,s.jsx)("svg",{viewBox:"0 0 16 16",...e,children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"})})}const w={icon:(0,s.jsx)(b,{}),title:(0,s.jsx)(r.A,{id:"theme.admonition.warning",description:"The default label used for the Warning admonition (:::warning)",children:"warning"})};function C(e){return(0,s.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M5.05.31c.81 2.17.41 3.38-.52 4.31C3.55 5.67 1.98 6.45.9 7.98c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.31 8.68 2.45 5.05.32L5.03.3l.02.01z"})})}const T={icon:(0,s.jsx)(C,{}),title:(0,s.jsx)(r.A,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)",children:"danger"})};const N={icon:(0,s.jsx)(b,{}),title:(0,s.jsx)(r.A,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)",children:"caution"})};const M={...{note:p,tip:j,info:A,warning:function(e){return(0,s.jsx)(h,{...w,...e,className:(0,o.A)("alert alert--warning",e.className),children:e.children})},danger:function(e){return(0,s.jsx)(h,{...T,...e,className:(0,o.A)("alert alert--danger",e.className),children:e.children})}},...{secondary:e=>(0,s.jsx)(p,{title:"secondary",...e}),important:e=>(0,s.jsx)(A,{title:"important",...e}),success:e=>(0,s.jsx)(j,{title:"success",...e}),caution:function(e){return(0,s.jsx)(h,{...N,...e,className:(0,o.A)("alert alert--warning",e.className),children:e.children})}}};function U(e){const n=(0,i.c)(e),t=(o=n.type,M[o]||(console.warn(`No admonition component found for admonition type "${o}". Using Info as fallback.`),M.info));var o;return(0,s.jsx)(t,{...n})}},8473:(e,n,t)=>{t.d(n,{c:()=>r});var i=t(6540),o=t(4848);function r(e){const{mdxAdmonitionTitle:n,rest:t}=function(e){const n=i.Children.toArray(e),t=n.find((e=>i.isValidElement(e)&&"mdxAdmonitionTitle"===e.type)),r=n.filter((e=>e!==t)),a=t?.props.children;return{mdxAdmonitionTitle:a,rest:r.length>0?(0,o.jsx)(o.Fragment,{children:r}):null}}(e.children),r=e.title??n;return{...e,...r&&{title:r},children:t}}},816:(e,n,t)=>{t.d(n,{A:()=>d});var i=t(6540),o=t(6300),r=t(1812),a=t(4848);function d(e){let{dosage:n,config:t,i18nConfig:d}=e;const[s,l]=(0,i.useState)(""),[c,u]=(0,i.useState)(t?.language||"en"),[h,m]=(0,i.useState)(null);(0,i.useEffect)((()=>{!async function(){const e=await o.A.build(t,d);m(e)}()}),[t]),(0,i.useEffect)((()=>{!async function(){if(h){const e=h.fromDosageToText(n);l(e)}}()}),[n,h]);return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{style:{display:"flex"},children:[(0,a.jsxs)("select",{value:c,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,a.jsx)("option",{value:"en",children:"English"}),(0,a.jsx)("option",{value:"fr",children:"French"}),(0,a.jsx)("option",{value:"nl",children:"Dutch"}),(0,a.jsx)("option",{value:"de",children:"German"})]}),(0,a.jsx)("button",{onClick:async()=>{if(h){await h.changeLanguage(c);const e=h.fromDosageToText(n);l(e)}},children:"Confirm"})]}),(0,a.jsx)("div",{style:{marginTop:"10px"},children:(0,a.jsx)(r.default,{language:"markup",children:(f=s,f.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var f}},9309:(e,n,t)=>{t.r(n),t.d(n,{default:()=>u});t(6540);var i=t(7747),o=t(4865),r=t(9365),a=t(1812),d=t(3472),s=t(816),l=t(4848);const c=[{title:"Every 8 hours",dosage:{timing:{repeat:{frequency:1,period:8,periodUnit:"h"}}}},{title:"Every 7 days",dosage:{timing:{repeat:{frequency:1,period:7,periodUnit:"d"}}}},{title:"3 times a day",dosage:{timing:{repeat:{frequency:3,period:1,periodUnit:"d"}}}},{title:"3-4 times a day",dosage:{timing:{repeat:{frequency:3,frequencyMax:4,period:1,periodUnit:"d"}}}},{title:"Every 4-6 hours",dosage:{timing:{repeat:{frequency:1,period:4,periodMax:6,periodUnit:"h"}}}},{title:"Every 21 days for 1 hour",dosage:{timing:{repeat:{duration:1,durationUnit:"h",frequency:1,period:21,periodUnit:"d"}}}},{title:"Three times a week for 0.5 hour",dosage:{timing:{repeat:{duration:.5,durationUnit:"h",frequency:3,period:1,periodUnit:"wk"}}}},{title:"With breakfast",dosage:{timing:{repeat:{when:["CM"]}}}},{title:"For 5 minutes, 10 minutes before meals",dosage:{timing:{repeat:{duration:5,durationUnit:"min",when:["AC"],offset:10}}}},{title:"1 tablet 3 times daily, 30 minutes before meals",dosage:{doseAndRate:[{doseQuantity:{value:1,unit:"tablet"}}],timing:{repeat:{frequency:3,period:1,periodUnit:"d",when:["AC"],offset:30}}}},{title:"BID, 30 mins before meal, for next 10 days",dosage:{timing:{repeat:{frequency:2,period:1,periodUnit:"d",when:["AC"],offset:30,boundsDuration:{value:10,code:"d",system:"http://hl7.org/fhir/ValueSet/duration-units"}}}}},{title:"TID, for 14 days",dosage:{timing:{repeat:{frequency:3,period:1,periodUnit:"d",boundsDuration:{value:14,code:"d",system:"http://hl7.org/fhir/ValueSet/duration-units"}}}}},{title:"BID, start on 7/1/2015 at 1:00 PM",dosage:{timing:{repeat:{frequency:2,period:1,periodUnit:"d",boundsPeriod:{start:"2015-07-01T13:00:00"}}}}},{title:"Mon, Wed, Fri Morning",dosage:{timing:{repeat:{frequency:1,period:1,periodUnit:"d",dayOfWeek:["mon","wed","fri"],when:["MORN"]}}}},{title:"Every day at 10am",dosage:{timing:{repeat:{frequency:1,period:1,periodUnit:"d",timeOfDay:["10:00:00"]}}}},{title:"Take once, at any time",dosage:{timing:{repeat:{count:1}}}},{title:"Take every second day, in the morning, until 20 have been taken",dosage:{timing:{repeat:{frequency:1,period:2,periodUnit:"d",when:["MORN"],count:20}}}}];function u(){return(0,l.jsxs)(i.A,{title:"\u231a Timing",description:"Scenarios listed on https://build.fhir.org/datatypes.html#Timing",children:[(0,l.jsx)(d.A,{type:"info",children:(0,l.jsxs)("p",{children:["Thanks to"," ",(0,l.jsx)("a",{href:"https://build.fhir.org/datatypes.html#Timing",children:"FHIR HL7"})," ","for the examples"]})}),(0,l.jsxs)("table",{children:[(0,l.jsxs)("thead",{children:[(0,l.jsx)("th",{children:"Summary"}),(0,l.jsx)("th",{})]}),(0,l.jsx)("tbody",{children:c.map((e=>(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{children:e.title}),(0,l.jsx)("td",{children:(0,l.jsxs)(o.A,{children:[(0,l.jsx)(r.A,{value:"text",label:"Human readable text",default:!0,children:(0,l.jsx)(s.A,{dosage:e.dosage})}),(0,l.jsx)(r.A,{value:"json",label:"Dosage",children:(0,l.jsx)(a.default,{language:"json",children:JSON.stringify(e.dosage,null,2)})})]})})]})))})]})]})}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[3920],{3472:(e,n,t)=>{t.d(n,{A:()=>U});t(6540);var i=t(8473),o=t(4164),r=t(1312),a=t(7559);const d={admonition:"admonition_xJq3",admonitionHeading:"admonitionHeading_Gvgb",admonitionIcon:"admonitionIcon_Rf37",admonitionContent:"admonitionContent_BuS1"};var s=t(4848);function l(e){let{type:n,className:t,children:i}=e;return(0,s.jsx)("div",{className:(0,o.A)(a.G.common.admonition,a.G.common.admonitionType(n),d.admonition,t),children:i})}function c(e){let{icon:n,title:t}=e;return(0,s.jsxs)("div",{className:d.admonitionHeading,children:[(0,s.jsx)("span",{className:d.admonitionIcon,children:n}),t]})}function u(e){let{children:n}=e;return n?(0,s.jsx)("div",{className:d.admonitionContent,children:n}):null}function h(e){const{type:n,icon:t,title:i,children:o,className:r}=e;return(0,s.jsxs)(l,{type:n,className:r,children:[(0,s.jsx)(c,{title:i,icon:t}),(0,s.jsx)(u,{children:o})]})}function m(e){return(0,s.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M6.3 5.69a.942.942 0 0 1-.28-.7c0-.28.09-.52.28-.7.19-.18.42-.28.7-.28.28 0 .52.09.7.28.18.19.28.42.28.7 0 .28-.09.52-.28.7a1 1 0 0 1-.7.3c-.28 0-.52-.11-.7-.3zM8 7.99c-.02-.25-.11-.48-.31-.69-.2-.19-.42-.3-.69-.31H6c-.27.02-.48.13-.69.31-.2.2-.3.44-.31.69h1v3c.02.27.11.5.31.69.2.2.42.31.69.31h1c.27 0 .48-.11.69-.31.2-.19.3-.42.31-.69H8V7.98v.01zM7 2.3c-3.14 0-5.7 2.54-5.7 5.68 0 3.14 2.56 5.7 5.7 5.7s5.7-2.55 5.7-5.7c0-3.15-2.56-5.69-5.7-5.69v.01zM7 .98c3.86 0 7 3.14 7 7s-3.14 7-7 7-7-3.12-7-7 3.14-7 7-7z"})})}const f={icon:(0,s.jsx)(m,{}),title:(0,s.jsx)(r.A,{id:"theme.admonition.note",description:"The default label used for the Note admonition (:::note)",children:"note"})};function p(e){return(0,s.jsx)(h,{...f,...e,className:(0,o.A)("alert alert--secondary",e.className),children:e.children})}function g(e){return(0,s.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"})})}const x={icon:(0,s.jsx)(g,{}),title:(0,s.jsx)(r.A,{id:"theme.admonition.tip",description:"The default label used for the Tip admonition (:::tip)",children:"tip"})};function j(e){return(0,s.jsx)(h,{...x,...e,className:(0,o.A)("alert alert--success",e.className),children:e.children})}function y(e){return(0,s.jsx)("svg",{viewBox:"0 0 14 16",...e,children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M7 2.3c3.14 0 5.7 2.56 5.7 5.7s-2.56 5.7-5.7 5.7A5.71 5.71 0 0 1 1.3 8c0-3.14 2.56-5.7 5.7-5.7zM7 1C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7-3.14-7-7-7zm1 3H6v5h2V4zm0 6H6v2h2v-2z"})})}const v={icon:(0,s.jsx)(y,{}),title:(0,s.jsx)(r.A,{id:"theme.admonition.info",description:"The default label used for the Info admonition (:::info)",children:"info"})};function A(e){return(0,s.jsx)(h,{...v,...e,className:(0,o.A)("alert alert--info",e.className),children:e.children})}function b(e){return(0,s.jsx)("svg",{viewBox:"0 0 16 16",...e,children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"})})}const w={icon:(0,s.jsx)(b,{}),title:(0,s.jsx)(r.A,{id:"theme.admonition.warning",description:"The default label used for the Warning admonition (:::warning)",children:"warning"})};function C(e){return(0,s.jsx)("svg",{viewBox:"0 0 12 16",...e,children:(0,s.jsx)("path",{fillRule:"evenodd",d:"M5.05.31c.81 2.17.41 3.38-.52 4.31C3.55 5.67 1.98 6.45.9 7.98c-1.45 2.05-1.7 6.53 3.53 7.7-2.2-1.16-2.67-4.52-.3-6.61-.61 2.03.53 3.33 1.94 2.86 1.39-.47 2.3.53 2.27 1.67-.02.78-.31 1.44-1.13 1.81 3.42-.59 4.78-3.42 4.78-5.56 0-2.84-2.53-3.22-1.25-5.61-1.52.13-2.03 1.13-1.89 2.75.09 1.08-1.02 1.8-1.86 1.33-.67-.41-.66-1.19-.06-1.78C8.18 5.31 8.68 2.45 5.05.32L5.03.3l.02.01z"})})}const T={icon:(0,s.jsx)(C,{}),title:(0,s.jsx)(r.A,{id:"theme.admonition.danger",description:"The default label used for the Danger admonition (:::danger)",children:"danger"})};const N={icon:(0,s.jsx)(b,{}),title:(0,s.jsx)(r.A,{id:"theme.admonition.caution",description:"The default label used for the Caution admonition (:::caution)",children:"caution"})};const M={...{note:p,tip:j,info:A,warning:function(e){return(0,s.jsx)(h,{...w,...e,className:(0,o.A)("alert alert--warning",e.className),children:e.children})},danger:function(e){return(0,s.jsx)(h,{...T,...e,className:(0,o.A)("alert alert--danger",e.className),children:e.children})}},...{secondary:e=>(0,s.jsx)(p,{title:"secondary",...e}),important:e=>(0,s.jsx)(A,{title:"important",...e}),success:e=>(0,s.jsx)(j,{title:"success",...e}),caution:function(e){return(0,s.jsx)(h,{...N,...e,className:(0,o.A)("alert alert--warning",e.className),children:e.children})}}};function U(e){const n=(0,i.c)(e),t=(o=n.type,M[o]||(console.warn(`No admonition component found for admonition type "${o}". Using Info as fallback.`),M.info));var o;return(0,s.jsx)(t,{...n})}},8473:(e,n,t)=>{t.d(n,{c:()=>r});var i=t(6540),o=t(4848);function r(e){const{mdxAdmonitionTitle:n,rest:t}=function(e){const n=i.Children.toArray(e),t=n.find((e=>i.isValidElement(e)&&"mdxAdmonitionTitle"===e.type)),r=n.filter((e=>e!==t)),a=t?.props.children;return{mdxAdmonitionTitle:a,rest:r.length>0?(0,o.jsx)(o.Fragment,{children:r}):null}}(e.children),r=e.title??n;return{...e,...r&&{title:r},children:t}}},816:(e,n,t)=>{t.d(n,{A:()=>d});var i=t(6540),o=t(6300),r=t(1812),a=t(4848);function d(e){let{dosage:n,config:t,i18nConfig:d}=e;const[s,l]=(0,i.useState)(""),[c,u]=(0,i.useState)(t?.language||"en"),[h,m]=(0,i.useState)(null);(0,i.useEffect)((()=>{!async function(){const e=await o.A.build(t,d);m(e)}()}),[t]),(0,i.useEffect)((()=>{!async function(){if(h){const e=h.fromDosageToText(n);l(e)}}()}),[n,h]);return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{style:{display:"flex"},children:[(0,a.jsxs)("select",{value:c,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,a.jsx)("option",{value:"en",children:"English"}),(0,a.jsx)("option",{value:"fr",children:"French"}),(0,a.jsx)("option",{value:"nl",children:"Dutch"}),(0,a.jsx)("option",{value:"de",children:"German"})]}),(0,a.jsx)("button",{onClick:async()=>{if(h){await h.changeLanguage(c);const e=h.fromDosageToText(n);l(e)}},children:"Confirm"})]}),(0,a.jsx)("div",{style:{marginTop:"10px"},children:(0,a.jsx)(r.default,{language:"markup",children:(f=s,f.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var f}},9309:(e,n,t)=>{t.r(n),t.d(n,{default:()=>u});t(6540);var i=t(7747),o=t(4865),r=t(9365),a=t(1812),d=t(3472),s=t(816),l=t(4848);const c=[{title:"Every 8 hours",dosage:{timing:{repeat:{frequency:1,period:8,periodUnit:"h"}}}},{title:"Every 7 days",dosage:{timing:{repeat:{frequency:1,period:7,periodUnit:"d"}}}},{title:"3 times a day",dosage:{timing:{repeat:{frequency:3,period:1,periodUnit:"d"}}}},{title:"3-4 times a day",dosage:{timing:{repeat:{frequency:3,frequencyMax:4,period:1,periodUnit:"d"}}}},{title:"Every 4-6 hours",dosage:{timing:{repeat:{frequency:1,period:4,periodMax:6,periodUnit:"h"}}}},{title:"Every 21 days for 1 hour",dosage:{timing:{repeat:{duration:1,durationUnit:"h",frequency:1,period:21,periodUnit:"d"}}}},{title:"Three times a week for 0.5 hour",dosage:{timing:{repeat:{duration:.5,durationUnit:"h",frequency:3,period:1,periodUnit:"wk"}}}},{title:"With breakfast",dosage:{timing:{repeat:{when:["CM"]}}}},{title:"For 5 minutes, 10 minutes before meals",dosage:{timing:{repeat:{duration:5,durationUnit:"min",when:["AC"],offset:10}}}},{title:"1 tablet 3 times daily, 30 minutes before meals",dosage:{doseAndRate:[{doseQuantity:{value:1,unit:"tablet"}}],timing:{repeat:{frequency:3,period:1,periodUnit:"d",when:["AC"],offset:30}}}},{title:"BID, 30 mins before meal, for next 10 days",dosage:{timing:{repeat:{frequency:2,period:1,periodUnit:"d",when:["AC"],offset:30,boundsDuration:{value:10,code:"d",system:"http://hl7.org/fhir/ValueSet/duration-units"}}}}},{title:"TID, for 14 days",dosage:{timing:{repeat:{frequency:3,period:1,periodUnit:"d",boundsDuration:{value:14,code:"d",system:"http://hl7.org/fhir/ValueSet/duration-units"}}}}},{title:"BID, start on 7/1/2015 at 1:00 PM",dosage:{timing:{repeat:{frequency:2,period:1,periodUnit:"d",boundsPeriod:{start:"2015-07-01T13:00:00"}}}}},{title:"Mon, Wed, Fri Morning",dosage:{timing:{repeat:{frequency:1,period:1,periodUnit:"d",dayOfWeek:["mon","wed","fri"],when:["MORN"]}}}},{title:"Every day at 10am",dosage:{timing:{repeat:{frequency:1,period:1,periodUnit:"d",timeOfDay:["10:00:00"]}}}},{title:"Take once, at any time",dosage:{timing:{repeat:{count:1}}}},{title:"Take every second day, in the morning, until 20 have been taken",dosage:{timing:{repeat:{frequency:1,period:2,periodUnit:"d",when:["MORN"],count:20}}}}];function u(){return(0,l.jsxs)(i.A,{title:"\u231a Timing",description:"Scenarios listed on https://build.fhir.org/datatypes.html#Timing",children:[(0,l.jsx)(d.A,{type:"info",children:(0,l.jsxs)("p",{children:["Thanks to"," ",(0,l.jsx)("a",{href:"https://build.fhir.org/datatypes.html#Timing",children:"FHIR HL7"})," ","for the examples"]})}),(0,l.jsxs)("table",{children:[(0,l.jsxs)("thead",{children:[(0,l.jsx)("th",{children:"Summary"}),(0,l.jsx)("th",{})]}),(0,l.jsx)("tbody",{children:c.map((e=>(0,l.jsxs)("tr",{children:[(0,l.jsx)("td",{children:e.title}),(0,l.jsx)("td",{children:(0,l.jsxs)(o.A,{children:[(0,l.jsx)(r.A,{value:"text",label:"Human readable text",default:!0,children:(0,l.jsx)(s.A,{dosage:e.dosage})}),(0,l.jsx)(r.A,{value:"json",label:"Dosage",children:(0,l.jsx)(a.default,{language:"json",children:JSON.stringify(e.dosage,null,2)})})]})})]})))})]})]})}}}]); \ No newline at end of file diff --git a/assets/js/d9a0709a.e9b12c89.js b/assets/js/d9a0709a.314b502f.js similarity index 83% rename from assets/js/d9a0709a.e9b12c89.js rename to assets/js/d9a0709a.314b502f.js index a67f126c..6d5bca5b 100644 --- a/assets/js/d9a0709a.e9b12c89.js +++ b/assets/js/d9a0709a.314b502f.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[8154],{5056:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>x,contentTitle:()=>u,default:()=>h,frontMatter:()=>l,metadata:()=>m,toc:()=>p});var n=i(4848),a=i(8453),r=i(1812);const s=JSON.parse('[{"sequence":1,"text":"Take one tablet daily as directed"}]');var o=i(4865),d=i(9365),c=i(8264);const l={description:"Order for a medication that includes the dosage of a prescription in text",title:"medrx002"},u=void 0,m={id:"examples/medicationrequest/medrx002",title:"medrx002",description:"Order for a medication that includes the dosage of a prescription in text",source:"@site/docs/examples/medicationrequest/medrx002.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx002",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx002",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx002.mdx",tags:[],version:"current",frontMatter:{description:"Order for a medication that includes the dosage of a prescription in text",title:"medrx002"},sidebar:"tutorialSidebar",previous:{title:"\ud83c\udf0c MedicationRequest",permalink:"/fhir-dosage-utils/docs/demo/examples/medicationrequest"},next:{title:"medrx003",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx003"}},x={},p=[];function f(e){const t={a:"a",admonition:"admonition",p:"p",...(0,a.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.admonition,{type:"info",children:(0,n.jsxs)(t.p,{children:["Source: ",(0,n.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequestexample2.html",children:"HL7"}),' - "Order for a medication that includes the dosage of a prescription in text"']})}),"\n",(0,n.jsxs)(o.A,{children:[(0,n.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(c.A,{dosages:s,config:{displayOrder:["text"]}})}),(0,n.jsx)(d.A,{value:"json",label:"Dosage",children:(0,n.jsx)(r.default,{language:"json",children:JSON.stringify(s,null,2)})})]})]})}function h(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(f,{...e})}):f(e)}},8264:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(6540),a=i(6300),r=i(1812),s=i(4848);function o(e){let{dosages:t,config:i,i18nConfig:o}=e;const[d,c]=(0,n.useState)(""),[l,u]=(0,n.useState)(i?.language||"en"),[m,x]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await a.A.build(i,o);x(e)}()}),[i]),(0,n.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);c(e)}}()}),[t,m]);return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{style:{display:"flex"},children:[(0,s.jsxs)("select",{value:l,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,s.jsx)("option",{value:"en",children:"English"}),(0,s.jsx)("option",{value:"fr",children:"French"}),(0,s.jsx)("option",{value:"nl",children:"Dutch"}),(0,s.jsx)("option",{value:"de",children:"German"})]}),(0,s.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(l);const e=m.fromMultipleDosageToText(t);c(e)}},children:"Confirm"})]}),(0,s.jsx)("div",{style:{marginTop:"10px"},children:(0,s.jsx)(r.default,{language:"markup",children:(p=d,p.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var p}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[8154],{5056:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>p,contentTitle:()=>u,default:()=>h,frontMatter:()=>l,metadata:()=>m,toc:()=>x});var n=i(4848),a=i(8453),r=i(1812);const s=JSON.parse('[{"sequence":1,"text":"Take one tablet daily as directed"}]');var o=i(4865),d=i(9365),c=i(8264);const l={description:"Order for a medication that includes the dosage of a prescription in text",title:"medrx002"},u=void 0,m={id:"examples/medicationrequest/medrx002",title:"medrx002",description:"Order for a medication that includes the dosage of a prescription in text",source:"@site/docs/examples/medicationrequest/medrx002.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx002",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx002",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx002.mdx",tags:[],version:"current",frontMatter:{description:"Order for a medication that includes the dosage of a prescription in text",title:"medrx002"},sidebar:"tutorialSidebar",previous:{title:"\ud83c\udf0c MedicationRequest",permalink:"/fhir-dosage-utils/docs/demo/examples/medicationrequest"},next:{title:"medrx003",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx003"}},p={},x=[];function f(e){const t={a:"a",admonition:"admonition",p:"p",...(0,a.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.admonition,{type:"info",children:(0,n.jsxs)(t.p,{children:["Source: ",(0,n.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequestexample2.html",children:"HL7"}),' - "Order for a medication that includes the dosage of a prescription in text"']})}),"\n",(0,n.jsxs)(o.A,{children:[(0,n.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(c.A,{dosages:s,config:{displayOrder:["text"]}})}),(0,n.jsx)(d.A,{value:"json",label:"Dosage",children:(0,n.jsx)(r.default,{language:"json",children:JSON.stringify(s,null,2)})})]})]})}function h(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(f,{...e})}):f(e)}},8264:(e,t,i)=>{i.d(t,{A:()=>o});var n=i(6540),a=i(6300),r=i(1812),s=i(4848);function o(e){let{dosages:t,config:i,i18nConfig:o}=e;const[d,c]=(0,n.useState)(""),[l,u]=(0,n.useState)(i?.language||"en"),[m,p]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await a.A.build(i,o);p(e)}()}),[i]),(0,n.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);c(e)}}()}),[t,m]);return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{style:{display:"flex"},children:[(0,s.jsxs)("select",{value:l,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,s.jsx)("option",{value:"en",children:"English"}),(0,s.jsx)("option",{value:"fr",children:"French"}),(0,s.jsx)("option",{value:"nl",children:"Dutch"}),(0,s.jsx)("option",{value:"de",children:"German"})]}),(0,s.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(l);const e=m.fromMultipleDosageToText(t);c(e)}},children:"Confirm"})]}),(0,s.jsx)("div",{style:{marginTop:"10px"},children:(0,s.jsx)(r.default,{language:"markup",children:(x=d,x.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var x}}}]); \ No newline at end of file diff --git a/assets/js/e8ce008f.51992a1e.js b/assets/js/e8ce008f.3a3dd00d.js similarity index 76% rename from assets/js/e8ce008f.51992a1e.js rename to assets/js/e8ce008f.3a3dd00d.js index 19c7d4c3..123380ec 100644 --- a/assets/js/e8ce008f.51992a1e.js +++ b/assets/js/e8ce008f.3a3dd00d.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[2122],{4497:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>h,contentTitle:()=>u,default:()=>x,frontMatter:()=>d,metadata:()=>g,toc:()=>p});var t=s(4848),o=s(8453),a=s(1812);const i=JSON.parse('{"doseAndRate":[{"doseRange":{"high":{"value":5,"unit":"pills"}}}]}');var r=s(4865),l=s(9365),c=s(816);const d={description:"High only",title:"\ud83d\udccf doseRange (High only)"},u=void 0,g={id:"specs/doseRange/high_only",title:"\ud83d\udccf doseRange (High only)",description:"High only",source:"@site/docs/specs/doseRange/high_only.mdx",sourceDirName:"specs/doseRange",slug:"/specs/doseRange/high_only",permalink:"/fhir-dosage-utils/docs/specs/doseRange/high_only",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/doseRange/high_only.mdx",tags:[],version:"current",frontMatter:{description:"High only",title:"\ud83d\udccf doseRange (High only)"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udccf doseRange",permalink:"/fhir-dosage-utils/docs/category/-doserange"},next:{title:"\ud83d\udccf doseRange (Low & High)",permalink:"/fhir-dosage-utils/docs/specs/doseRange/low_and_high"}},h={},p=[];function f(e){const n={a:"a",admonition:"admonition",p:"p",...(0,o.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(r.A,{children:[(0,t.jsx)(l.A,{value:"text",label:"Human readable text",default:!0,children:(0,t.jsx)(c.A,{dosage:i})}),(0,t.jsx)(l.A,{value:"json",label:"Dosage",children:(0,t.jsx)(a.default,{language:"json",children:JSON.stringify(i,null,2)})})]}),"\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsxs)(n.p,{children:["Don't forget you can use ",(0,t.jsx)(n.a,{href:"/api/interface/Params",children:"fromFHIRQuantityUnitToString"})," option to fit your needs"]})})]})}function x(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(f,{...e})}):f(e)}},816:(e,n,s)=>{s.d(n,{A:()=>r});var t=s(6540),o=s(6300),a=s(1812),i=s(4848);function r(e){let{dosage:n,config:s,i18nConfig:r}=e;const[l,c]=(0,t.useState)(""),[d,u]=(0,t.useState)(s?.language||"en"),[g,h]=(0,t.useState)(null);(0,t.useEffect)((()=>{!async function(){const e=await o.A.build(s,r);h(e)}()}),[s]),(0,t.useEffect)((()=>{!async function(){if(g){const e=g.fromDosageToText(n);c(e)}}()}),[n,g]);return(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{style:{display:"flex"},children:[(0,i.jsxs)("select",{value:d,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,i.jsx)("option",{value:"en",children:"English"}),(0,i.jsx)("option",{value:"fr",children:"French"}),(0,i.jsx)("option",{value:"nl",children:"Dutch"}),(0,i.jsx)("option",{value:"de",children:"German"})]}),(0,i.jsx)("button",{onClick:async()=>{if(g){await g.changeLanguage(d);const e=g.fromDosageToText(n);c(e)}},children:"Confirm"})]}),(0,i.jsx)("div",{style:{marginTop:"10px"},children:(0,i.jsx)(a.default,{language:"markup",children:(p=l,p.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var p}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[2122],{4497:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>h,contentTitle:()=>u,default:()=>x,frontMatter:()=>d,metadata:()=>g,toc:()=>p});var t=s(4848),a=s(8453),o=s(1812);const i=JSON.parse('{"doseAndRate":[{"doseRange":{"high":{"value":5,"unit":"pills"}}}]}');var r=s(4865),l=s(9365),c=s(816);const d={description:"High only",title:"\ud83d\udccf doseRange (High only)"},u=void 0,g={id:"specs/doseRange/high_only",title:"\ud83d\udccf doseRange (High only)",description:"High only",source:"@site/docs/specs/doseRange/high_only.mdx",sourceDirName:"specs/doseRange",slug:"/specs/doseRange/high_only",permalink:"/fhir-dosage-utils/docs/specs/doseRange/high_only",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/doseRange/high_only.mdx",tags:[],version:"current",frontMatter:{description:"High only",title:"\ud83d\udccf doseRange (High only)"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udccf doseRange",permalink:"/fhir-dosage-utils/docs/category/-doserange"},next:{title:"\ud83d\udccf doseRange (Low & High)",permalink:"/fhir-dosage-utils/docs/specs/doseRange/low_and_high"}},h={},p=[];function f(e){const n={a:"a",admonition:"admonition",p:"p",...(0,a.R)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(r.A,{children:[(0,t.jsx)(l.A,{value:"text",label:"Human readable text",default:!0,children:(0,t.jsx)(c.A,{dosage:i})}),(0,t.jsx)(l.A,{value:"json",label:"Dosage",children:(0,t.jsx)(o.default,{language:"json",children:JSON.stringify(i,null,2)})})]}),"\n",(0,t.jsx)(n.admonition,{type:"tip",children:(0,t.jsxs)(n.p,{children:["Don't forget you can use ",(0,t.jsx)(n.a,{href:"/api/interface/Params",children:"fromFHIRQuantityUnitToString"})," option to fit your needs"]})})]})}function x(e={}){const{wrapper:n}={...(0,a.R)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(f,{...e})}):f(e)}},816:(e,n,s)=>{s.d(n,{A:()=>r});var t=s(6540),a=s(6300),o=s(1812),i=s(4848);function r(e){let{dosage:n,config:s,i18nConfig:r}=e;const[l,c]=(0,t.useState)(""),[d,u]=(0,t.useState)(s?.language||"en"),[g,h]=(0,t.useState)(null);(0,t.useEffect)((()=>{!async function(){const e=await a.A.build(s,r);h(e)}()}),[s]),(0,t.useEffect)((()=>{!async function(){if(g){const e=g.fromDosageToText(n);c(e)}}()}),[n,g]);return(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{style:{display:"flex"},children:[(0,i.jsxs)("select",{value:d,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,i.jsx)("option",{value:"en",children:"English"}),(0,i.jsx)("option",{value:"fr",children:"French"}),(0,i.jsx)("option",{value:"nl",children:"Dutch"}),(0,i.jsx)("option",{value:"de",children:"German"})]}),(0,i.jsx)("button",{onClick:async()=>{if(g){await g.changeLanguage(d);const e=g.fromDosageToText(n);c(e)}},children:"Confirm"})]}),(0,i.jsx)("div",{style:{marginTop:"10px"},children:(0,i.jsx)(o.default,{language:"markup",children:(p=l,p.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var p}}}]); \ No newline at end of file diff --git a/assets/js/e9832d3c.930adc88.js b/assets/js/e9832d3c.2f66f130.js similarity index 59% rename from assets/js/e9832d3c.930adc88.js rename to assets/js/e9832d3c.2f66f130.js index 3bbd5dbc..51d6544a 100644 --- a/assets/js/e9832d3c.930adc88.js +++ b/assets/js/e9832d3c.2f66f130.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[6554],{9925:(e,o,i)=>{i.r(o),i.d(o,{assets:()=>x,contentTitle:()=>p,default:()=>h,frontMatter:()=>c,metadata:()=>u,toc:()=>f});var r=i(4848),a=i(8453),n=i(1812);const t=JSON.parse('{"timing":{"repeat":{"periodMax":3,"periodUnit":"d"}}}');var s=i(4865),d=i(9365),l=i(816);const c={description:"periodMax (only)",title:"\u267b\ufe0f periodMax (only)"},p=void 0,u={id:"specs/periodPeriodMax/periodMax_only",title:"\u267b\ufe0f periodMax (only)",description:"periodMax (only)",source:"@site/docs/specs/periodPeriodMax/periodMax_only.mdx",sourceDirName:"specs/periodPeriodMax",slug:"/specs/periodPeriodMax/periodMax_only",permalink:"/fhir-dosage-utils/docs/specs/periodPeriodMax/periodMax_only",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/periodPeriodMax/periodMax_only.mdx",tags:[],version:"current",frontMatter:{description:"periodMax (only)",title:"\u267b\ufe0f periodMax (only)"},sidebar:"tutorialSidebar",previous:{title:"\u267b\ufe0f periodPeriodMax",permalink:"/fhir-dosage-utils/docs/category/\ufe0f-periodperiodmax"},next:{title:"\u267b\ufe0f period & periodMax",permalink:"/fhir-dosage-utils/docs/specs/periodPeriodMax/period_and_periodMax"}},x={},f=[];function g(e){return(0,r.jsxs)(s.A,{children:[(0,r.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,r.jsx)(l.A,{dosage:t})}),(0,r.jsx)(d.A,{value:"json",label:"Dosage",children:(0,r.jsx)(n.default,{language:"json",children:JSON.stringify(t,null,2)})})]})}function h(e={}){const{wrapper:o}={...(0,a.R)(),...e.components};return o?(0,r.jsx)(o,{...e,children:(0,r.jsx)(g,{...e})}):g()}},816:(e,o,i)=>{i.d(o,{A:()=>s});var r=i(6540),a=i(6300),n=i(1812),t=i(4848);function s(e){let{dosage:o,config:i,i18nConfig:s}=e;const[d,l]=(0,r.useState)(""),[c,p]=(0,r.useState)(i?.language||"en"),[u,x]=(0,r.useState)(null);(0,r.useEffect)((()=>{!async function(){const e=await a.A.build(i,s);x(e)}()}),[i]),(0,r.useEffect)((()=>{!async function(){if(u){const e=u.fromDosageToText(o);l(e)}}()}),[o,u]);return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{style:{display:"flex"},children:[(0,t.jsxs)("select",{value:c,onChange:e=>p(e.target.value),style:{marginRight:"10px"},children:[(0,t.jsx)("option",{value:"en",children:"English"}),(0,t.jsx)("option",{value:"fr",children:"French"}),(0,t.jsx)("option",{value:"nl",children:"Dutch"}),(0,t.jsx)("option",{value:"de",children:"German"})]}),(0,t.jsx)("button",{onClick:async()=>{if(u){await u.changeLanguage(c);const e=u.fromDosageToText(o);l(e)}},children:"Confirm"})]}),(0,t.jsx)("div",{style:{marginTop:"10px"},children:(0,t.jsx)(n.default,{language:"markup",children:(f=d,f.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,o){return String.fromCharCode(o)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,o){return String.fromCharCode(parseInt(o,16))})))})})]});var f}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[6554],{9925:(e,o,r)=>{r.r(o),r.d(o,{assets:()=>x,contentTitle:()=>p,default:()=>h,frontMatter:()=>c,metadata:()=>u,toc:()=>g});var i=r(4848),a=r(8453),n=r(1812);const t=JSON.parse('{"timing":{"repeat":{"periodMax":3,"periodUnit":"d"}}}');var s=r(4865),d=r(9365),l=r(816);const c={description:"periodMax (only)",title:"\u267b\ufe0f periodMax (only)"},p=void 0,u={id:"specs/periodPeriodMax/periodMax_only",title:"\u267b\ufe0f periodMax (only)",description:"periodMax (only)",source:"@site/docs/specs/periodPeriodMax/periodMax_only.mdx",sourceDirName:"specs/periodPeriodMax",slug:"/specs/periodPeriodMax/periodMax_only",permalink:"/fhir-dosage-utils/docs/specs/periodPeriodMax/periodMax_only",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/periodPeriodMax/periodMax_only.mdx",tags:[],version:"current",frontMatter:{description:"periodMax (only)",title:"\u267b\ufe0f periodMax (only)"},sidebar:"tutorialSidebar",previous:{title:"\u267b\ufe0f periodPeriodMax",permalink:"/fhir-dosage-utils/docs/category/\ufe0f-periodperiodmax"},next:{title:"\u267b\ufe0f period & periodMax",permalink:"/fhir-dosage-utils/docs/specs/periodPeriodMax/period_and_periodMax"}},x={},g=[];function f(e){return(0,i.jsxs)(s.A,{children:[(0,i.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,i.jsx)(l.A,{dosage:t})}),(0,i.jsx)(d.A,{value:"json",label:"Dosage",children:(0,i.jsx)(n.default,{language:"json",children:JSON.stringify(t,null,2)})})]})}function h(e={}){const{wrapper:o}={...(0,a.R)(),...e.components};return o?(0,i.jsx)(o,{...e,children:(0,i.jsx)(f,{...e})}):f()}},816:(e,o,r)=>{r.d(o,{A:()=>s});var i=r(6540),a=r(6300),n=r(1812),t=r(4848);function s(e){let{dosage:o,config:r,i18nConfig:s}=e;const[d,l]=(0,i.useState)(""),[c,p]=(0,i.useState)(r?.language||"en"),[u,x]=(0,i.useState)(null);(0,i.useEffect)((()=>{!async function(){const e=await a.A.build(r,s);x(e)}()}),[r]),(0,i.useEffect)((()=>{!async function(){if(u){const e=u.fromDosageToText(o);l(e)}}()}),[o,u]);return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{style:{display:"flex"},children:[(0,t.jsxs)("select",{value:c,onChange:e=>p(e.target.value),style:{marginRight:"10px"},children:[(0,t.jsx)("option",{value:"en",children:"English"}),(0,t.jsx)("option",{value:"fr",children:"French"}),(0,t.jsx)("option",{value:"nl",children:"Dutch"}),(0,t.jsx)("option",{value:"de",children:"German"})]}),(0,t.jsx)("button",{onClick:async()=>{if(u){await u.changeLanguage(c);const e=u.fromDosageToText(o);l(e)}},children:"Confirm"})]}),(0,t.jsx)("div",{style:{marginTop:"10px"},children:(0,t.jsx)(n.default,{language:"markup",children:(g=d,g.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,o){return String.fromCharCode(o)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,o){return String.fromCharCode(parseInt(o,16))})))})})]});var g}}}]); \ No newline at end of file diff --git a/assets/js/ebb1249f.f394ca10.js b/assets/js/ebb1249f.264b61ee.js similarity index 94% rename from assets/js/ebb1249f.f394ca10.js rename to assets/js/ebb1249f.264b61ee.js index 0e821841..18fde7c1 100644 --- a/assets/js/ebb1249f.f394ca10.js +++ b/assets/js/ebb1249f.264b61ee.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[3678],{5551:(e,t,o)=>{o.r(t),o.d(t,{assets:()=>p,contentTitle:()=>u,default:()=>f,frontMatter:()=>c,metadata:()=>m,toc:()=>g});var n=o(4848),s=o(8453),i=o(1812);const r=JSON.parse('[{"sequence":1,"text":"Insert one suppository into the vagina daily at bedtime","timing":{"repeat":{"boundsPeriod":{"start":"2015-01-16","end":"2015-01-18"},"frequency":1,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"16857009","display":"Vaginal Route"}]},"method":{"coding":[{"system":"http://snomed.info/sct","code":"421257003","display":"Insert"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":1,"unit":"VAGTAB","system":"http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm","code":"VAGTAB"}}]},{"sequence":1,"text":"Apply to vaginal area topically once daily","timing":{"repeat":{"boundsPeriod":{"start":"2015-01-16","end":"2015-01-18"},"frequency":1,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"6064005","display":"Topical Route"}]},"method":{"coding":[{"system":"http://snomed.info/sct","code":"417924000","display":"Apply - dosing instruction imperative (qualifier value)"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]}}]}]');var a=o(4865),d=o(9365),l=o(8264);const c={description:"Request for a product that contains multiple dosage forms",title:"medrx0339"},u=void 0,m={id:"examples/medicationrequest/medrx0339",title:"medrx0339",description:"Request for a product that contains multiple dosage forms",source:"@site/docs/examples/medicationrequest/medrx0339.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx0339",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0339",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx0339.mdx",tags:[],version:"current",frontMatter:{description:"Request for a product that contains multiple dosage forms",title:"medrx0339"},sidebar:"tutorialSidebar",previous:{title:"medrx0331",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0331"},next:{title:"\ud83e\udde9 Contributing",permalink:"/fhir-dosage-utils/docs/contributing"}},p={},g=[];function h(e){const t={a:"a",admonition:"admonition",p:"p",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.admonition,{type:"info",children:(0,n.jsxs)(t.p,{children:["Source: ",(0,n.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequest0339.html",children:"HL7"}),' - "Request for a product that contains multiple dosage forms"']})}),"\n",(0,n.jsxs)(a.A,{children:[(0,n.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(l.A,{dosages:r,config:{}})}),(0,n.jsx)(d.A,{value:"json",label:"Dosage",children:(0,n.jsx)(i.default,{language:"json",children:JSON.stringify(r,null,2)})})]})]})}function f(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(h,{...e})}):h(e)}},8264:(e,t,o)=>{o.d(t,{A:()=>a});var n=o(6540),s=o(6300),i=o(1812),r=o(4848);function a(e){let{dosages:t,config:o,i18nConfig:a}=e;const[d,l]=(0,n.useState)(""),[c,u]=(0,n.useState)(o?.language||"en"),[m,p]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await s.A.build(o,a);p(e)}()}),[o]),(0,n.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);l(e)}}()}),[t,m]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:c,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(c);const e=m.fromMultipleDosageToText(t);l(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(i.default,{language:"markup",children:(g=d,g.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[3678],{5551:(e,t,o)=>{o.r(t),o.d(t,{assets:()=>p,contentTitle:()=>u,default:()=>f,frontMatter:()=>c,metadata:()=>m,toc:()=>g});var n=o(4848),s=o(8453),i=o(1812);const r=JSON.parse('[{"sequence":1,"text":"Insert one suppository into the vagina daily at bedtime","timing":{"repeat":{"boundsPeriod":{"start":"2015-01-16","end":"2015-01-18"},"frequency":1,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"16857009","display":"Vaginal Route"}]},"method":{"coding":[{"system":"http://snomed.info/sct","code":"421257003","display":"Insert"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":1,"unit":"VAGTAB","system":"http://terminology.hl7.org/CodeSystem/v3-orderableDrugForm","code":"VAGTAB"}}]},{"sequence":1,"text":"Apply to vaginal area topically once daily","timing":{"repeat":{"boundsPeriod":{"start":"2015-01-16","end":"2015-01-18"},"frequency":1,"period":1,"periodUnit":"d"}},"route":{"coding":[{"system":"http://snomed.info/sct","code":"6064005","display":"Topical Route"}]},"method":{"coding":[{"system":"http://snomed.info/sct","code":"417924000","display":"Apply - dosing instruction imperative (qualifier value)"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]}}]}]');var a=o(4865),d=o(9365),l=o(8264);const c={description:"Request for a product that contains multiple dosage forms",title:"medrx0339"},u=void 0,m={id:"examples/medicationrequest/medrx0339",title:"medrx0339",description:"Request for a product that contains multiple dosage forms",source:"@site/docs/examples/medicationrequest/medrx0339.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx0339",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0339",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx0339.mdx",tags:[],version:"current",frontMatter:{description:"Request for a product that contains multiple dosage forms",title:"medrx0339"},sidebar:"tutorialSidebar",previous:{title:"medrx0331",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0331"},next:{title:"\ud83e\udde9 Contributing",permalink:"/fhir-dosage-utils/docs/contributing"}},p={},g=[];function h(e){const t={a:"a",admonition:"admonition",p:"p",...(0,s.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.admonition,{type:"info",children:(0,n.jsxs)(t.p,{children:["Source: ",(0,n.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequest0339.html",children:"HL7"}),' - "Request for a product that contains multiple dosage forms"']})}),"\n",(0,n.jsxs)(a.A,{children:[(0,n.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(l.A,{dosages:r,config:{}})}),(0,n.jsx)(d.A,{value:"json",label:"Dosage",children:(0,n.jsx)(i.default,{language:"json",children:JSON.stringify(r,null,2)})})]})]})}function f(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(h,{...e})}):h(e)}},8264:(e,t,o)=>{o.d(t,{A:()=>a});var n=o(6540),s=o(6300),i=o(1812),r=o(4848);function a(e){let{dosages:t,config:o,i18nConfig:a}=e;const[d,l]=(0,n.useState)(""),[c,u]=(0,n.useState)(o?.language||"en"),[m,p]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await s.A.build(o,a);p(e)}()}),[o]),(0,n.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);l(e)}}()}),[t,m]);return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{style:{display:"flex"},children:[(0,r.jsxs)("select",{value:c,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,r.jsx)("option",{value:"en",children:"English"}),(0,r.jsx)("option",{value:"fr",children:"French"}),(0,r.jsx)("option",{value:"nl",children:"Dutch"}),(0,r.jsx)("option",{value:"de",children:"German"})]}),(0,r.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(c);const e=m.fromMultipleDosageToText(t);l(e)}},children:"Confirm"})]}),(0,r.jsx)("div",{style:{marginTop:"10px"},children:(0,r.jsx)(i.default,{language:"markup",children:(g=d,g.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}}}]); \ No newline at end of file diff --git a/assets/js/ece64983.6fe88848.js b/assets/js/ece64983.24cf7765.js similarity index 84% rename from assets/js/ece64983.6fe88848.js rename to assets/js/ece64983.24cf7765.js index df672fc1..2dc82f85 100644 --- a/assets/js/ece64983.6fe88848.js +++ b/assets/js/ece64983.24cf7765.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[1932],{7786:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>m,contentTitle:()=>d,default:()=>h,frontMatter:()=>u,metadata:()=>p,toc:()=>f});var i=n(4848),s=n(8453),a=n(1812);const l=JSON.parse('{"timing":{"event":["2018","1973-06","1905-08-23"]}}');var r=n(4865),o=n(9365),c=n(816);const u={description:"Multiple items",title:"\u2795 Multiple items"},d=void 0,p={id:"specs/event/multiple_items",title:"\u2795 Multiple items",description:"Multiple items",source:"@site/docs/specs/event/multiple_items.mdx",sourceDirName:"specs/event",slug:"/specs/event/multiple_items",permalink:"/fhir-dosage-utils/docs/specs/event/multiple_items",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/event/multiple_items.mdx",tags:[],version:"current",frontMatter:{description:"Multiple items",title:"\u2795 Multiple items"},sidebar:"tutorialSidebar",previous:{title:"\ud83c\udf89 event",permalink:"/fhir-dosage-utils/docs/category/-event"},next:{title:"\u274c Single item",permalink:"/fhir-dosage-utils/docs/specs/event/single_item"}},m={},f=[];function g(e){const t={a:"a",admonition:"admonition",p:"p",...(0,s.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(r.A,{children:[(0,i.jsx)(o.A,{value:"text",label:"Human readable text",default:!0,children:(0,i.jsx)(c.A,{dosage:l})}),(0,i.jsx)(o.A,{value:"json",label:"Dosage",children:(0,i.jsx)(a.default,{language:"json",children:JSON.stringify(l,null,2)})})]}),"\n",(0,i.jsx)(t.admonition,{type:"tip",children:(0,i.jsxs)(t.p,{children:["Don't forget you can use ",(0,i.jsx)(t.a,{href:"/api/interface/Params",children:"dateTimeFormatOptions"})," option to fit your needs"]})})]})}function h(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(g,{...e})}):g(e)}},816:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(6540),s=n(6300),a=n(1812),l=n(4848);function r(e){let{dosage:t,config:n,i18nConfig:r}=e;const[o,c]=(0,i.useState)(""),[u,d]=(0,i.useState)(n?.language||"en"),[p,m]=(0,i.useState)(null);(0,i.useEffect)((()=>{!async function(){const e=await s.A.build(n,r);m(e)}()}),[n]),(0,i.useEffect)((()=>{!async function(){if(p){const e=p.fromDosageToText(t);c(e)}}()}),[t,p]);return(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{style:{display:"flex"},children:[(0,l.jsxs)("select",{value:u,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,l.jsx)("option",{value:"en",children:"English"}),(0,l.jsx)("option",{value:"fr",children:"French"}),(0,l.jsx)("option",{value:"nl",children:"Dutch"}),(0,l.jsx)("option",{value:"de",children:"German"})]}),(0,l.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(u);const e=p.fromDosageToText(t);c(e)}},children:"Confirm"})]}),(0,l.jsx)("div",{style:{marginTop:"10px"},children:(0,l.jsx)(a.default,{language:"markup",children:(f=o,f.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var f}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[1932],{7786:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>m,contentTitle:()=>d,default:()=>h,frontMatter:()=>u,metadata:()=>p,toc:()=>g});var i=n(4848),s=n(8453),a=n(1812);const l=JSON.parse('{"timing":{"event":["2018","1973-06","1905-08-23"]}}');var r=n(4865),o=n(9365),c=n(816);const u={description:"Multiple items",title:"\u2795 Multiple items"},d=void 0,p={id:"specs/event/multiple_items",title:"\u2795 Multiple items",description:"Multiple items",source:"@site/docs/specs/event/multiple_items.mdx",sourceDirName:"specs/event",slug:"/specs/event/multiple_items",permalink:"/fhir-dosage-utils/docs/specs/event/multiple_items",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/event/multiple_items.mdx",tags:[],version:"current",frontMatter:{description:"Multiple items",title:"\u2795 Multiple items"},sidebar:"tutorialSidebar",previous:{title:"\ud83c\udf89 event",permalink:"/fhir-dosage-utils/docs/category/-event"},next:{title:"\u274c Single item",permalink:"/fhir-dosage-utils/docs/specs/event/single_item"}},m={},g=[];function f(e){const t={a:"a",admonition:"admonition",p:"p",...(0,s.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(r.A,{children:[(0,i.jsx)(o.A,{value:"text",label:"Human readable text",default:!0,children:(0,i.jsx)(c.A,{dosage:l})}),(0,i.jsx)(o.A,{value:"json",label:"Dosage",children:(0,i.jsx)(a.default,{language:"json",children:JSON.stringify(l,null,2)})})]}),"\n",(0,i.jsx)(t.admonition,{type:"tip",children:(0,i.jsxs)(t.p,{children:["Don't forget you can use ",(0,i.jsx)(t.a,{href:"/api/interface/Params",children:"dateTimeFormatOptions"})," option to fit your needs"]})})]})}function h(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(f,{...e})}):f(e)}},816:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(6540),s=n(6300),a=n(1812),l=n(4848);function r(e){let{dosage:t,config:n,i18nConfig:r}=e;const[o,c]=(0,i.useState)(""),[u,d]=(0,i.useState)(n?.language||"en"),[p,m]=(0,i.useState)(null);(0,i.useEffect)((()=>{!async function(){const e=await s.A.build(n,r);m(e)}()}),[n]),(0,i.useEffect)((()=>{!async function(){if(p){const e=p.fromDosageToText(t);c(e)}}()}),[t,p]);return(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{style:{display:"flex"},children:[(0,l.jsxs)("select",{value:u,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,l.jsx)("option",{value:"en",children:"English"}),(0,l.jsx)("option",{value:"fr",children:"French"}),(0,l.jsx)("option",{value:"nl",children:"Dutch"}),(0,l.jsx)("option",{value:"de",children:"German"})]}),(0,l.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(u);const e=p.fromDosageToText(t);c(e)}},children:"Confirm"})]}),(0,l.jsx)("div",{style:{marginTop:"10px"},children:(0,l.jsx)(a.default,{language:"markup",children:(g=o,g.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}}}]); \ No newline at end of file diff --git a/assets/js/ee929032.57c0c6ef.js b/assets/js/ee929032.d8ea40d1.js similarity index 79% rename from assets/js/ee929032.57c0c6ef.js rename to assets/js/ee929032.d8ea40d1.js index eb8a39b9..c42c4213 100644 --- a/assets/js/ee929032.57c0c6ef.js +++ b/assets/js/ee929032.d8ea40d1.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[5236],{1939:(e,t,a)=>{a.r(t),a.d(t,{assets:()=>f,contentTitle:()=>d,default:()=>m,frontMatter:()=>u,metadata:()=>p,toc:()=>g});var n=a(4848),i=a(8453),r=a(1812);const o=JSON.parse('{"doseAndRate":[{"rateRatio":{"numerator":{"value":3,"unit":"pills"},"denominator":{"value":5,"unit":"hours"}}}]}');var s=a(4865),c=a(9365),l=a(816);const u={description:"rateRatio",title:"\ud83d\udcc8 rateRatio"},d=void 0,p={id:"specs/rateRatio/rateRatio",title:"\ud83d\udcc8 rateRatio",description:"rateRatio",source:"@site/docs/specs/rateRatio/rateRatio.mdx",sourceDirName:"specs/rateRatio",slug:"/specs/rateRatio/",permalink:"/fhir-dosage-utils/docs/specs/rateRatio/",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/rateRatio/rateRatio.mdx",tags:[],version:"current",frontMatter:{description:"rateRatio",title:"\ud83d\udcc8 rateRatio"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udcc8 rateRatio",permalink:"/fhir-dosage-utils/docs/category/-rateratio"},next:{title:"\ud83d\udee3\ufe0f route",permalink:"/fhir-dosage-utils/docs/category/\ufe0f-route"}},f={},g=[];function h(e){const t={a:"a",admonition:"admonition",p:"p",...(0,i.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.A,{children:[(0,n.jsx)(c.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(l.A,{dosage:o})}),(0,n.jsx)(c.A,{value:"json",label:"Dosage",children:(0,n.jsx)(r.default,{language:"json",children:JSON.stringify(o,null,2)})})]}),"\n",(0,n.jsx)(t.admonition,{type:"tip",children:(0,n.jsxs)(t.p,{children:["Don't forget you can use ",(0,n.jsx)(t.a,{href:"/api/interface/Params",children:"fromFHIRQuantityUnitToString"})," option to fit your needs"]})})]})}function m(e={}){const{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(h,{...e})}):h(e)}},816:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(6540),i=a(6300),r=a(1812),o=a(4848);function s(e){let{dosage:t,config:a,i18nConfig:s}=e;const[c,l]=(0,n.useState)(""),[u,d]=(0,n.useState)(a?.language||"en"),[p,f]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await i.A.build(a,s);f(e)}()}),[a]),(0,n.useEffect)((()=>{!async function(){if(p){const e=p.fromDosageToText(t);l(e)}}()}),[t,p]);return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{style:{display:"flex"},children:[(0,o.jsxs)("select",{value:u,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,o.jsx)("option",{value:"en",children:"English"}),(0,o.jsx)("option",{value:"fr",children:"French"}),(0,o.jsx)("option",{value:"nl",children:"Dutch"}),(0,o.jsx)("option",{value:"de",children:"German"})]}),(0,o.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(u);const e=p.fromDosageToText(t);l(e)}},children:"Confirm"})]}),(0,o.jsx)("div",{style:{marginTop:"10px"},children:(0,o.jsx)(r.default,{language:"markup",children:(g=c,g.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[5236],{1939:(e,t,a)=>{a.r(t),a.d(t,{assets:()=>f,contentTitle:()=>d,default:()=>m,frontMatter:()=>u,metadata:()=>p,toc:()=>g});var n=a(4848),r=a(8453),i=a(1812);const o=JSON.parse('{"doseAndRate":[{"rateRatio":{"numerator":{"value":3,"unit":"pills"},"denominator":{"value":5,"unit":"hours"}}}]}');var s=a(4865),c=a(9365),l=a(816);const u={description:"rateRatio",title:"\ud83d\udcc8 rateRatio"},d=void 0,p={id:"specs/rateRatio/rateRatio",title:"\ud83d\udcc8 rateRatio",description:"rateRatio",source:"@site/docs/specs/rateRatio/rateRatio.mdx",sourceDirName:"specs/rateRatio",slug:"/specs/rateRatio/",permalink:"/fhir-dosage-utils/docs/specs/rateRatio/",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/rateRatio/rateRatio.mdx",tags:[],version:"current",frontMatter:{description:"rateRatio",title:"\ud83d\udcc8 rateRatio"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udcc8 rateRatio",permalink:"/fhir-dosage-utils/docs/category/-rateratio"},next:{title:"\ud83d\udee3\ufe0f route",permalink:"/fhir-dosage-utils/docs/category/\ufe0f-route"}},f={},g=[];function h(e){const t={a:"a",admonition:"admonition",p:"p",...(0,r.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(s.A,{children:[(0,n.jsx)(c.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(l.A,{dosage:o})}),(0,n.jsx)(c.A,{value:"json",label:"Dosage",children:(0,n.jsx)(i.default,{language:"json",children:JSON.stringify(o,null,2)})})]}),"\n",(0,n.jsx)(t.admonition,{type:"tip",children:(0,n.jsxs)(t.p,{children:["Don't forget you can use ",(0,n.jsx)(t.a,{href:"/api/interface/Params",children:"fromFHIRQuantityUnitToString"})," option to fit your needs"]})})]})}function m(e={}){const{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(h,{...e})}):h(e)}},816:(e,t,a)=>{a.d(t,{A:()=>s});var n=a(6540),r=a(6300),i=a(1812),o=a(4848);function s(e){let{dosage:t,config:a,i18nConfig:s}=e;const[c,l]=(0,n.useState)(""),[u,d]=(0,n.useState)(a?.language||"en"),[p,f]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await r.A.build(a,s);f(e)}()}),[a]),(0,n.useEffect)((()=>{!async function(){if(p){const e=p.fromDosageToText(t);l(e)}}()}),[t,p]);return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{style:{display:"flex"},children:[(0,o.jsxs)("select",{value:u,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,o.jsx)("option",{value:"en",children:"English"}),(0,o.jsx)("option",{value:"fr",children:"French"}),(0,o.jsx)("option",{value:"nl",children:"Dutch"}),(0,o.jsx)("option",{value:"de",children:"German"})]}),(0,o.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(u);const e=p.fromDosageToText(t);l(e)}},children:"Confirm"})]}),(0,o.jsx)("div",{style:{marginTop:"10px"},children:(0,o.jsx)(i.default,{language:"markup",children:(g=c,g.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}}}]); \ No newline at end of file diff --git a/assets/js/ef54304a.1e2dbed9.js b/assets/js/ef54304a.6406d117.js similarity index 76% rename from assets/js/ef54304a.1e2dbed9.js rename to assets/js/ef54304a.6406d117.js index d267d4d7..0f765654 100644 --- a/assets/js/ef54304a.1e2dbed9.js +++ b/assets/js/ef54304a.6406d117.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[3157],{9:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>u,default:()=>h,frontMatter:()=>c,metadata:()=>m,toc:()=>g});var i=n(4848),s=n(8453),a=n(1812),o=n(9763),r=n(4865),d=n(9365),l=n(8264);const c={description:"Request with multiple dosages and timings",title:"medrx004"},u=void 0,m={id:"examples/medicationrequest/medrx004",title:"medrx004",description:"Request with multiple dosages and timings",source:"@site/docs/examples/medicationrequest/medrx004.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx004",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx004",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx004.mdx",tags:[],version:"current",frontMatter:{description:"Request with multiple dosages and timings",title:"medrx004"},sidebar:"tutorialSidebar",previous:{title:"medrx003",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx003"},next:{title:"medrx0301",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0301"}},p={},g=[];function x(e){const t={a:"a",admonition:"admonition",p:"p",...(0,s.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.admonition,{type:"info",children:(0,i.jsxs)(t.p,{children:["Source: ",(0,i.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequestexample4.html",children:"HL7"}),' - "Request with multiple dosages and timings"']})}),"\n",(0,i.jsxs)(r.A,{children:[(0,i.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,i.jsx)(l.A,{dosages:o,config:{}})}),(0,i.jsx)(d.A,{value:"json",label:"Dosage",children:(0,i.jsx)(a.default,{language:"json",children:JSON.stringify(o,null,2)})})]})]})}function h(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(x,{...e})}):x(e)}},8264:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(6540),s=n(6300),a=n(1812),o=n(4848);function r(e){let{dosages:t,config:n,i18nConfig:r}=e;const[d,l]=(0,i.useState)(""),[c,u]=(0,i.useState)(n?.language||"en"),[m,p]=(0,i.useState)(null);(0,i.useEffect)((()=>{!async function(){const e=await s.A.build(n,r);p(e)}()}),[n]),(0,i.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);l(e)}}()}),[t,m]);return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{style:{display:"flex"},children:[(0,o.jsxs)("select",{value:c,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,o.jsx)("option",{value:"en",children:"English"}),(0,o.jsx)("option",{value:"fr",children:"French"}),(0,o.jsx)("option",{value:"nl",children:"Dutch"}),(0,o.jsx)("option",{value:"de",children:"German"})]}),(0,o.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(c);const e=m.fromMultipleDosageToText(t);l(e)}},children:"Confirm"})]}),(0,o.jsx)("div",{style:{marginTop:"10px"},children:(0,o.jsx)(a.default,{language:"markup",children:(g=d,g.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}},9763:e=>{e.exports=JSON.parse('[{"sequence":1,"text":"Administer in 100cc NS as follows: First treatment infuse over 90 minutes, if no reaction then second treatment infuse over 60 minutes, if no reaction then on third and following treatments give over 30 minutes.","timing":{"event":["2023-01-18T00:00:00.000Z"]},"route":{"coding":[{"system":"http://flatiron.com/CodeSystem/Route","code":"IV"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":5,"unit":"mg/kg"}},{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"calculated","display":"Calculated"}]},"doseQuantity":{"value":340,"unit":"mg"}}]}]')}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[3157],{9:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>u,default:()=>h,frontMatter:()=>c,metadata:()=>m,toc:()=>g});var i=n(4848),s=n(8453),a=n(1812),o=n(9763),r=n(4865),d=n(9365),l=n(8264);const c={description:"Request with multiple dosages and timings",title:"medrx004"},u=void 0,m={id:"examples/medicationrequest/medrx004",title:"medrx004",description:"Request with multiple dosages and timings",source:"@site/docs/examples/medicationrequest/medrx004.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx004",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx004",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx004.mdx",tags:[],version:"current",frontMatter:{description:"Request with multiple dosages and timings",title:"medrx004"},sidebar:"tutorialSidebar",previous:{title:"medrx003",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx003"},next:{title:"medrx0301",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx0301"}},p={},g=[];function x(e){const t={a:"a",admonition:"admonition",p:"p",...(0,s.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(t.admonition,{type:"info",children:(0,i.jsxs)(t.p,{children:["Source: ",(0,i.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequestexample4.html",children:"HL7"}),' - "Request with multiple dosages and timings"']})}),"\n",(0,i.jsxs)(r.A,{children:[(0,i.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,i.jsx)(l.A,{dosages:o,config:{}})}),(0,i.jsx)(d.A,{value:"json",label:"Dosage",children:(0,i.jsx)(a.default,{language:"json",children:JSON.stringify(o,null,2)})})]})]})}function h(e={}){const{wrapper:t}={...(0,s.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(x,{...e})}):x(e)}},8264:(e,t,n)=>{n.d(t,{A:()=>r});var i=n(6540),s=n(6300),a=n(1812),o=n(4848);function r(e){let{dosages:t,config:n,i18nConfig:r}=e;const[d,l]=(0,i.useState)(""),[c,u]=(0,i.useState)(n?.language||"en"),[m,p]=(0,i.useState)(null);(0,i.useEffect)((()=>{!async function(){const e=await s.A.build(n,r);p(e)}()}),[n]),(0,i.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);l(e)}}()}),[t,m]);return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{style:{display:"flex"},children:[(0,o.jsxs)("select",{value:c,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,o.jsx)("option",{value:"en",children:"English"}),(0,o.jsx)("option",{value:"fr",children:"French"}),(0,o.jsx)("option",{value:"nl",children:"Dutch"}),(0,o.jsx)("option",{value:"de",children:"German"})]}),(0,o.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(c);const e=m.fromMultipleDosageToText(t);l(e)}},children:"Confirm"})]}),(0,o.jsx)("div",{style:{marginTop:"10px"},children:(0,o.jsx)(a.default,{language:"markup",children:(g=d,g.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}},9763:e=>{e.exports=JSON.parse('[{"sequence":1,"text":"Administer in 100cc NS as follows: First treatment infuse over 90 minutes, if no reaction then second treatment infuse over 60 minutes, if no reaction then on third and following treatments give over 30 minutes.","timing":{"event":["2023-01-18T00:00:00.000Z"]},"route":{"coding":[{"system":"http://flatiron.com/CodeSystem/Route","code":"IV"}]},"doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"Ordered"}]},"doseQuantity":{"value":5,"unit":"mg/kg"}},{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"calculated","display":"Calculated"}]},"doseQuantity":{"value":340,"unit":"mg"}}]}]')}}]); \ No newline at end of file diff --git a/assets/js/f58af7d8.741d1f90.js b/assets/js/f58af7d8.40bdc39c.js similarity index 93% rename from assets/js/f58af7d8.741d1f90.js rename to assets/js/f58af7d8.40bdc39c.js index 31b14165..3755365d 100644 --- a/assets/js/f58af7d8.741d1f90.js +++ b/assets/js/f58af7d8.40bdc39c.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[4056],{1877:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>p,contentTitle:()=>d,default:()=>h,frontMatter:()=>u,metadata:()=>m,toc:()=>f});var s=i(4848),a=i(8453),n=i(1812);const l=JSON.parse('{"timing":{"repeat":{"timeOfDay":["15:00:00","12:12:12"]}}}');var r=i(4865),o=i(9365),c=i(816);const u={description:"Multiple items",title:"\u2795 Multiple items"},d=void 0,m={id:"specs/timeOfDay/multiple_items",title:"\u2795 Multiple items",description:"Multiple items",source:"@site/docs/specs/timeOfDay/multiple_items.mdx",sourceDirName:"specs/timeOfDay",slug:"/specs/timeOfDay/multiple_items",permalink:"/fhir-dosage-utils/docs/specs/timeOfDay/multiple_items",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/timeOfDay/multiple_items.mdx",tags:[],version:"current",frontMatter:{description:"Multiple items",title:"\u2795 Multiple items"},sidebar:"tutorialSidebar",previous:{title:"\u231a timeOfDay",permalink:"/fhir-dosage-utils/docs/category/-timeofday"},next:{title:"\u274c Single item",permalink:"/fhir-dosage-utils/docs/specs/timeOfDay/single_item"}},p={},f=[];function g(e){return(0,s.jsxs)(r.A,{children:[(0,s.jsx)(o.A,{value:"text",label:"Human readable text",default:!0,children:(0,s.jsx)(c.A,{dosage:l})}),(0,s.jsx)(o.A,{value:"json",label:"Dosage",children:(0,s.jsx)(n.default,{language:"json",children:JSON.stringify(l,null,2)})})]})}function h(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(g,{...e})}):g()}},816:(e,t,i)=>{i.d(t,{A:()=>r});var s=i(6540),a=i(6300),n=i(1812),l=i(4848);function r(e){let{dosage:t,config:i,i18nConfig:r}=e;const[o,c]=(0,s.useState)(""),[u,d]=(0,s.useState)(i?.language||"en"),[m,p]=(0,s.useState)(null);(0,s.useEffect)((()=>{!async function(){const e=await a.A.build(i,r);p(e)}()}),[i]),(0,s.useEffect)((()=>{!async function(){if(m){const e=m.fromDosageToText(t);c(e)}}()}),[t,m]);return(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{style:{display:"flex"},children:[(0,l.jsxs)("select",{value:u,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,l.jsx)("option",{value:"en",children:"English"}),(0,l.jsx)("option",{value:"fr",children:"French"}),(0,l.jsx)("option",{value:"nl",children:"Dutch"}),(0,l.jsx)("option",{value:"de",children:"German"})]}),(0,l.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(u);const e=m.fromDosageToText(t);c(e)}},children:"Confirm"})]}),(0,l.jsx)("div",{style:{marginTop:"10px"},children:(0,l.jsx)(n.default,{language:"markup",children:(f=o,f.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var f}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[4056],{1877:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>p,contentTitle:()=>d,default:()=>h,frontMatter:()=>u,metadata:()=>m,toc:()=>f});var s=i(4848),a=i(8453),n=i(1812);const l=JSON.parse('{"timing":{"repeat":{"timeOfDay":["15:00:00","12:12:12"]}}}');var r=i(4865),o=i(9365),c=i(816);const u={description:"Multiple items",title:"\u2795 Multiple items"},d=void 0,m={id:"specs/timeOfDay/multiple_items",title:"\u2795 Multiple items",description:"Multiple items",source:"@site/docs/specs/timeOfDay/multiple_items.mdx",sourceDirName:"specs/timeOfDay",slug:"/specs/timeOfDay/multiple_items",permalink:"/fhir-dosage-utils/docs/specs/timeOfDay/multiple_items",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/timeOfDay/multiple_items.mdx",tags:[],version:"current",frontMatter:{description:"Multiple items",title:"\u2795 Multiple items"},sidebar:"tutorialSidebar",previous:{title:"\u231a timeOfDay",permalink:"/fhir-dosage-utils/docs/category/-timeofday"},next:{title:"\u274c Single item",permalink:"/fhir-dosage-utils/docs/specs/timeOfDay/single_item"}},p={},f=[];function g(e){return(0,s.jsxs)(r.A,{children:[(0,s.jsx)(o.A,{value:"text",label:"Human readable text",default:!0,children:(0,s.jsx)(c.A,{dosage:l})}),(0,s.jsx)(o.A,{value:"json",label:"Dosage",children:(0,s.jsx)(n.default,{language:"json",children:JSON.stringify(l,null,2)})})]})}function h(e={}){const{wrapper:t}={...(0,a.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(g,{...e})}):g()}},816:(e,t,i)=>{i.d(t,{A:()=>r});var s=i(6540),a=i(6300),n=i(1812),l=i(4848);function r(e){let{dosage:t,config:i,i18nConfig:r}=e;const[o,c]=(0,s.useState)(""),[u,d]=(0,s.useState)(i?.language||"en"),[m,p]=(0,s.useState)(null);(0,s.useEffect)((()=>{!async function(){const e=await a.A.build(i,r);p(e)}()}),[i]),(0,s.useEffect)((()=>{!async function(){if(m){const e=m.fromDosageToText(t);c(e)}}()}),[t,m]);return(0,l.jsxs)("div",{children:[(0,l.jsxs)("div",{style:{display:"flex"},children:[(0,l.jsxs)("select",{value:u,onChange:e=>d(e.target.value),style:{marginRight:"10px"},children:[(0,l.jsx)("option",{value:"en",children:"English"}),(0,l.jsx)("option",{value:"fr",children:"French"}),(0,l.jsx)("option",{value:"nl",children:"Dutch"}),(0,l.jsx)("option",{value:"de",children:"German"})]}),(0,l.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(u);const e=m.fromDosageToText(t);c(e)}},children:"Confirm"})]}),(0,l.jsx)("div",{style:{marginTop:"10px"},children:(0,l.jsx)(n.default,{language:"markup",children:(f=o,f.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var f}}}]); \ No newline at end of file diff --git a/assets/js/f7adbe59.25ccf043.js b/assets/js/f7adbe59.815b7325.js similarity index 85% rename from assets/js/f7adbe59.25ccf043.js rename to assets/js/f7adbe59.815b7325.js index dbaaf0aa..eae53f72 100644 --- a/assets/js/f7adbe59.25ccf043.js +++ b/assets/js/f7adbe59.815b7325.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[9280],{310:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>f,contentTitle:()=>l,default:()=>x,frontMatter:()=>c,metadata:()=>p,toc:()=>g});var o=t(4848),s=t(8453),a=t(1812),i=t(7622),r=t(4865),u=t(9365),d=t(816);const c={description:"boundsDuration",title:"\ud83d\udd70\ufe0f boundsDuration"},l=void 0,p={id:"specs/boundsDuration/boundsDuration",title:"\ud83d\udd70\ufe0f boundsDuration",description:"boundsDuration",source:"@site/docs/specs/boundsDuration/boundsDuration.mdx",sourceDirName:"specs/boundsDuration",slug:"/specs/boundsDuration/",permalink:"/fhir-dosage-utils/docs/specs/boundsDuration/",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/boundsDuration/boundsDuration.mdx",tags:[],version:"current",frontMatter:{description:"boundsDuration",title:"\ud83d\udd70\ufe0f boundsDuration"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udd70\ufe0f boundsDuration",permalink:"/fhir-dosage-utils/docs/category/\ufe0f-boundsduration"},next:{title:"\u23f3 boundsPeriod",permalink:"/fhir-dosage-utils/docs/category/-boundsperiod"}},f={},g=[];function h(e){const n={a:"a",admonition:"admonition",p:"p",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(r.A,{children:[(0,o.jsx)(u.A,{value:"text",label:"Human readable text",default:!0,children:(0,o.jsx)(d.A,{dosage:i})}),(0,o.jsx)(u.A,{value:"json",label:"Dosage",children:(0,o.jsx)(a.default,{language:"json",children:JSON.stringify(i,null,2)})})]}),"\n",(0,o.jsx)(n.admonition,{type:"tip",children:(0,o.jsxs)(n.p,{children:["Don't forget you can use ",(0,o.jsx)(n.a,{href:"/api/interface/Params",children:"fromFHIRQuantityUnitToString"})," option to fit your needs"]})})]})}function x(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(h,{...e})}):h(e)}},816:(e,n,t)=>{t.d(n,{A:()=>r});var o=t(6540),s=t(6300),a=t(1812),i=t(4848);function r(e){let{dosage:n,config:t,i18nConfig:r}=e;const[u,d]=(0,o.useState)(""),[c,l]=(0,o.useState)(t?.language||"en"),[p,f]=(0,o.useState)(null);(0,o.useEffect)((()=>{!async function(){const e=await s.A.build(t,r);f(e)}()}),[t]),(0,o.useEffect)((()=>{!async function(){if(p){const e=p.fromDosageToText(n);d(e)}}()}),[n,p]);return(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{style:{display:"flex"},children:[(0,i.jsxs)("select",{value:c,onChange:e=>l(e.target.value),style:{marginRight:"10px"},children:[(0,i.jsx)("option",{value:"en",children:"English"}),(0,i.jsx)("option",{value:"fr",children:"French"}),(0,i.jsx)("option",{value:"nl",children:"Dutch"}),(0,i.jsx)("option",{value:"de",children:"German"})]}),(0,i.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(c);const e=p.fromDosageToText(n);d(e)}},children:"Confirm"})]}),(0,i.jsx)("div",{style:{marginTop:"10px"},children:(0,i.jsx)(a.default,{language:"markup",children:(g=u,g.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var g}},7622:e=>{e.exports=JSON.parse('{"timing":{"repeat":{"boundsDuration":{"system":"http://hl7.org/fhir/ValueSet/duration-units","value":3,"code":"d"}}}}')}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[9280],{310:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>f,contentTitle:()=>l,default:()=>m,frontMatter:()=>c,metadata:()=>p,toc:()=>g});var o=t(4848),s=t(8453),a=t(1812),i=t(7622),r=t(4865),u=t(9365),d=t(816);const c={description:"boundsDuration",title:"\ud83d\udd70\ufe0f boundsDuration"},l=void 0,p={id:"specs/boundsDuration/boundsDuration",title:"\ud83d\udd70\ufe0f boundsDuration",description:"boundsDuration",source:"@site/docs/specs/boundsDuration/boundsDuration.mdx",sourceDirName:"specs/boundsDuration",slug:"/specs/boundsDuration/",permalink:"/fhir-dosage-utils/docs/specs/boundsDuration/",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/boundsDuration/boundsDuration.mdx",tags:[],version:"current",frontMatter:{description:"boundsDuration",title:"\ud83d\udd70\ufe0f boundsDuration"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udd70\ufe0f boundsDuration",permalink:"/fhir-dosage-utils/docs/category/\ufe0f-boundsduration"},next:{title:"\u23f3 boundsPeriod",permalink:"/fhir-dosage-utils/docs/category/-boundsperiod"}},f={},g=[];function h(e){const n={a:"a",admonition:"admonition",p:"p",...(0,s.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(r.A,{children:[(0,o.jsx)(u.A,{value:"text",label:"Human readable text",default:!0,children:(0,o.jsx)(d.A,{dosage:i})}),(0,o.jsx)(u.A,{value:"json",label:"Dosage",children:(0,o.jsx)(a.default,{language:"json",children:JSON.stringify(i,null,2)})})]}),"\n",(0,o.jsx)(n.admonition,{type:"tip",children:(0,o.jsxs)(n.p,{children:["Don't forget you can use ",(0,o.jsx)(n.a,{href:"/api/interface/Params",children:"fromFHIRQuantityUnitToString"})," option to fit your needs"]})})]})}function m(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,o.jsx)(n,{...e,children:(0,o.jsx)(h,{...e})}):h(e)}},816:(e,n,t)=>{t.d(n,{A:()=>r});var o=t(6540),s=t(6300),a=t(1812),i=t(4848);function r(e){let{dosage:n,config:t,i18nConfig:r}=e;const[u,d]=(0,o.useState)(""),[c,l]=(0,o.useState)(t?.language||"en"),[p,f]=(0,o.useState)(null);(0,o.useEffect)((()=>{!async function(){const e=await s.A.build(t,r);f(e)}()}),[t]),(0,o.useEffect)((()=>{!async function(){if(p){const e=p.fromDosageToText(n);d(e)}}()}),[n,p]);return(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{style:{display:"flex"},children:[(0,i.jsxs)("select",{value:c,onChange:e=>l(e.target.value),style:{marginRight:"10px"},children:[(0,i.jsx)("option",{value:"en",children:"English"}),(0,i.jsx)("option",{value:"fr",children:"French"}),(0,i.jsx)("option",{value:"nl",children:"Dutch"}),(0,i.jsx)("option",{value:"de",children:"German"})]}),(0,i.jsx)("button",{onClick:async()=>{if(p){await p.changeLanguage(c);const e=p.fromDosageToText(n);d(e)}},children:"Confirm"})]}),(0,i.jsx)("div",{style:{marginTop:"10px"},children:(0,i.jsx)(a.default,{language:"markup",children:(g=u,g.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,n){return String.fromCharCode(n)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,n){return String.fromCharCode(parseInt(n,16))})))})})]});var g}},7622:e=>{e.exports=JSON.parse('{"timing":{"repeat":{"boundsDuration":{"system":"http://hl7.org/fhir/ValueSet/duration-units","value":3,"code":"d"}}}}')}}]); \ No newline at end of file diff --git a/assets/js/fa572d46.960f8560.js b/assets/js/fa572d46.47a744aa.js similarity index 55% rename from assets/js/fa572d46.960f8560.js rename to assets/js/fa572d46.47a744aa.js index 7ddac623..a9417d69 100644 --- a/assets/js/fa572d46.960f8560.js +++ b/assets/js/fa572d46.47a744aa.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[1616],{6634:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>h,contentTitle:()=>l,default:()=>m,frontMatter:()=>c,metadata:()=>d,toc:()=>p});var n=t(4848),o=t(8453),i=t(1812);const a=JSON.parse('{"timing":{"repeat":{"offset":15}}}');var f=t(4865),r=t(9365),u=t(816);const c={description:"offset, expressing minute(s)",title:"\ud83d\udd52 offset (Minutes)"},l=void 0,d={id:"specs/offsetWhen/offset/offset_minutes",title:"\ud83d\udd52 offset (Minutes)",description:"offset, expressing minute(s)",source:"@site/docs/specs/offsetWhen/offset/offset_minutes.mdx",sourceDirName:"specs/offsetWhen/offset",slug:"/specs/offsetWhen/offset/offset_minutes",permalink:"/fhir-dosage-utils/docs/specs/offsetWhen/offset/offset_minutes",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/offsetWhen/offset/offset_minutes.mdx",tags:[],version:"current",frontMatter:{description:"offset, expressing minute(s)",title:"\ud83d\udd52 offset (Minutes)"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udd52 offset (Hours)",permalink:"/fhir-dosage-utils/docs/specs/offsetWhen/offset/offset_hours"},next:{title:"\ud83d\udd52 when",permalink:"/fhir-dosage-utils/docs/category/-when"}},h={},p=[];function g(e){return(0,n.jsxs)(f.A,{children:[(0,n.jsx)(r.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(u.A,{dosage:a})}),(0,n.jsx)(r.A,{value:"json",label:"Dosage",children:(0,n.jsx)(i.default,{language:"json",children:JSON.stringify(a,null,2)})})]})}function m(e={}){const{wrapper:s}={...(0,o.R)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(g,{...e})}):g()}},816:(e,s,t)=>{t.d(s,{A:()=>f});var n=t(6540),o=t(6300),i=t(1812),a=t(4848);function f(e){let{dosage:s,config:t,i18nConfig:f}=e;const[r,u]=(0,n.useState)(""),[c,l]=(0,n.useState)(t?.language||"en"),[d,h]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await o.A.build(t,f);h(e)}()}),[t]),(0,n.useEffect)((()=>{!async function(){if(d){const e=d.fromDosageToText(s);u(e)}}()}),[s,d]);return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{style:{display:"flex"},children:[(0,a.jsxs)("select",{value:c,onChange:e=>l(e.target.value),style:{marginRight:"10px"},children:[(0,a.jsx)("option",{value:"en",children:"English"}),(0,a.jsx)("option",{value:"fr",children:"French"}),(0,a.jsx)("option",{value:"nl",children:"Dutch"}),(0,a.jsx)("option",{value:"de",children:"German"})]}),(0,a.jsx)("button",{onClick:async()=>{if(d){await d.changeLanguage(c);const e=d.fromDosageToText(s);u(e)}},children:"Confirm"})]}),(0,a.jsx)("div",{style:{marginTop:"10px"},children:(0,a.jsx)(i.default,{language:"markup",children:(p=r,p.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,s){return String.fromCharCode(s)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,s){return String.fromCharCode(parseInt(s,16))})))})})]});var p}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[1616],{6634:(e,s,t)=>{t.r(s),t.d(s,{assets:()=>p,contentTitle:()=>l,default:()=>m,frontMatter:()=>u,metadata:()=>d,toc:()=>h});var n=t(4848),o=t(8453),i=t(1812);const a=JSON.parse('{"timing":{"repeat":{"offset":15}}}');var r=t(4865),f=t(9365),c=t(816);const u={description:"offset, expressing minute(s)",title:"\ud83d\udd52 offset (Minutes)"},l=void 0,d={id:"specs/offsetWhen/offset/offset_minutes",title:"\ud83d\udd52 offset (Minutes)",description:"offset, expressing minute(s)",source:"@site/docs/specs/offsetWhen/offset/offset_minutes.mdx",sourceDirName:"specs/offsetWhen/offset",slug:"/specs/offsetWhen/offset/offset_minutes",permalink:"/fhir-dosage-utils/docs/specs/offsetWhen/offset/offset_minutes",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/specs/offsetWhen/offset/offset_minutes.mdx",tags:[],version:"current",frontMatter:{description:"offset, expressing minute(s)",title:"\ud83d\udd52 offset (Minutes)"},sidebar:"tutorialSidebar",previous:{title:"\ud83d\udd52 offset (Hours)",permalink:"/fhir-dosage-utils/docs/specs/offsetWhen/offset/offset_hours"},next:{title:"\ud83d\udd52 when",permalink:"/fhir-dosage-utils/docs/category/-when"}},p={},h=[];function g(e){return(0,n.jsxs)(r.A,{children:[(0,n.jsx)(f.A,{value:"text",label:"Human readable text",default:!0,children:(0,n.jsx)(c.A,{dosage:a})}),(0,n.jsx)(f.A,{value:"json",label:"Dosage",children:(0,n.jsx)(i.default,{language:"json",children:JSON.stringify(a,null,2)})})]})}function m(e={}){const{wrapper:s}={...(0,o.R)(),...e.components};return s?(0,n.jsx)(s,{...e,children:(0,n.jsx)(g,{...e})}):g()}},816:(e,s,t)=>{t.d(s,{A:()=>r});var n=t(6540),o=t(6300),i=t(1812),a=t(4848);function r(e){let{dosage:s,config:t,i18nConfig:r}=e;const[f,c]=(0,n.useState)(""),[u,l]=(0,n.useState)(t?.language||"en"),[d,p]=(0,n.useState)(null);(0,n.useEffect)((()=>{!async function(){const e=await o.A.build(t,r);p(e)}()}),[t]),(0,n.useEffect)((()=>{!async function(){if(d){const e=d.fromDosageToText(s);c(e)}}()}),[s,d]);return(0,a.jsxs)("div",{children:[(0,a.jsxs)("div",{style:{display:"flex"},children:[(0,a.jsxs)("select",{value:u,onChange:e=>l(e.target.value),style:{marginRight:"10px"},children:[(0,a.jsx)("option",{value:"en",children:"English"}),(0,a.jsx)("option",{value:"fr",children:"French"}),(0,a.jsx)("option",{value:"nl",children:"Dutch"}),(0,a.jsx)("option",{value:"de",children:"German"})]}),(0,a.jsx)("button",{onClick:async()=>{if(d){await d.changeLanguage(u);const e=d.fromDosageToText(s);c(e)}},children:"Confirm"})]}),(0,a.jsx)("div",{style:{marginTop:"10px"},children:(0,a.jsx)(i.default,{language:"markup",children:(h=f,h.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,s){return String.fromCharCode(s)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,s){return String.fromCharCode(parseInt(s,16))})))})})]});var h}}}]); \ No newline at end of file diff --git a/assets/js/fdba5499.52f5d4e0.js b/assets/js/fdba5499.04a48033.js similarity index 94% rename from assets/js/fdba5499.52f5d4e0.js rename to assets/js/fdba5499.04a48033.js index eb2f0299..37b3d46f 100644 --- a/assets/js/fdba5499.52f5d4e0.js +++ b/assets/js/fdba5499.04a48033.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[743],{1299:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>p,contentTitle:()=>u,default:()=>x,frontMatter:()=>c,metadata:()=>m,toc:()=>g});var a=s(4848),n=s(8453),r=s(1812);const o=JSON.parse('[{"sequence":1,"text":"1800 mg (1000 mg/m2) orally twice daily from days 1-14 of cycle","doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"calculated","display":"Calculated"}]},"doseQuantity":{"value":1800,"unit":"mg/m2","system":"http://unitsofmeasure.org","code":"mg/m2"}},{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"ordered"}]},"doseQuantity":{"value":1000,"unit":"mg","system":"http://unitsofmeasure.org","code":"mg"}}]}]');var i=s(4865),d=s(9365),l=s(8264);const c={description:"Request that uses both calculated and ordered dosage",title:"medrx003"},u=void 0,m={id:"examples/medicationrequest/medrx003",title:"medrx003",description:"Request that uses both calculated and ordered dosage",source:"@site/docs/examples/medicationrequest/medrx003.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx003",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx003",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx003.mdx",tags:[],version:"current",frontMatter:{description:"Request that uses both calculated and ordered dosage",title:"medrx003"},sidebar:"tutorialSidebar",previous:{title:"medrx002",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx002"},next:{title:"medrx004",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx004"}},p={},g=[];function h(e){const t={a:"a",admonition:"admonition",p:"p",...(0,n.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.admonition,{type:"info",children:(0,a.jsxs)(t.p,{children:["Source: ",(0,a.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequestexample3.html",children:"HL7"}),' - "Request that uses both calculated and ordered dosage"']})}),"\n",(0,a.jsxs)(i.A,{children:[(0,a.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,a.jsx)(l.A,{dosages:o,config:{}})}),(0,a.jsx)(d.A,{value:"json",label:"Dosage",children:(0,a.jsx)(r.default,{language:"json",children:JSON.stringify(o,null,2)})})]})]})}function x(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(h,{...e})}):h(e)}},8264:(e,t,s)=>{s.d(t,{A:()=>i});var a=s(6540),n=s(6300),r=s(1812),o=s(4848);function i(e){let{dosages:t,config:s,i18nConfig:i}=e;const[d,l]=(0,a.useState)(""),[c,u]=(0,a.useState)(s?.language||"en"),[m,p]=(0,a.useState)(null);(0,a.useEffect)((()=>{!async function(){const e=await n.A.build(s,i);p(e)}()}),[s]),(0,a.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);l(e)}}()}),[t,m]);return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{style:{display:"flex"},children:[(0,o.jsxs)("select",{value:c,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,o.jsx)("option",{value:"en",children:"English"}),(0,o.jsx)("option",{value:"fr",children:"French"}),(0,o.jsx)("option",{value:"nl",children:"Dutch"}),(0,o.jsx)("option",{value:"de",children:"German"})]}),(0,o.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(c);const e=m.fromMultipleDosageToText(t);l(e)}},children:"Confirm"})]}),(0,o.jsx)("div",{style:{marginTop:"10px"},children:(0,o.jsx)(r.default,{language:"markup",children:(g=d,g.replace(/"/g,'"').replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocumentation=self.webpackChunkdocumentation||[]).push([[743],{1299:(e,t,s)=>{s.r(t),s.d(t,{assets:()=>p,contentTitle:()=>u,default:()=>x,frontMatter:()=>c,metadata:()=>m,toc:()=>g});var a=s(4848),n=s(8453),r=s(1812);const o=JSON.parse('[{"sequence":1,"text":"1800 mg (1000 mg/m2) orally twice daily from days 1-14 of cycle","doseAndRate":[{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"calculated","display":"Calculated"}]},"doseQuantity":{"value":1800,"unit":"mg/m2","system":"http://unitsofmeasure.org","code":"mg/m2"}},{"type":{"coding":[{"system":"http://terminology.hl7.org/CodeSystem/dose-rate-type","code":"ordered","display":"ordered"}]},"doseQuantity":{"value":1000,"unit":"mg","system":"http://unitsofmeasure.org","code":"mg"}}]}]');var i=s(4865),d=s(9365),l=s(8264);const c={description:"Request that uses both calculated and ordered dosage",title:"medrx003"},u=void 0,m={id:"examples/medicationrequest/medrx003",title:"medrx003",description:"Request that uses both calculated and ordered dosage",source:"@site/docs/examples/medicationrequest/medrx003.mdx",sourceDirName:"examples/medicationrequest",slug:"/examples/medicationrequest/medrx003",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx003",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/examples/medicationrequest/medrx003.mdx",tags:[],version:"current",frontMatter:{description:"Request that uses both calculated and ordered dosage",title:"medrx003"},sidebar:"tutorialSidebar",previous:{title:"medrx002",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx002"},next:{title:"medrx004",permalink:"/fhir-dosage-utils/docs/examples/medicationrequest/medrx004"}},p={},g=[];function h(e){const t={a:"a",admonition:"admonition",p:"p",...(0,n.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(t.admonition,{type:"info",children:(0,a.jsxs)(t.p,{children:["Source: ",(0,a.jsx)(t.a,{href:"https://www.hl7.org/fhir/medicationrequestexample3.html",children:"HL7"}),' - "Request that uses both calculated and ordered dosage"']})}),"\n",(0,a.jsxs)(i.A,{children:[(0,a.jsx)(d.A,{value:"text",label:"Human readable text",default:!0,children:(0,a.jsx)(l.A,{dosages:o,config:{}})}),(0,a.jsx)(d.A,{value:"json",label:"Dosage",children:(0,a.jsx)(r.default,{language:"json",children:JSON.stringify(o,null,2)})})]})]})}function x(e={}){const{wrapper:t}={...(0,n.R)(),...e.components};return t?(0,a.jsx)(t,{...e,children:(0,a.jsx)(h,{...e})}):h(e)}},8264:(e,t,s)=>{s.d(t,{A:()=>i});var a=s(6540),n=s(6300),r=s(1812),o=s(4848);function i(e){let{dosages:t,config:s,i18nConfig:i}=e;const[d,l]=(0,a.useState)(""),[c,u]=(0,a.useState)(s?.language||"en"),[m,p]=(0,a.useState)(null);(0,a.useEffect)((()=>{!async function(){const e=await n.A.build(s,i);p(e)}()}),[s]),(0,a.useEffect)((()=>{!async function(){if(m){const e=m.fromMultipleDosageToText(t);l(e)}}()}),[t,m]);return(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{style:{display:"flex"},children:[(0,o.jsxs)("select",{value:c,onChange:e=>u(e.target.value),style:{marginRight:"10px"},children:[(0,o.jsx)("option",{value:"en",children:"English"}),(0,o.jsx)("option",{value:"fr",children:"French"}),(0,o.jsx)("option",{value:"nl",children:"Dutch"}),(0,o.jsx)("option",{value:"de",children:"German"})]}),(0,o.jsx)("button",{onClick:async()=>{if(m){await m.changeLanguage(c);const e=m.fromMultipleDosageToText(t);l(e)}},children:"Confirm"})]}),(0,o.jsx)("div",{style:{marginTop:"10px"},children:(0,o.jsx)(r.default,{language:"markup",children:(g=d,g.replace(/"/g,'"').replace(/&/g,"&").replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(t)})).replace(/&#x([0-9A-Fa-f]+);/g,(function(e,t){return String.fromCharCode(parseInt(t,16))})))})})]});var g}}}]); \ No newline at end of file diff --git a/assets/js/runtime~main.da0cea41.js b/assets/js/runtime~main.cbaefa37.js similarity index 52% rename from assets/js/runtime~main.da0cea41.js rename to assets/js/runtime~main.cbaefa37.js index ce66ee03..ab46c03d 100644 --- a/assets/js/runtime~main.da0cea41.js +++ b/assets/js/runtime~main.cbaefa37.js @@ -1 +1 @@ -(()=>{"use strict";var e,a,c,f,b,d={},t={};function r(e){var a=t[e];if(void 0!==a)return a.exports;var c=t[e]={exports:{}};return d[e].call(c.exports,c,c.exports,r),c.exports}r.m=d,r.amdO={},e=[],r.O=(a,c,f,b)=>{if(!c){var d=1/0;for(i=0;i=b)&&Object.keys(r.O).every((e=>r.O[e](c[o])))?c.splice(o--,1):(t=!1,b0&&e[i-1][2]>b;i--)e[i]=e[i-1];e[i]=[c,f,b]},r.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return r.d(a,{a:a}),a},c=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(e,f){if(1&f&&(e=this(e)),8&f)return e;if("object"==typeof e&&e){if(4&f&&e.__esModule)return e;if(16&f&&"function"==typeof e.then)return e}var b=Object.create(null);r.r(b);var d={};a=a||[null,c({}),c([]),c(c)];for(var t=2&f&&e;"object"==typeof t&&!~a.indexOf(t);t=c(t))Object.getOwnPropertyNames(t).forEach((a=>d[a]=()=>e[a]));return d.default=()=>e,r.d(b,d),b},r.d=(e,a)=>{for(var c in a)r.o(a,c)&&!r.o(e,c)&&Object.defineProperty(e,c,{enumerable:!0,get:a[c]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((a,c)=>(r.f[c](e,a),a)),[])),r.u=e=>"assets/js/"+({57:"4ed72121",85:"3d23bc21",397:"4d15c614",417:"7ebf62b0",513:"ad90b1c0",554:"1cae87f6",578:"139f9fbc",581:"933cb006",585:"2c4b321a",743:"fdba5499",779:"634f877e",947:"5d75ee92",962:"935f2afb",980:"9caecde7",1011:"ea313555",1085:"b3272642",1110:"c179f821",1146:"b30e43e1",1250:"87294416",1286:"6bccb6a0",1290:"533a8e17",1444:"7614ce18",1539:"01e1ca65",1616:"fa572d46",1659:"49044b90",1664:"b6b32736",1740:"162bd28d",1796:"20a65861",1932:"ece64983",2076:"common",2079:"01aca802",2122:"e8ce008f",2138:"1a4e3797",2188:"124c4f9d",2209:"ec99730f",2215:"8cbc1f65",2229:"36cdde70",2279:"6eeea2b6",2309:"3f237283",2453:"460a5c5b",2460:"03620de3",2485:"430bd102",2495:"c0086ef4",2683:"78f84b63",2711:"9e4087bc",2857:"4628893b",2896:"b21f49cb",2914:"118e00e5",3140:"c9387e11",3143:"b83c006f",3157:"ef54304a",3244:"c0f1940f",3249:"ccc49370",3253:"a5e5ec5a",3281:"aa8d6d0b",3301:"96e7b265",3361:"b52bbddc",3421:"ab10b176",3426:"6f133880",3462:"d0a7fa20",3534:"1d61667d",3585:"da14fb93",3663:"8926b418",3678:"ebb1249f",3709:"17baba0b",3733:"e3948197",3790:"1668a7c3",3809:"28886c38",3843:"667c56e4",3906:"74cb3b1c",3920:"d5205798",3970:"5c2c208f",4004:"41e66423",4048:"aa77b6a8",4052:"2b9b0bac",4056:"f58af7d8",4071:"bcc42c6c",4081:"201e0385",4088:"afe92c27",4093:"3a65aa90",4222:"97031957",4234:"f2d946fd",4294:"052ceecb",4386:"091b5925",4471:"1f927e7e",4574:"4f5b57b4",4583:"1df93b7f",4697:"1cd656ab",4726:"3903b0d4",4812:"883bfc27",4813:"6875c492",4892:"3216d4c8",4936:"06a006fb",5184:"265a61ea",5236:"ee929032",5251:"40c0f713",5276:"133d1207",5308:"c20bb7f9",5317:"2a331aeb",5411:"1b34e59a",5461:"55373fd9",5643:"72a427b3",5648:"774b774e",5772:"c578995c",5826:"4246bee9",5970:"91e5c259",6016:"c36217b7",6193:"20b5be5c",6499:"21119077",6547:"5c187a43",6554:"e9832d3c",6614:"cd12752c",6720:"f71da0e1",6734:"4faaf014",6745:"0931abdb",6751:"76aa043d",6969:"14eb3368",7003:"90795d4d",7032:"0530b1c5",7098:"a7bd4aaa",7157:"30320f60",7275:"a6743c64",7368:"7ff2ef1f",7472:"814f3328",7498:"04baef29",7643:"a6aa9e1f",7762:"254404d2",7806:"e388e5ed",7829:"915d2175",7956:"447f614c",8035:"38ae24f3",8147:"ce6de2dc",8154:"d9a0709a",8209:"01a85c17",8401:"17896441",8441:"14b7973a",8516:"829c17da",8581:"92f3c933",8637:"c6db0fe6",8678:"3fb26655",8937:"12564d99",8945:"04716c54",8952:"3766ff12",9048:"a94703ab",9059:"5f46c019",9218:"4eb59f15",9232:"6a4d8b82",9243:"4287e57f",9276:"3663b37e",9280:"f7adbe59",9301:"026611d2",9307:"d026f85a",9588:"79da1881",9603:"2e7d5b3b",9643:"bc0994c2",9646:"4e847481",9647:"5e95c892",9748:"1c1d0071",9812:"3c4bff03",9832:"4cbe19c8",9848:"8472a9bd"}[e]||e)+"."+{47:"c8c1f609",57:"9a72a8d0",85:"eae29f54",397:"001d4f63",404:"0369d1a2",416:"57dd8ed7",417:"9da044c5",513:"bdab94b2",554:"6ab6abc7",578:"0d839473",581:"a79dbb13",585:"e0b0dffd",743:"52f5d4e0",779:"e1e9fcf8",947:"00e3b5df",962:"802c108a",980:"e51a04c0",1011:"54300ea8",1085:"e08b3ba1",1092:"3cab19a8",1110:"11a781b4",1146:"ca945d29",1250:"e20288c2",1286:"09a31071",1290:"5d934a5f",1293:"6213e494",1444:"fee997e2",1465:"550149a6",1539:"41120ea2",1611:"f7599f36",1616:"960f8560",1659:"9d078def",1664:"12aa2489",1740:"1f2d64d4",1796:"a01d5a95",1932:"6fe88848",2031:"1380b3aa",2076:"d29b7bb6",2079:"00ca397b",2122:"51992a1e",2138:"7f91c4c8",2188:"2c984b00",2209:"6d1937d5",2215:"003155b1",2229:"35912c5d",2237:"d5903cb3",2279:"d6d7f4c1",2309:"7120cfd6",2335:"2e3627ea",2453:"12220cf3",2460:"30f6acce",2485:"4225414f",2495:"72cdf050",2683:"39b2af5e",2711:"48d17381",2857:"6251b86e",2896:"9e12b018",2914:"67d9b973",3140:"50fd3a5f",3143:"0ea782f0",3157:"1e2dbed9",3244:"763a11e4",3249:"1e5f502d",3253:"545468d6",3281:"f0aa3964",3301:"5a850e79",3361:"2966e35f",3421:"0f3319b5",3426:"d4f4c75f",3462:"7778fb49",3534:"2b6e692a",3585:"691aeed1",3663:"6a4df707",3678:"f394ca10",3709:"3d2ac1a2",3733:"c323cc8c",3790:"cc09ca6a",3809:"1589d2dc",3843:"f60e7c1d",3906:"28b09bb9",3920:"dd9dfda2",3970:"07810b1e",4004:"9855dac5",4048:"d613690d",4052:"69827de1",4056:"741d1f90",4071:"e3eca8bd",4081:"f93e38ed",4088:"7debc254",4093:"b0bac770",4222:"4f4e4f95",4234:"cb8acc75",4294:"cbf1c65e",4305:"fdc2d7d2",4386:"8e16ead6",4471:"cded6b75",4574:"e3d8e267",4583:"75452b45",4697:"5e013c43",4726:"c121ad70",4812:"f4af5691",4813:"31e5356a",4839:"c32276d1",4858:"472928ba",4892:"bb5edfd9",4936:"f0f16f3e",5184:"48f873f6",5236:"57c0c6ef",5251:"d3865322",5276:"6b5eed78",5308:"be43b768",5317:"fe824162",5411:"a8a14abd",5461:"1a968f99",5643:"fb4d1e9f",5648:"e313eb5a",5772:"61ef642b",5826:"70de8606",5970:"a75c3f61",6016:"cf235a26",6193:"48a2fc86",6492:"9f6a4ee1",6499:"2656966a",6547:"3440158f",6554:"930adc88",6614:"0310de61",6616:"a560ce3c",6689:"7d8e8912",6720:"22b12679",6734:"011e8c65",6745:"b37b733c",6751:"8e1516fb",6891:"f407d5b8",6969:"3caa234c",7003:"57acc7bb",7032:"6ecb9b9d",7098:"e7890ed9",7157:"0863173f",7275:"92c5310c",7368:"ecf2789b",7472:"2983cb96",7498:"aae3aa16",7643:"63f05628",7680:"37b73bdf",7748:"502340d4",7762:"b7bfc856",7806:"cb20a8cc",7829:"1ab31656",7956:"6f116a8a",8035:"a5591665",8147:"c16f4d89",8154:"e9b12c89",8209:"8233513f",8382:"70117343",8401:"dd8f31ed",8441:"6712e010",8516:"d89b4bbb",8581:"49e6dc98",8637:"26ccdf40",8678:"8bd48b17",8842:"812707d4",8913:"29c3d400",8937:"d5638e32",8945:"907ba12d",8952:"fec53e3c",9048:"677f1a3b",9059:"5ee38f4e",9218:"3a9d224f",9232:"c06e8aef",9243:"b2508ef5",9276:"220c41d3",9280:"25ccf043",9301:"8c44342f",9307:"cf00f2b3",9333:"35bc15e6",9462:"5f49b399",9588:"eed4eca3",9603:"13808d4a",9643:"eed7a378",9646:"ac176639",9647:"a3162a88",9748:"5e58e581",9761:"c9b30e0e",9812:"5a6da103",9832:"aa704a26",9848:"14c49b9b"}[e]+".js",r.miniCssF=e=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),f={},b="documentation:",r.l=(e,a,c,d)=>{if(f[e])f[e].push(a);else{var t,o;if(void 0!==c)for(var n=document.getElementsByTagName("script"),i=0;i{t.onerror=t.onload=null,clearTimeout(s);var b=f[e];if(delete f[e],t.parentNode&&t.parentNode.removeChild(t),b&&b.forEach((e=>e(c))),a)return a(c)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=l.bind(null,t.onerror),t.onload=l.bind(null,t.onload),o&&document.head.appendChild(t)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.p="/fhir-dosage-utils/",r.gca=function(e){return e={17896441:"8401",21119077:"6499",87294416:"1250",97031957:"4222","4ed72121":"57","3d23bc21":"85","4d15c614":"397","7ebf62b0":"417",ad90b1c0:"513","1cae87f6":"554","139f9fbc":"578","933cb006":"581","2c4b321a":"585",fdba5499:"743","634f877e":"779","5d75ee92":"947","935f2afb":"962","9caecde7":"980",ea313555:"1011",b3272642:"1085",c179f821:"1110",b30e43e1:"1146","6bccb6a0":"1286","533a8e17":"1290","7614ce18":"1444","01e1ca65":"1539",fa572d46:"1616","49044b90":"1659",b6b32736:"1664","162bd28d":"1740","20a65861":"1796",ece64983:"1932",common:"2076","01aca802":"2079",e8ce008f:"2122","1a4e3797":"2138","124c4f9d":"2188",ec99730f:"2209","8cbc1f65":"2215","36cdde70":"2229","6eeea2b6":"2279","3f237283":"2309","460a5c5b":"2453","03620de3":"2460","430bd102":"2485",c0086ef4:"2495","78f84b63":"2683","9e4087bc":"2711","4628893b":"2857",b21f49cb:"2896","118e00e5":"2914",c9387e11:"3140",b83c006f:"3143",ef54304a:"3157",c0f1940f:"3244",ccc49370:"3249",a5e5ec5a:"3253",aa8d6d0b:"3281","96e7b265":"3301",b52bbddc:"3361",ab10b176:"3421","6f133880":"3426",d0a7fa20:"3462","1d61667d":"3534",da14fb93:"3585","8926b418":"3663",ebb1249f:"3678","17baba0b":"3709",e3948197:"3733","1668a7c3":"3790","28886c38":"3809","667c56e4":"3843","74cb3b1c":"3906",d5205798:"3920","5c2c208f":"3970","41e66423":"4004",aa77b6a8:"4048","2b9b0bac":"4052",f58af7d8:"4056",bcc42c6c:"4071","201e0385":"4081",afe92c27:"4088","3a65aa90":"4093",f2d946fd:"4234","052ceecb":"4294","091b5925":"4386","1f927e7e":"4471","4f5b57b4":"4574","1df93b7f":"4583","1cd656ab":"4697","3903b0d4":"4726","883bfc27":"4812","6875c492":"4813","3216d4c8":"4892","06a006fb":"4936","265a61ea":"5184",ee929032:"5236","40c0f713":"5251","133d1207":"5276",c20bb7f9:"5308","2a331aeb":"5317","1b34e59a":"5411","55373fd9":"5461","72a427b3":"5643","774b774e":"5648",c578995c:"5772","4246bee9":"5826","91e5c259":"5970",c36217b7:"6016","20b5be5c":"6193","5c187a43":"6547",e9832d3c:"6554",cd12752c:"6614",f71da0e1:"6720","4faaf014":"6734","0931abdb":"6745","76aa043d":"6751","14eb3368":"6969","90795d4d":"7003","0530b1c5":"7032",a7bd4aaa:"7098","30320f60":"7157",a6743c64:"7275","7ff2ef1f":"7368","814f3328":"7472","04baef29":"7498",a6aa9e1f:"7643","254404d2":"7762",e388e5ed:"7806","915d2175":"7829","447f614c":"7956","38ae24f3":"8035",ce6de2dc:"8147",d9a0709a:"8154","01a85c17":"8209","14b7973a":"8441","829c17da":"8516","92f3c933":"8581",c6db0fe6:"8637","3fb26655":"8678","12564d99":"8937","04716c54":"8945","3766ff12":"8952",a94703ab:"9048","5f46c019":"9059","4eb59f15":"9218","6a4d8b82":"9232","4287e57f":"9243","3663b37e":"9276",f7adbe59:"9280","026611d2":"9301",d026f85a:"9307","79da1881":"9588","2e7d5b3b":"9603",bc0994c2:"9643","4e847481":"9646","5e95c892":"9647","1c1d0071":"9748","3c4bff03":"9812","4cbe19c8":"9832","8472a9bd":"9848"}[e]||e,r.p+r.u(e)},(()=>{var e={5354:0,1869:0};r.f.j=(a,c)=>{var f=r.o(e,a)?e[a]:void 0;if(0!==f)if(f)c.push(f[2]);else if(/^(1869|5354)$/.test(a))e[a]=0;else{var b=new Promise(((c,b)=>f=e[a]=[c,b]));c.push(f[2]=b);var d=r.p+r.u(a),t=new Error;r.l(d,(c=>{if(r.o(e,a)&&(0!==(f=e[a])&&(e[a]=void 0),f)){var b=c&&("load"===c.type?"missing":c.type),d=c&&c.target&&c.target.src;t.message="Loading chunk "+a+" failed.\n("+b+": "+d+")",t.name="ChunkLoadError",t.type=b,t.request=d,f[1](t)}}),"chunk-"+a,a)}},r.O.j=a=>0===e[a];var a=(a,c)=>{var f,b,d=c[0],t=c[1],o=c[2],n=0;if(d.some((a=>0!==e[a]))){for(f in t)r.o(t,f)&&(r.m[f]=t[f]);if(o)var i=o(r)}for(a&&a(c);n{"use strict";var e,c,a,b,f,d={},t={};function r(e){var c=t[e];if(void 0!==c)return c.exports;var a=t[e]={exports:{}};return d[e].call(a.exports,a,a.exports,r),a.exports}r.m=d,r.amdO={},e=[],r.O=(c,a,b,f)=>{if(!a){var d=1/0;for(i=0;i=f)&&Object.keys(r.O).every((e=>r.O[e](a[o])))?a.splice(o--,1):(t=!1,f0&&e[i-1][2]>f;i--)e[i]=e[i-1];e[i]=[a,b,f]},r.n=e=>{var c=e&&e.__esModule?()=>e.default:()=>e;return r.d(c,{a:c}),c},a=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,r.t=function(e,b){if(1&b&&(e=this(e)),8&b)return e;if("object"==typeof e&&e){if(4&b&&e.__esModule)return e;if(16&b&&"function"==typeof e.then)return e}var f=Object.create(null);r.r(f);var d={};c=c||[null,a({}),a([]),a(a)];for(var t=2&b&&e;"object"==typeof t&&!~c.indexOf(t);t=a(t))Object.getOwnPropertyNames(t).forEach((c=>d[c]=()=>e[c]));return d.default=()=>e,r.d(f,d),f},r.d=(e,c)=>{for(var a in c)r.o(c,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:c[a]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((c,a)=>(r.f[a](e,c),c)),[])),r.u=e=>"assets/js/"+({57:"4ed72121",85:"3d23bc21",397:"4d15c614",417:"7ebf62b0",513:"ad90b1c0",554:"1cae87f6",578:"139f9fbc",581:"933cb006",585:"2c4b321a",743:"fdba5499",779:"634f877e",947:"5d75ee92",962:"935f2afb",980:"9caecde7",1011:"ea313555",1085:"b3272642",1110:"c179f821",1146:"b30e43e1",1250:"87294416",1286:"6bccb6a0",1290:"533a8e17",1444:"7614ce18",1539:"01e1ca65",1616:"fa572d46",1659:"49044b90",1664:"b6b32736",1740:"162bd28d",1796:"20a65861",1932:"ece64983",2076:"common",2079:"01aca802",2122:"e8ce008f",2138:"1a4e3797",2188:"124c4f9d",2209:"ec99730f",2215:"8cbc1f65",2229:"36cdde70",2279:"6eeea2b6",2309:"3f237283",2453:"460a5c5b",2460:"03620de3",2485:"430bd102",2495:"c0086ef4",2683:"78f84b63",2711:"9e4087bc",2857:"4628893b",2896:"b21f49cb",2914:"118e00e5",3140:"c9387e11",3143:"b83c006f",3157:"ef54304a",3244:"c0f1940f",3249:"ccc49370",3253:"a5e5ec5a",3281:"aa8d6d0b",3301:"96e7b265",3361:"b52bbddc",3421:"ab10b176",3426:"6f133880",3462:"d0a7fa20",3534:"1d61667d",3585:"da14fb93",3663:"8926b418",3678:"ebb1249f",3709:"17baba0b",3733:"e3948197",3790:"1668a7c3",3809:"28886c38",3843:"667c56e4",3906:"74cb3b1c",3920:"d5205798",3970:"5c2c208f",4004:"41e66423",4048:"aa77b6a8",4052:"2b9b0bac",4056:"f58af7d8",4071:"bcc42c6c",4081:"201e0385",4088:"afe92c27",4093:"3a65aa90",4222:"97031957",4234:"f2d946fd",4294:"052ceecb",4386:"091b5925",4471:"1f927e7e",4574:"4f5b57b4",4583:"1df93b7f",4697:"1cd656ab",4726:"3903b0d4",4812:"883bfc27",4813:"6875c492",4892:"3216d4c8",4936:"06a006fb",5184:"265a61ea",5236:"ee929032",5251:"40c0f713",5276:"133d1207",5308:"c20bb7f9",5317:"2a331aeb",5411:"1b34e59a",5461:"55373fd9",5643:"72a427b3",5648:"774b774e",5772:"c578995c",5826:"4246bee9",5970:"91e5c259",6016:"c36217b7",6193:"20b5be5c",6499:"21119077",6547:"5c187a43",6554:"e9832d3c",6614:"cd12752c",6720:"f71da0e1",6734:"4faaf014",6745:"0931abdb",6751:"76aa043d",6969:"14eb3368",7003:"90795d4d",7032:"0530b1c5",7098:"a7bd4aaa",7157:"30320f60",7275:"a6743c64",7368:"7ff2ef1f",7472:"814f3328",7498:"04baef29",7643:"a6aa9e1f",7762:"254404d2",7806:"e388e5ed",7829:"915d2175",7956:"447f614c",8035:"38ae24f3",8147:"ce6de2dc",8154:"d9a0709a",8209:"01a85c17",8401:"17896441",8441:"14b7973a",8516:"829c17da",8581:"92f3c933",8637:"c6db0fe6",8678:"3fb26655",8937:"12564d99",8945:"04716c54",8952:"3766ff12",9048:"a94703ab",9059:"5f46c019",9218:"4eb59f15",9232:"6a4d8b82",9243:"4287e57f",9276:"3663b37e",9280:"f7adbe59",9301:"026611d2",9307:"d026f85a",9588:"79da1881",9603:"2e7d5b3b",9643:"bc0994c2",9646:"4e847481",9647:"5e95c892",9748:"1c1d0071",9812:"3c4bff03",9832:"4cbe19c8",9848:"8472a9bd"}[e]||e)+"."+{47:"c8c1f609",57:"9a72a8d0",85:"cbbd6cfe",397:"001d4f63",404:"0369d1a2",416:"57dd8ed7",417:"7e347abb",513:"02edc0aa",554:"6ab6abc7",578:"4a034eaa",581:"a79dbb13",585:"1d03661d",743:"04a48033",779:"e1e9fcf8",947:"00e3b5df",962:"802c108a",980:"adb12808",1011:"54300ea8",1085:"e08b3ba1",1092:"3cab19a8",1110:"11a781b4",1146:"8fce9f6d",1250:"0fab7d88",1286:"52a341b3",1290:"33dcc0e5",1293:"6213e494",1444:"bbccdc18",1465:"550149a6",1539:"41120ea2",1611:"f7599f36",1616:"47a744aa",1659:"e632b4a0",1664:"12aa2489",1740:"314f1e02",1796:"029a7013",1932:"24cf7765",2031:"1380b3aa",2076:"d29b7bb6",2079:"364fab76",2122:"3a3dd00d",2138:"7f91c4c8",2188:"8b5d565f",2209:"6d1937d5",2215:"003155b1",2229:"d459cc80",2237:"d5903cb3",2279:"d6d7f4c1",2309:"b0d75f27",2335:"2e3627ea",2453:"db2440a6",2460:"43dbedfc",2485:"349d61ad",2495:"abe0f44b",2683:"5f55de26",2711:"48d17381",2857:"ad92aae2",2896:"9e12b018",2914:"d889de1c",3140:"1ca48fa9",3143:"0ea782f0",3157:"6406d117",3244:"763a11e4",3249:"1e5f502d",3253:"c8173fe1",3281:"f0aa3964",3301:"04a6fb3c",3361:"b6e96b31",3421:"ed3b23ad",3426:"d4f4c75f",3462:"fddbf773",3534:"2b6e692a",3585:"691aeed1",3663:"3f205a38",3678:"264b61ee",3709:"36fcb8a1",3733:"c323cc8c",3790:"4c35ddec",3809:"1589d2dc",3843:"f60e7c1d",3906:"28b09bb9",3920:"11d315dc",3970:"ae2501fe",4004:"9855dac5",4048:"e8e746b6",4052:"69827de1",4056:"40bdc39c",4071:"e3eca8bd",4081:"e822c840",4088:"9b6caeba",4093:"b0bac770",4222:"56b4fd9a",4234:"cb8acc75",4294:"cbf1c65e",4305:"fdc2d7d2",4386:"8e16ead6",4471:"8701a39d",4574:"e3d8e267",4583:"75452b45",4697:"edcda32f",4726:"f1ba4aa7",4812:"f74706d0",4813:"31e5356a",4839:"c32276d1",4858:"472928ba",4892:"22bde2dd",4936:"55381c76",5184:"33c4d54b",5236:"d8ea40d1",5251:"1d2e2102",5276:"3fb61e5f",5308:"be43b768",5317:"f367845e",5411:"a8a14abd",5461:"0cc2202b",5643:"fb4d1e9f",5648:"9bb4f3ea",5772:"61ef642b",5826:"70de8606",5970:"a75c3f61",6016:"42d23c96",6193:"dae37993",6492:"9f6a4ee1",6499:"4fecbcb9",6547:"3440158f",6554:"2f66f130",6614:"2ec836b5",6616:"a560ce3c",6689:"7d8e8912",6720:"22b12679",6734:"3cbd4c01",6745:"b37b733c",6751:"c49031a9",6891:"f407d5b8",6969:"3caa234c",7003:"57acc7bb",7032:"8225acdd",7098:"e7890ed9",7157:"0863173f",7275:"92c5310c",7368:"ecf2789b",7472:"2983cb96",7498:"aae3aa16",7643:"63f05628",7680:"37b73bdf",7748:"502340d4",7762:"82233377",7806:"cb20a8cc",7829:"2cf05589",7956:"6f116a8a",8035:"1ca83ecb",8147:"c16f4d89",8154:"314b502f",8209:"8233513f",8382:"70117343",8401:"dd8f31ed",8441:"6712e010",8516:"12366a01",8581:"49e6dc98",8637:"26ccdf40",8678:"9107aadf",8842:"812707d4",8913:"29c3d400",8937:"0bf99708",8945:"005bf238",8952:"e8141891",9048:"677f1a3b",9059:"a9856a08",9218:"df15d408",9232:"8950d250",9243:"b2508ef5",9276:"220c41d3",9280:"815b7325",9301:"8ca1b3af",9307:"cf00f2b3",9333:"35bc15e6",9462:"5f49b399",9588:"eed4eca3",9603:"13808d4a",9643:"6c229ee8",9646:"969c2240",9647:"a3162a88",9748:"ff9e7b0c",9761:"c9b30e0e",9812:"5a6da103",9832:"8af0ac94",9848:"14c49b9b"}[e]+".js",r.miniCssF=e=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,c)=>Object.prototype.hasOwnProperty.call(e,c),b={},f="documentation:",r.l=(e,c,a,d)=>{if(b[e])b[e].push(c);else{var t,o;if(void 0!==a)for(var n=document.getElementsByTagName("script"),i=0;i{t.onerror=t.onload=null,clearTimeout(s);var f=b[e];if(delete b[e],t.parentNode&&t.parentNode.removeChild(t),f&&f.forEach((e=>e(a))),c)return c(a)},s=setTimeout(l.bind(null,void 0,{type:"timeout",target:t}),12e4);t.onerror=l.bind(null,t.onerror),t.onload=l.bind(null,t.onload),o&&document.head.appendChild(t)}},r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.p="/fhir-dosage-utils/",r.gca=function(e){return e={17896441:"8401",21119077:"6499",87294416:"1250",97031957:"4222","4ed72121":"57","3d23bc21":"85","4d15c614":"397","7ebf62b0":"417",ad90b1c0:"513","1cae87f6":"554","139f9fbc":"578","933cb006":"581","2c4b321a":"585",fdba5499:"743","634f877e":"779","5d75ee92":"947","935f2afb":"962","9caecde7":"980",ea313555:"1011",b3272642:"1085",c179f821:"1110",b30e43e1:"1146","6bccb6a0":"1286","533a8e17":"1290","7614ce18":"1444","01e1ca65":"1539",fa572d46:"1616","49044b90":"1659",b6b32736:"1664","162bd28d":"1740","20a65861":"1796",ece64983:"1932",common:"2076","01aca802":"2079",e8ce008f:"2122","1a4e3797":"2138","124c4f9d":"2188",ec99730f:"2209","8cbc1f65":"2215","36cdde70":"2229","6eeea2b6":"2279","3f237283":"2309","460a5c5b":"2453","03620de3":"2460","430bd102":"2485",c0086ef4:"2495","78f84b63":"2683","9e4087bc":"2711","4628893b":"2857",b21f49cb:"2896","118e00e5":"2914",c9387e11:"3140",b83c006f:"3143",ef54304a:"3157",c0f1940f:"3244",ccc49370:"3249",a5e5ec5a:"3253",aa8d6d0b:"3281","96e7b265":"3301",b52bbddc:"3361",ab10b176:"3421","6f133880":"3426",d0a7fa20:"3462","1d61667d":"3534",da14fb93:"3585","8926b418":"3663",ebb1249f:"3678","17baba0b":"3709",e3948197:"3733","1668a7c3":"3790","28886c38":"3809","667c56e4":"3843","74cb3b1c":"3906",d5205798:"3920","5c2c208f":"3970","41e66423":"4004",aa77b6a8:"4048","2b9b0bac":"4052",f58af7d8:"4056",bcc42c6c:"4071","201e0385":"4081",afe92c27:"4088","3a65aa90":"4093",f2d946fd:"4234","052ceecb":"4294","091b5925":"4386","1f927e7e":"4471","4f5b57b4":"4574","1df93b7f":"4583","1cd656ab":"4697","3903b0d4":"4726","883bfc27":"4812","6875c492":"4813","3216d4c8":"4892","06a006fb":"4936","265a61ea":"5184",ee929032:"5236","40c0f713":"5251","133d1207":"5276",c20bb7f9:"5308","2a331aeb":"5317","1b34e59a":"5411","55373fd9":"5461","72a427b3":"5643","774b774e":"5648",c578995c:"5772","4246bee9":"5826","91e5c259":"5970",c36217b7:"6016","20b5be5c":"6193","5c187a43":"6547",e9832d3c:"6554",cd12752c:"6614",f71da0e1:"6720","4faaf014":"6734","0931abdb":"6745","76aa043d":"6751","14eb3368":"6969","90795d4d":"7003","0530b1c5":"7032",a7bd4aaa:"7098","30320f60":"7157",a6743c64:"7275","7ff2ef1f":"7368","814f3328":"7472","04baef29":"7498",a6aa9e1f:"7643","254404d2":"7762",e388e5ed:"7806","915d2175":"7829","447f614c":"7956","38ae24f3":"8035",ce6de2dc:"8147",d9a0709a:"8154","01a85c17":"8209","14b7973a":"8441","829c17da":"8516","92f3c933":"8581",c6db0fe6:"8637","3fb26655":"8678","12564d99":"8937","04716c54":"8945","3766ff12":"8952",a94703ab:"9048","5f46c019":"9059","4eb59f15":"9218","6a4d8b82":"9232","4287e57f":"9243","3663b37e":"9276",f7adbe59:"9280","026611d2":"9301",d026f85a:"9307","79da1881":"9588","2e7d5b3b":"9603",bc0994c2:"9643","4e847481":"9646","5e95c892":"9647","1c1d0071":"9748","3c4bff03":"9812","4cbe19c8":"9832","8472a9bd":"9848"}[e]||e,r.p+r.u(e)},(()=>{var e={5354:0,1869:0};r.f.j=(c,a)=>{var b=r.o(e,c)?e[c]:void 0;if(0!==b)if(b)a.push(b[2]);else if(/^(1869|5354)$/.test(c))e[c]=0;else{var f=new Promise(((a,f)=>b=e[c]=[a,f]));a.push(b[2]=f);var d=r.p+r.u(c),t=new Error;r.l(d,(a=>{if(r.o(e,c)&&(0!==(b=e[c])&&(e[c]=void 0),b)){var f=a&&("load"===a.type?"missing":a.type),d=a&&a.target&&a.target.src;t.message="Loading chunk "+c+" failed.\n("+f+": "+d+")",t.name="ChunkLoadError",t.type=f,t.request=d,b[1](t)}}),"chunk-"+c,c)}},r.O.j=c=>0===e[c];var c=(c,a)=>{var b,f,d=a[0],t=a[1],o=a[2],n=0;if(d.some((c=>0!==e[c]))){for(b in t)r.o(t,b)&&(r.m[b]=t[b]);if(o)var i=o(r)}for(c&&c(a);n