[4.49.0](https://github.com/metriport/metriport/compare/v4.48.0...v4.49.0) (2023-08-13)
Bug Fixes
* **api:** add api url with doc contribution route ([fadd910](https://github.com/metriport/metriport/commit/fadd910d8a422508a0794ea67286c6ad148c5c6b)), closes [metriport/metriport#672](https://github.com/metriport/metriport/issues/672)
* **api:** add aws credentials ([b330c31](https://github.com/metriport/metriport/commit/b330c31be5968b56a3badfd17fd9d62588072e25)), closes [metriport/metriport#672](https://github.com/metriport/metriport/issues/672)
* **api:** add minor change to update pr ([8f919ea](https://github.com/metriport/metriport/commit/8f919ea4f1c7976bcf887d8a4c61db10da190a74)), closes [metriport/metriport#377](https://github.com/metriport/metriport/issues/377)
* **api:** checkpoint ([1211c0a](https://github.com/metriport/metriport/commit/1211c0a4de27f85ef9cf90d8a4492652b3e3a62d)), closes [metriport/metriport#672](https://github.com/metriport/metriport/issues/672)
* **api:** convert doc reference from json to object ([b6cbe34](https://github.com/metriport/metriport/commit/b6cbe34f649a5a6918aaba2ba0b779a7fe08b93b)), closes [metriport/metriport#672](https://github.com/metriport/metriport/issues/672)
* **api:** finish upload doc endpoint by uploading to s3 and fhir ([7b056e4](https://github.com/metriport/metriport/commit/7b056e45e54c0449c8eef5cbc594c3ed6b0819d2)), closes [metriport/metriport#672](https://github.com/metriport/metriport/issues/672)
* **api:** first cut at tz support for dapi for google fit ([5d44479](https://github.com/metriport/metriport/commit/5d44479eae3e181b530c38d0fa1f9769bad58da9)), closes [metriport/metriport#733](https://github.com/metriport/metriport/issues/733)
* **api:** first cut at tz support for dapi for google fit ([1ab19f5](https://github.com/metriport/metriport/commit/1ab19f5901d3faa8e6babbd1d835026accc9b0ad)), closes [metriport/metriport#733](https://github.com/metriport/metriport/issues/733)
* **api:** first cut at tz support for dapi for google fit ([c964694](https://github.com/metriport/metriport/commit/c964694163b67eed7555d4af586a5af1cedc7d2e)), closes [metriport/metriport#733](https://github.com/metriport/metriport/issues/733)
* **api:** first cut at tz support for dapi for google fit ([93ccc09](https://github.com/metriport/metriport/commit/93ccc0911e297448430a379c6a296fdad24be1cb)), closes [metriport/metriport#733](https://github.com/metriport/metriport/issues/733)
* **api:** first cut at tz support for dapi for google fit ([4c33370](https://github.com/metriport/metriport/commit/4c33370079c133867c8737b62d93e8d3df045ffb)), closes [metriport/metriport#733](https://github.com/metriport/metriport/issues/733)
* **api:** first cut at tz support for dapi for google fit ([ca56807](https://github.com/metriport/metriport/commit/ca56807b60d9acb263dec818d02821601a2b024c)), closes [metriport/metriport#733](https://github.com/metriport/metriport/issues/733)
* **api:** fix create consolidated test ([3e2373e](https://github.com/metriport/metriport/commit/3e2373e5a8bd0799a635e47240da8d04cc95999f)), closes [metriport/metriport#377](https://github.com/metriport/metriport/issues/377)
* **api:** made tweaks to docs and test files remove ajv initialization from function ([3e5b45a](https://github.com/metriport/metriport/commit/3e5b45a7c45e11859e3842403c5f3746174d736b)), closes [metriport/metriport#377](https://github.com/metriport/metriport/issues/377)
* **api:** merge changes from develop ([fbcb24c](https://github.com/metriport/metriport/commit/fbcb24c27cdd5f687bdc33b556ca56d281acd2b9)), closes [metriport/metriport#377](https://github.com/metriport/metriport/issues/377)
* **api:** merge conflict ([85aefa0](https://github.com/metriport/metriport/commit/85aefa00193ddc269a542c745725fc3e0ccfa45e)), closes [metriport/metriport-internal#377](https://github.com/metriport/metriport-internal/issues/377)
* **api:** remove code system from url ([91f9fe9](https://github.com/metriport/metriport/commit/91f9fe9b58b135b526e076ac62498d5961590d12)), closes [metriport/metriport#377](https://github.com/metriport/metriport/issues/377)
* **api:** remove doc contribution url env ([8fc3932](https://github.com/metriport/metriport/commit/8fc3932c4033f457fda3399d26ceb02069e4aad6)), closes [metriport/metriport#672](https://github.com/metriport/metriport/issues/672)
* **api:** remove permissions ([ae04959](https://github.com/metriport/metriport/commit/ae0495996c7e780e1e28fb9cd2703a55ea53c628)), closes [metriport/metriport#672](https://github.com/metriport/metriport/issues/672)
* **api:** remove the patient doc query seed script ([9e553ae](https://github.com/metriport/metriport/commit/9e553ae22ed6e230797d7b1ccc77e95f0d8d803c)), closes [metriport/metriport#672](https://github.com/metriport/metriport/issues/672)
* **api:** remove unwanted fhir data from response ([b98bb4c](https://github.com/metriport/metriport/commit/b98bb4c7a0f2370d0ccfc952fa6de6fa5b911e1d)), closes [metriport/metriport#377](https://github.com/metriport/metriport/issues/377)
* **api:** revert react native example to defauly ([e0e24b2](https://github.com/metriport/metriport/commit/e0e24b27032babc4266fd9cf47850df2c7dae0ce)), closes [metriport/metriport#672](https://github.com/metriport/metriport/issues/672)
* **api:** set onof back to original array after compile ([b0d1395](https://github.com/metriport/metriport/commit/b0d1395704751e8497293339c095eedc5d05a3e2)), closes [metriport/metriport#377](https://github.com/metriport/metriport/issues/377)
* **api:** stringify the doc ref content ([39ef9aa](https://github.com/metriport/metriport/commit/39ef9aadc654fab1842b11c381d64e12e596ad2b)), closes [metriport/metriport#672](https://github.com/metriport/metriport/issues/672)
* **api:** uncomment code ([ecd8732](https://github.com/metriport/metriport/commit/ecd87327443244e030a1a2123dda1a25f7e02e59)), closes [metriport/metriport#377](https://github.com/metriport/metriport/issues/377)
* **api:** update admin endpoints location and create a metriportcontent function for reusability ([2296c4c](https://github.com/metriport/metriport/commit/2296c4c0cb0ab8296b4dea3ab465630020421741)), closes [metriport/metriport#377](https://github.com/metriport/metriport/issues/377)
* **api:** update docs and make custom url for operation outcome ([13faa4a](https://github.com/metriport/metriport/commit/13faa4a76da8c9e96fde09da70cf047da9acdcc2)), closes [metriport/metriport#377](https://github.com/metriport/metriport/issues/377)
* **api:** update fitbit heart rate schema to nullish ([8e55893](https://github.com/metriport/metriport/commit/8e55893c3a08cfcf4e8c69400ec43437d55ae4fc)), closes [metriport/metriport-internal#932](https://github.com/metriport/metriport-internal/issues/932)
* **api:** update from comments ([f5ec511](https://github.com/metriport/metriport/commit/f5ec511cfa3c887ba36d8627e149fe9ad69fd441)), closes [metriport/metriport-internal#377](https://github.com/metriport/metriport-internal/issues/377)
* **api:** update heartratezone type to match schema ([0555811](https://github.com/metriport/metriport/commit/0555811929063d46bf4a2011fe859509e7b41ad0)), closes [metriport/metriport-internal#932](https://github.com/metriport/metriport-internal/issues/932)
* **api:** update test with correct url ([c33b0fc](https://github.com/metriport/metriport/commit/c33b0fc022c30c1842b56c65c7ee118cb49352aa)), closes [metriport/metriport#377](https://github.com/metriport/metriport/issues/377)
* **api:** update the createmetriportdocreference to include siffix content ([6a653a9](https://github.com/metriport/metriport/commit/6a653a99cd0f2607da6b8e59f60af353befba134)), closes [metriport/metriport#672](https://github.com/metriport/metriport/issues/672)
* **api:** validate the json bundle being sent - limit the amount of resources sent - update the docs ([e48bb39](https://github.com/metriport/metriport/commit/e48bb39637a843fd67a432c30aeeb512fe7cc44e)), closes [metriport/metriport#377](https://github.com/metriport/metriport/issues/377)
* **dapi:** added active seconds to activity details ([d8db611](https://github.com/metriport/metriport/commit/d8db611052b5dc6359e995b1a32099ff82e32fad)), closes [metriport/metriport#710](https://github.com/metriport/metriport/issues/710)
* **dapi:** added more details to each activity on google fit and fixed avg speed calculation ([6c8a26b](https://github.com/metriport/metriport/commit/6c8a26b1d651a46828c0a3d46e14d9f5d42ab202)), closes [metriport/metriport#710](https://github.com/metriport/metriport/issues/710)
* **dapi:** added TSDocs to new functions and renamed some vars ([131b965](https://github.com/metriport/metriport/commit/131b965c2fc04edd9492fbd59f8f2500c9cbe66f)), closes [metriport/metriport#735](https://github.com/metriport/metriport/issues/735)
* **dapi:** changed some of the data structures and types. co-authored by Rafael ([7a2d092](https://github.com/metriport/metriport/commit/7a2d092e734a1f10127556e15793d5ee751b2f78)), closes [metriport/metriport#710](https://github.com/metriport/metriport/issues/710)
* **dapi:** fixed a typo in a variable ([564d759](https://github.com/metriport/metriport/commit/564d759562ec9b7fc9e98c79ef8ab277e36c2a95)), closes [metriport/metriport#735](https://github.com/metriport/metriport/issues/735)
* **dapi:** fixed the issue of multiple metriport users connecting the same fitbit account ([33b4cbf](https://github.com/metriport/metriport/commit/33b4cbfa55b5682f95ddf22ee577810eda2258eb)), closes [metriport/metriport#735](https://github.com/metriport/metriport/issues/735)
* **dapi:** fixed the issue with sending incorrect payload for user provider-disconnected message ([de2f659](https://github.com/metriport/metriport/commit/de2f659f76e36d4309c79c2ff6ec43d3349037e0)), closes [metriport/metriport#735](https://github.com/metriport/metriport/issues/735)
* **dapi:** made some var name changes based on PR comments ([f90be8c](https://github.com/metriport/metriport/commit/f90be8cecdce3b1bd68ec7ef1afa285a010a7041)), closes [metriport/metriport#735](https://github.com/metriport/metriport/issues/735)
* **dapi:** refactored the code to lessen code duplication. co-authored by Rafael ([0af7c48](https://github.com/metriport/metriport/commit/0af7c48255256b10a2095fda3c2337ad41981b79)), closes [metriport/metriport#710](https://github.com/metriport/metriport/issues/710)
* **dapi:** revoke another user's token and re-subscribe to wh notifications ([d3e1fe8](https://github.com/metriport/metriport/commit/d3e1fe80afad3ce3114134c15dee52abd7fcf6bc)), closes [metriport/metriport#735](https://github.com/metriport/metriport/issues/735)
* **dapi:** rewrote the logic for calculating active seconds and fixed issues based on pr comments ([207f7dc](https://github.com/metriport/metriport/commit/207f7dc70876989bae5c17ba81fd121fd10506b8)), closes [metriport/metriport#710](https://github.com/metriport/metriport/issues/710)
* **dash:** checkpoint added some of rafs suggetions ([a693355](https://github.com/metriport/metriport/commit/a693355c94c93a2158675bd338cf7c7ccad15042)), closes [metriport/metriport-internal#886](https://github.com/metriport/metriport-internal/issues/886)
* encode callback url sent to Garmin ([08b7c77](https://github.com/metriport/metriport/commit/08b7c77fac25eb09072d3ca9cc7dce384f5333c3)), closes [metriport/metriport#763](https://github.com/metriport/metriport/issues/763)
* **packages:** add extra to sentry ([6f45a18](https://github.com/metriport/metriport/commit/6f45a1856991908a22cdce687b9fb4c7bbe8dba3)), closes [metriport/metriport-internal#799](https://github.com/metriport/metriport-internal/issues/799)
* **packages:** checkpoint waiting on fold ([0ca0669](https://github.com/metriport/metriport/commit/0ca06693067f3854cef20eeab1092d8cdb804e4a)), closes [metriport/metriport#672](https://github.com/metriport/metriport/issues/672)
* patient OID to UUID migration updates facility IDs ([f610bfa](https://github.com/metriport/metriport/commit/f610bfaa51c6780c9881053a067d8fca6d6949c7)), closes [metriport/metriport-internal#704](https://github.com/metriport/metriport-internal/issues/704)
* use org OID with CommonWell ([988d05b](https://github.com/metriport/metriport/commit/988d05b5249e27450a6868d4b699bb660f86124b)), closes [metriport/metriport-internal#704](https://github.com/metriport/metriport-internal/issues/704)
* **widget:** description meta tag updated ([c74a260](https://github.com/metriport/metriport/commit/c74a260a7aa0620284fea460b24f28e0e1939633)), closes [metriport/metriport#881](https://github.com/metriport/metriport/issues/881)
* **widget:** description meta tag updated ([20df037](https://github.com/metriport/metriport/commit/20df0379e5c5bf9a53e6c89565ee20071bb82735)), closes [metriport/metriport#881](https://github.com/metriport/metriport/issues/881)
Features
* add patch /duplicated to dedup persons CW ([c3c5553](https://github.com/metriport/metriport/commit/c3c55539ddba00626fbea5e0b218ba02a9576d48)), closes [metriport/metriport#704](https://github.com/metriport/metriport/issues/704)
* **api:** accept collection ([c135361](https://github.com/metriport/metriport/commit/c135361b33f43ede7de51b21f58de33aedffc745)), closes [metriport/metriport-internal#377](https://github.com/metriport/metriport-internal/issues/377)
* **api:** add cw lambda to handle doc retrieval ([29a1ac5](https://github.com/metriport/metriport/commit/29a1ac54aac4a0c19991691ecb9d613c2347be4b)), closes [metriport/metriport-internal#672](https://github.com/metriport/metriport-internal/issues/672)
* **api:** add env to createlambda ([2ab9a08](https://github.com/metriport/metriport/commit/2ab9a08bf6f6dcc77fd13d866772d35e9f83bf38)), closes [metriport/metriport-internal#672](https://github.com/metriport/metriport-internal/issues/672)
* **api:** add env to createlambda ([6142633](https://github.com/metriport/metriport/commit/6142633f92cdda3f8aceec46aaf7113446bb60be)), closes [metriport/metriport-internal#672](https://github.com/metriport/metriport-internal/issues/672)
* **api:** add fhir bundle post ([11c1a15](https://github.com/metriport/metriport/commit/11c1a1541d489af8f5d811f8affd8ce75fcf73df)), closes [metriport/metriport-internal#377](https://github.com/metriport/metriport-internal/issues/377)
* **api:** checkpoint dima review ([4656690](https://github.com/metriport/metriport/commit/46566906277ecc39216f044b3827ff4b7005d58c)), closes [metriport/metriport-internal#672](https://github.com/metriport/metriport-internal/issues/672)
* **api:** checkpoint updating lambda to point to staging bucket ([2fb73f5](https://github.com/metriport/metriport/commit/2fb73f555bdf24ece40b6dfc3ce9bb05efda4ada)), closes [metriport/metriport-internal#672](https://github.com/metriport/metriport-internal/issues/672)
* **api:** commit before raf pr merge ([4614a3c](https://github.com/metriport/metriport/commit/4614a3cc69a5d9a633376081e38618bc682eb847)), closes [metriport/metriport-internal#672](https://github.com/metriport/metriport-internal/issues/672)
* **api:** finish script ([3679cfa](https://github.com/metriport/metriport/commit/3679cfac63dd83c38c8e45d124d884e42ac221b3)), closes [metriport/metriport-internal#672](https://github.com/metriport/metriport-internal/issues/672)
* **api:** medical document env required ([70636cd](https://github.com/metriport/metriport/commit/70636cdf6ee0fac4295d62a06e12b0722b1800fe)), closes [metriport/metriport-internal#672](https://github.com/metriport/metriport-internal/issues/672)
* **api:** move api gateway above medical bucket ([951c2ec](https://github.com/metriport/metriport/commit/951c2ec5bbefdf0df6769968c2e08ef4a0e85e50)), closes [metriport/metriport-internal#672](https://github.com/metriport/metriport-internal/issues/672)
* **api:** remove comments ([7cce722](https://github.com/metriport/metriport/commit/7cce722a688af431d013a5600df4e0ba861b73cb)), closes [metriport/metriport-internal#672](https://github.com/metriport/metriport-internal/issues/672)
* **api:** remove files ([bd2bd0a](https://github.com/metriport/metriport/commit/bd2bd0a7d064f5bd942651b52cadf4dae8bb6ab6)), closes [metriport/metriport-internal#672](https://github.com/metriport/metriport-internal/issues/672)
* **api:** remove log ([75294bb](https://github.com/metriport/metriport/commit/75294bbdf6657261a2af842de110ddccd610b3c6)), closes [metriport/metriport-internal#377](https://github.com/metriport/metriport-internal/issues/377)
* **api:** update add document function name ([7087700](https://github.com/metriport/metriport/commit/70877008d9afc36f84fa867a337f40e7cabfbf7b)), closes [metriport/metriport-internal#672](https://github.com/metriport/metriport-internal/issues/672)
* **dapi:** added an error throw and comments for another issue follow up ([f2e778b](https://github.com/metriport/metriport/commit/f2e778b7bfb60d4df03f5690d7faa5dd57096608)), closes [metriport/metriport#735](https://github.com/metriport/metriport/issues/735)
* **dapi:** added an internal user route to create fitbit wh subscriptions for all connected users ([01fc8fc](https://github.com/metriport/metriport/commit/01fc8fc0ae826ca9b51f88aed62ce09d5d5ff8e6)), closes [metriport/metriport#747](https://github.com/metriport/metriport/issues/747)
* **dapi:** added error throwing and error tracking for the internal user route ([d5dd37e](https://github.com/metriport/metriport/commit/d5dd37e2456d82bedc78242eadb98307c7de549e)), closes [metriport/metriport#747](https://github.com/metriport/metriport/issues/747)
* **dapi:** changed error handling and improved typing ([8acab27](https://github.com/metriport/metriport/commit/8acab274c9d7a47be88c89ec87f4889da48f1f30)), closes [metriport/metriport#735](https://github.com/metriport/metriport/issues/735)
* **dapi:** custom error to report to internal route ([268c8ff](https://github.com/metriport/metriport/commit/268c8ff2e192e4442b2060777e12fe72e7f2318a)), closes [metriport/metriport#735](https://github.com/metriport/metriport/issues/735)
* **dapi:** fitbit get subscription issue fixed; error array fixed for internal route ([c5e0687](https://github.com/metriport/metriport/commit/c5e0687cad5b463061465eb75c77c2200039fe04)), closes [metriport/metriport#735](https://github.com/metriport/metriport/issues/735)
* **dapi:** fixed data handling, sub creation and token revokation for diff cx & same fitbit user ([b10c275](https://github.com/metriport/metriport/commit/b10c27545b0365d0b8d2c0fe6f5ac7d91b60c8ef)), closes [refs.metriport/metriport#735](https://github.com/refs.metriport/metriport/issues/735)
* **dapi:** improved error handling and included separate reporting for internal route ([ca98f69](https://github.com/metriport/metriport/commit/ca98f69f4e4d8b5b8e229e124f284d345686958c)), closes [metriport/metriport#735](https://github.com/metriport/metriport/issues/735)
* **dapi:** improved error handling and included separate reporting for internal route ([4f57d24](https://github.com/metriport/metriport/commit/4f57d2431f0260b476f8061504f1afed43b171cf)), closes [metriport/metriport#735](https://github.com/metriport/metriport/issues/735)
* **dapi:** restructured wh sub deletion and renamed the internal flag on postAuth ([195c8d1](https://github.com/metriport/metriport/commit/195c8d1d5f4e59dc909f688c2283bd29167bf52b)), closes [metriport/metriport#735](https://github.com/metriport/metriport/issues/735)
* **docs:** added documentation for redirectUrl and failRedirectUrl query params for the widget ([d3696fa](https://github.com/metriport/metriport/commit/d3696fa57548e0d032d40d3c9c6536160b8d10c6)), closes [metriport/metriport#711](https://github.com/metriport/metriport/issues/711)
* **package:** checkpoint ([9e7c7cc](https://github.com/metriport/metriport/commit/9e7c7cc631e5a734dd5afaa2868643e7deb24553)), closes [metriport/metriport#672](https://github.com/metriport/metriport/issues/672)
* **widget:** added success and failure redirect urls to widget localStorag for provider connections ([b8a5675](https://github.com/metriport/metriport/commit/b8a5675a31d3eacfb88870b26c4bf6ce4dca4832)), closes [metriport/metriport#711](https://github.com/metriport/metriport/issues/711)
* **widget:** encoded the example urls in the docs ([716ae2a](https://github.com/metriport/metriport/commit/716ae2ab01c00e49c60c80ba1b8dea36ba517d60)), closes [metriport/metriport#711](https://github.com/metriport/metriport/issues/711)
* **widget:** included uri decoding and a tip for the devs in the docs ([1b1223a](https://github.com/metriport/metriport/commit/1b1223ae6da146ef7557177830b35c14d1c6dbb6)), closes [metriport/metriport#711](https://github.com/metriport/metriport/issues/711)
* **widget:** made the sentry error more descriptive by adding custom url to extra content ([c9f7708](https://github.com/metriport/metriport/commit/c9f770800aa47c9b0c3c14afc52325d5baa71a74)), closes [metriport/metriport#711](https://github.com/metriport/metriport/issues/711)
v4.49.0-develop.1
[4.49.0-develop.1](https://github.com/metriport/metriport/compare/v4.48.0...v4.49.0-develop.1) (2023-08-12)
Bug Fixes
* **api:** add api url with doc contribution route ([fadd910](https://github.com/metriport/metriport/commit/fadd910d8a422508a0794ea67286c6ad148c5c6b)), closes [metriport/metriport#672](https://github.com/metriport/metriport/issues/672)
* **api:** add aws credentials ([b330c31](https://github.com/metriport/metriport/commit/b330c31be5968b56a3badfd17fd9d62588072e25)), closes [metriport/metriport#672](https://github.com/metriport/metriport/issues/672)
* **api:** add minor change to update pr ([8f919ea](https://github.com/metriport/metriport/commit/8f919ea4f1c7976bcf887d8a4c61db10da190a74)), closes [metriport/metriport#377](https://github.com/metriport/metriport/issues/377)
* **api:** checkpoint ([1211c0a](https://github.com/metriport/metriport/commit/1211c0a4de27f85ef9cf90d8a4492652b3e3a62d)), closes [metriport/metriport#672](https://github.com/metriport/metriport/issues/672)
* **api:** convert doc reference from json to object ([b6cbe34](https://github.com/metriport/metriport/commit/b6cbe34f649a5a6918aaba2ba0b779a7fe08b93b)), closes [metriport/metriport#672](https://github.com/metriport/metriport/issues/672)
* **api:** finish upload doc endpoint by uploading to s3 and fhir ([7b056e4](https://github.com/metriport/metriport/commit/7b056e45e54c0449c8eef5cbc594c3ed6b0819d2)), closes [metriport/metriport#672](https://github.com/metriport/metriport/issues/672)
* **api:** first cut at tz support for dapi for google fit ([5d44479](https://github.com/metriport/metriport/commit/5d44479eae3e181b530c38d0fa1f9769bad58da9)), closes [metriport/metriport#733](https://github.com/metriport/metriport/issues/733)
* **api:** first cut at tz support for dapi for google fit ([1ab19f5](https://github.com/metriport/metriport/commit/1ab19f5901d3faa8e6babbd1d835026accc9b0ad)), closes [metriport/metriport#733](https://github.com/metriport/metriport/issues/733)
* **api:** first cut at tz support for dapi for google fit ([c964694](https://github.com/metriport/metriport/commit/c964694163b67eed7555d4af586a5af1cedc7d2e)), closes [metriport/metriport#733](https://github.com/metriport/metriport/issues/733)
* **api:** first cut at tz support for dapi for google fit ([93ccc09](https://github.com/metriport/metriport/commit/93ccc0911e297448430a379c6a296fdad24be1cb)), closes [metriport/metriport#733](https://github.com/metriport/metriport/issues/733)
* **api:** first cut at tz support for dapi for google fit ([4c33370](https://github.com/metriport/metriport/commit/4c33370079c133867c8737b62d93e8d3df045ffb)), closes [metriport/metriport#733](https://github.com/metriport/metriport/issues/733)
* **api:** first cut at tz support for dapi for google fit ([ca56807](https://github.com/metriport/metriport/commit/ca56807b60d9acb263dec818d02821601a2b024c)), closes [metriport/metriport#733](https://github.com/metriport/metriport/issues/733)
* **api:** fix create consolidated test ([3e2373e](https://github.com/metriport/metriport/commit/3e2373e5a8bd0799a635e47240da8d04cc95999f)), closes [metriport/metriport#377](https://github.com/metriport/metriport/issues/377)
* **api:** made tweaks to docs and test files remove ajv initialization from function ([3e5b45a](https://github.com/metriport/metriport/commit/3e5b45a7c45e11859e3842403c5f3746174d736b)), closes [metriport/metriport#377](https://github.com/metriport/metriport/issues/377)
* **api:** merge changes from develop ([fbcb24c](https://github.com/metriport/metriport/commit/fbcb24c27cdd5f687bdc33b556ca56d281acd2b9)), closes [metriport/metriport#377](https://github.com/metriport/metriport/issues/377)
* **api:** merge conflict ([85aefa0](https://github.com/metriport/metriport/commit/85aefa00193ddc269a542c745725fc3e0ccfa45e)), closes [metriport/metriport-internal#377](https://github.com/metriport/metriport-internal/issues/377)
* **api:** remove code system from url ([91f9fe9](https://github.com/metriport/metriport/commit/91f9fe9b58b135b526e076ac62498d5961590d12)), closes [metriport/metriport#377](https://github.com/metriport/metriport/issues/377)
* **api:** remove doc contribution url env ([8fc3932](https://github.com/metriport/metriport/commit/8fc3932c4033f457fda3399d26ceb02069e4aad6)), closes [metriport/metriport#672](https://github.com/metriport/metriport/issues/672)
* **api:** remove permissions ([ae04959](https://github.com/metriport/metriport/commit/ae0495996c7e780e1e28fb9cd2703a55ea53c628)), closes [metriport/metriport#672](https://github.com/metriport/metriport/issues/672)
* **api:** remove the patient doc query seed script ([9e553ae](https://github.com/metriport/metriport/commit/9e553ae22ed6e230797d7b1ccc77e95f0d8d803c)), closes [metriport/metriport#672](https://github.com/metriport/metriport/issues/672)
* **api:** remove unwanted fhir data from response ([b98bb4c](https://github.com/metriport/metriport/commit/b98bb4c7a0f2370d0ccfc952fa6de6fa5b911e1d)), closes [metriport/metriport#377](https://github.com/metriport/metriport/issues/377)
* **api:** revert react native example to defauly ([e0e24b2](https://github.com/metriport/metriport/commit/e0e24b27032babc4266fd9cf47850df2c7dae0ce)), closes [metriport/metriport#672](https://github.com/metriport/metriport/issues/672)
* **api:** set onof back to original array after compile ([b0d1395](https://github.com/metriport/metriport/commit/b0d1395704751e8497293339c095eedc5d05a3e2)), closes [metriport/metriport#377](https://github.com/metriport/metriport/issues/377)
* **api:** stringify the doc ref content ([39ef9aa](https://github.com/metriport/metriport/commit/39ef9aadc654fab1842b11c381d64e12e596ad2b)), closes [metriport/metriport#672](https://github.com/metriport/metriport/issues/672)
* **api:** uncomment code ([ecd8732](https://github.com/metriport/metriport/commit/ecd87327443244e030a1a2123dda1a25f7e02e59)), closes [metriport/metriport#377](https://github.com/metriport/metriport/issues/377)
* **api:** update admin endpoints location and create a metriportcontent function for reusability ([2296c4c](https://github.com/metriport/metriport/commit/2296c4c0cb0ab8296b4dea3ab465630020421741)), closes [metriport/metriport#377](https://github.com/metriport/metriport/issues/377)
* **api:** update docs and make custom url for operation outcome ([13faa4a](https://github.com/metriport/metriport/commit/13faa4a76da8c9e96fde09da70cf047da9acdcc2)), closes [metriport/metriport#377](https://github.com/metriport/metriport/issues/377)
* **api:** update fitbit heart rate schema to nullish ([8e55893](https://github.com/metriport/metriport/commit/8e55893c3a08cfcf4e8c69400ec43437d55ae4fc)), closes [metriport/metriport-internal#932](https://github.com/metriport/metriport-internal/issues/932)
* **api:** update from comments ([f5ec511](https://github.com/metriport/metriport/commit/f5ec511cfa3c887ba36d8627e149fe9ad69fd441)), closes [metriport/metriport-internal#377](https://github.com/metriport/metriport-internal/issues/377)
* **api:** update heartratezone type to match schema ([0555811](https://github.com/metriport/metriport/commit/0555811929063d46bf4a2011fe859509e7b41ad0)), closes [metriport/metriport-internal#932](https://github.com/metriport/metriport-internal/issues/932)
* **api:** update test with correct url ([c33b0fc](https://github.com/metriport/metriport/commit/c33b0fc022c30c1842b56c65c7ee118cb49352aa)), closes [metriport/metriport#377](https://github.com/metriport/metriport/issues/377)
* **api:** update the createmetriportdocreference to include siffix content ([6a653a9](https://github.com/metriport/metriport/commit/6a653a99cd0f2607da6b8e59f60af353befba134)), closes [metriport/metriport#672](https://github.com/metriport/metriport/issues/672)
* **api:** validate the json bundle being sent - limit the amount of resources sent - update the docs ([e48bb39](https://github.com/metriport/metriport/commit/e48bb39637a843fd67a432c30aeeb512fe7cc44e)), closes [metriport/metriport#377](https://github.com/metriport/metriport/issues/377)
* **dapi:** added active seconds to activity details ([d8db611](https://github.com/metriport/metriport/commit/d8db611052b5dc6359e995b1a32099ff82e32fad)), closes [metriport/metriport#710](https://github.com/metriport/metriport/issues/710)
* **dapi:** added more details to each activity on google fit and fixed avg speed calculation ([6c8a26b](https://github.com/metriport/metriport/commit/6c8a26b1d651a46828c0a3d46e14d9f5d42ab202)), closes [metriport/metriport#710](https://github.com/metriport/metriport/issues/710)
* **dapi:** added TSDocs to new functions and renamed some vars ([131b965](https://github.com/metriport/metriport/commit/131b965c2fc04edd9492fbd59f8f2500c9cbe66f)), closes [metriport/metriport#735](https://github.com/metriport/metriport/issues/735)
* **dapi:** changed some of the data structures and types. co-authored by Rafael ([7a2d092](https://github.com/metriport/metriport/commit/7a2d092e734a1f10127556e15793d5ee751b2f78)), closes [metriport/metriport#710](https://github.com/metriport/metriport/issues/710)
* **dapi:** fixed a typo in a variable ([564d759](https://github.com/metriport/metriport/commit/564d759562ec9b7fc9e98c79ef8ab277e36c2a95)), closes [metriport/metriport#735](https://github.com/metriport/metriport/issues/735)
* **dapi:** fixed the issue of multiple metriport users connecting the same fitbit account ([33b4cbf](https://github.com/metriport/metriport/commit/33b4cbfa55b5682f95ddf22ee577810eda2258eb)), closes [metriport/metriport#735](https://github.com/metriport/metriport/issues/735)
* **dapi:** fixed the issue with sending incorrect payload for user provider-disconnected message ([de2f659](https://github.com/metriport/metriport/commit/de2f659f76e36d4309c79c2ff6ec43d3349037e0)), closes [metriport/metriport#735](https://github.com/metriport/metriport/issues/735)
* **dapi:** made some var name changes based on PR comments ([f90be8c](https://github.com/metriport/metriport/commit/f90be8cecdce3b1bd68ec7ef1afa285a010a7041)), closes [metriport/metriport#735](https://github.com/metriport/metriport/issues/735)
* **dapi:** refactored the code to lessen code duplication. co-authored by Rafael ([0af7c48](https://github.com/metriport/metriport/commit/0af7c48255256b10a2095fda3c2337ad41981b79)), closes [metriport/metriport#710](https://github.com/metriport/metriport/issues/710)
* **dapi:** revoke another user's token and re-subscribe to wh notifications ([d3e1fe8](https://github.com/metriport/metriport/commit/d3e1fe80afad3ce3114134c15dee52abd7fcf6bc)), closes [metriport/metriport#735](https://github.com/metriport/metriport/issues/735)
* **dapi:** rewrote the logic for calculating active seconds and fixed issues based on pr comments ([207f7dc](https://github.com/metriport/metriport/commit/207f7dc70876989bae5c17ba81fd121fd10506b8)), closes [metriport/metriport#710](https://github.com/metriport/metriport/issues/710)
* **dash:** checkpoint added some of rafs suggetions ([a693355](https://github.com/metriport/metriport/commit/a693355c94c93a2158675bd338cf7c7ccad15042)), closes [metriport/metriport-internal#886](https://github.com/metriport/metriport-internal/issues/886)
* encode callback url sent to Garmin ([08b7c77](https://github.com/metriport/metriport/commit/08b7c77fac25eb09072d3ca9cc7dce384f5333c3)), closes [metriport/metriport#763](https://github.com/metriport/metriport/issues/763)
* **packages:** add extra to sentry ([6f45a18](https://github.com/metriport/metriport/commit/6f45a1856991908a22cdce687b9fb4c7bbe8dba3)), closes [metriport/metriport-internal#799](https://github.com/metriport/metriport-internal/issues/799)
* **packages:** checkpoint waiting on fold ([0ca0669](https://github.com/metriport/metriport/commit/0ca06693067f3854cef20eeab1092d8cdb804e4a)), closes [metriport/metriport#672](https://github.com/metriport/metriport/issues/672)
* patient OID to UUID migration updates facility IDs ([f610bfa](https://github.com/metriport/metriport/commit/f610bfaa51c6780c9881053a067d8fca6d6949c7)), closes [metriport/metriport-internal#704](https://github.com/metriport/metriport-internal/issues/704)
* use org OID with CommonWell ([988d05b](https://github.com/metriport/metriport/commit/988d05b5249e27450a6868d4b699bb660f86124b)), closes [metriport/metriport-internal#704](https://github.com/metriport/metriport-internal/issues/704)
* **widget:** description meta tag updated ([c74a260](https://github.com/metriport/metriport/commit/c74a260a7aa0620284fea460b24f28e0e1939633)), closes [metriport/metriport#881](https://github.com/metriport/metriport/issues/881)
* **widget:** description meta tag updated ([20df037](https://github.com/metriport/metriport/commit/20df0379e5c5bf9a53e6c89565ee20071bb82735)), closes [metriport/metriport#881](https://github.com/metriport/metriport/issues/881)
Features
* add patch /duplicated to dedup persons CW ([c3c5553](https://github.com/metriport/metriport/commit/c3c55539ddba00626fbea5e0b218ba02a9576d48)), closes [metriport/metriport#704](https://github.com/metriport/metriport/issues/704)
* **api:** accept collection ([c135361](https://github.com/metriport/metriport/commit/c135361b33f43ede7de51b21f58de33aedffc745)), closes [metriport/metriport-internal#377](https://github.com/metriport/metriport-internal/issues/377)
* **api:** add cw lambda to handle doc retrieval ([29a1ac5](https://github.com/metriport/metriport/commit/29a1ac54aac4a0c19991691ecb9d613c2347be4b)), closes [metriport/metriport-internal#672](https://github.com/metriport/metriport-internal/issues/672)
* **api:** add env to createlambda ([2ab9a08](https://github.com/metriport/metriport/commit/2ab9a08bf6f6dcc77fd13d866772d35e9f83bf38)), closes [metriport/metriport-internal#672](https://github.com/metriport/metriport-internal/issues/672)
* **api:** add env to createlambda ([6142633](https://github.com/metriport/metriport/commit/6142633f92cdda3f8aceec46aaf7113446bb60be)), closes [metriport/metriport-internal#672](https://github.com/metriport/metriport-internal/issues/672)
* **api:** add fhir bundle post ([11c1a15](https://github.com/metriport/metriport/commit/11c1a1541d489af8f5d811f8affd8ce75fcf73df)), closes [metriport/metriport-internal#377](https://github.com/metriport/metriport-internal/issues/377)
* **api:** checkpoint dima review ([4656690](https://github.com/metriport/metriport/commit/46566906277ecc39216f044b3827ff4b7005d58c)), closes [metriport/metriport-internal#672](https://github.com/metriport/metriport-internal/issues/672)
* **api:** checkpoint updating lambda to point to staging bucket ([2fb73f5](https://github.com/metriport/metriport/commit/2fb73f555bdf24ece40b6dfc3ce9bb05efda4ada)), closes [metriport/metriport-internal#672](https://github.com/metriport/metriport-internal/issues/672)
* **api:** commit before raf pr merge ([4614a3c](https://github.com/metriport/metriport/commit/4614a3cc69a5d9a633376081e38618bc682eb847)), closes [metriport/metriport-internal#672](https://github.com/metriport/metriport-internal/issues/672)
* **api:** finish script ([3679cfa](https://github.com/metriport/metriport/commit/3679cfac63dd83c38c8e45d124d884e42ac221b3)), closes [metriport/metriport-internal#672](https://github.com/metriport/metriport-internal/issues/672)
* **api:** medical document env required ([70636cd](https://github.com/metriport/metriport/commit/70636cdf6ee0fac4295d62a06e12b0722b1800fe)), closes [metriport/metriport-internal#672](https://github.com/metriport/metriport-internal/issues/672)
* **api:** move api gateway above medical bucket ([951c2ec](https://github.com/metriport/metriport/commit/951c2ec5bbefdf0df6769968c2e08ef4a0e85e50)), closes [metriport/metriport-internal#672](https://github.com/metriport/metriport-internal/issues/672)
* **api:** remove comments ([7cce722](https://github.com/metriport/metriport/commit/7cce722a688af431d013a5600df4e0ba861b73cb)), closes [metriport/metriport-internal#672](https://github.com/metriport/metriport-internal/issues/672)
* **api:** remove files ([bd2bd0a](https://github.com/metriport/metriport/commit/bd2bd0a7d064f5bd942651b52cadf4dae8bb6ab6)), closes [metriport/metriport-internal#672](https://github.com/metriport/metriport-internal/issues/672)
* **api:** remove log ([75294bb](https://github.com/metriport/metriport/commit/75294bbdf6657261a2af842de110ddccd610b3c6)), closes [metriport/metriport-internal#377](https://github.com/metriport/metriport-internal/issues/377)
* **api:** update add document function name ([7087700](https://github.com/metriport/metriport/commit/70877008d9afc36f84fa867a337f40e7cabfbf7b)), closes [metriport/metriport-internal#672](https://github.com/metriport/metriport-internal/issues/672)
* **dapi:** added an error throw and comments for another issue follow up ([f2e778b](https://github.com/metriport/metriport/commit/f2e778b7bfb60d4df03f5690d7faa5dd57096608)), closes [metriport/metriport#735](https://github.com/metriport/metriport/issues/735)
* **dapi:** added an internal user route to create fitbit wh subscriptions for all connected users ([01fc8fc](https://github.com/metriport/metriport/commit/01fc8fc0ae826ca9b51f88aed62ce09d5d5ff8e6)), closes [metriport/metriport#747](https://github.com/metriport/metriport/issues/747)
* **dapi:** added error throwing and error tracking for the internal user route ([d5dd37e](https://github.com/metriport/metriport/commit/d5dd37e2456d82bedc78242eadb98307c7de549e)), closes [metriport/metriport#747](https://github.com/metriport/metriport/issues/747)
* **dapi:** changed error handling and improved typing ([8acab27](https://github.com/metriport/metriport/commit/8acab274c9d7a47be88c89ec87f4889da48f1f30)), closes [metriport/metriport#735](https://github.com/metriport/metriport/issues/735)
* **dapi:** custom error to report to internal route ([268c8ff](https://github.com/metriport/metriport/commit/268c8ff2e192e4442b2060777e12fe72e7f2318a)), closes [metriport/metriport#735](https://github.com/metriport/metriport/issues/735)
* **dapi:** fitbit get subscription issue fixed; error array fixed for internal route ([c5e0687](https://github.com/metriport/metriport/commit/c5e0687cad5b463061465eb75c77c2200039fe04)), closes [metriport/metriport#735](https://github.com/metriport/metriport/issues/735)
* **dapi:** fixed data handling, sub creation and token revokation for diff cx & same fitbit user ([b10c275](https://github.com/metriport/metriport/commit/b10c27545b0365d0b8d2c0fe6f5ac7d91b60c8ef)), closes [refs.metriport/metriport#735](https://github.com/refs.metriport/metriport/issues/735)
* **dapi:** improved error handling and included separate reporting for internal route ([ca98f69](https://github.com/metriport/metriport/commit/ca98f69f4e4d8b5b8e229e124f284d345686958c)), closes [metriport/metriport#735](https://github.com/metriport/metriport/issues/735)
* **dapi:** improved error handling and included separate reporting for internal route ([4f57d24](https://github.com/metriport/metriport/commit/4f57d2431f0260b476f8061504f1afed43b171cf)), closes [metriport/metriport#735](https://github.com/metriport/metriport/issues/735)
* **dapi:** restructured wh sub deletion and renamed the internal flag on postAuth ([195c8d1](https://github.com/metriport/metriport/commit/195c8d1d5f4e59dc909f688c2283bd29167bf52b)), closes [metriport/metriport#735](https://github.com/metriport/metriport/issues/735)
* **docs:** added documentation for redirectUrl and failRedirectUrl query params for the widget ([d3696fa](https://github.com/metriport/metriport/commit/d3696fa57548e0d032d40d3c9c6536160b8d10c6)), closes [metriport/metriport#711](https://github.com/metriport/metriport/issues/711)
* **package:** checkpoint ([9e7c7cc](https://github.com/metriport/metriport/commit/9e7c7cc631e5a734dd5afaa2868643e7deb24553)), closes [metriport/metriport#672](https://github.com/metriport/metriport/issues/672)
* **widget:** added success and failure redirect urls to widget localStorag for provider connections ([b8a5675](https://github.com/metriport/metriport/commit/b8a5675a31d3eacfb88870b26c4bf6ce4dca4832)), closes [metriport/metriport#711](https://github.com/metriport/metriport/issues/711)
* **widget:** encoded the example urls in the docs ([716ae2a](https://github.com/metriport/metriport/commit/716ae2ab01c00e49c60c80ba1b8dea36ba517d60)), closes [metriport/metriport#711](https://github.com/metriport/metriport/issues/711)
* **widget:** included uri decoding and a tip for the devs in the docs ([1b1223a](https://github.com/metriport/metriport/commit/1b1223ae6da146ef7557177830b35c14d1c6dbb6)), closes [metriport/metriport#711](https://github.com/metriport/metriport/issues/711)
* **widget:** made the sentry error more descriptive by adding custom url to extra content ([c9f7708](https://github.com/metriport/metriport/commit/c9f770800aa47c9b0c3c14afc52325d5baa71a74)), closes [metriport/metriport#711](https://github.com/metriport/metriport/issues/711)