Skip to content

Commit

Permalink
Remove metriport sdk integration
Browse files Browse the repository at this point in the history
  • Loading branch information
m0rl committed Aug 20, 2024
1 parent 5e836cd commit 1422d60
Show file tree
Hide file tree
Showing 12 changed files with 1 addition and 205 deletions.
4 changes: 0 additions & 4 deletions ios/FHIRmHealth/AppDelegate.mm
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,10 @@
#import <ReactNativeNavigation/ReactNativeNavigation.h>
#import <RNNotifications.h>

#import "MetriportConfiguration.h"

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[MetriportConfiguration checkBackgroundUpdates];

self.moduleName = @"FHIRmHealth";
// You can add your custom initial props in the dictionary below.
// They will be passed down to the ViewController used by React Native.
Expand Down
10 changes: 0 additions & 10 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,6 @@ PODS:
- hermes-engine/Pre-built (0.71.7)
- HMSegmentedControl (1.5.6)
- libevent (2.1.12)
- metriport-react-native (1.1.1):
- MetriportSDK
- React-Core
- MetriportSDK (1.0.28)
- OpenSSL-Universal (1.1.1100)
- RCT-Folly (2021.07.22.00):
- boost
Expand Down Expand Up @@ -477,7 +473,6 @@ DEPENDENCIES:
- glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
- hermes-engine (from `../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec`)
- libevent (~> 2.1.12)
- "metriport-react-native (from `../node_modules/@metriport/react-native-sdk`)"
- OpenSSL-Universal (= 1.1.1100)
- RCT-Folly (from `../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec`)
- RCTRequired (from `../node_modules/react-native/Libraries/RCTRequired`)
Expand Down Expand Up @@ -531,7 +526,6 @@ SPEC REPOS:
- fmt
- HMSegmentedControl
- libevent
- MetriportSDK
- OpenSSL-Universal
- Sentry
- SentryPrivate
Expand All @@ -551,8 +545,6 @@ EXTERNAL SOURCES:
:podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec"
hermes-engine:
:podspec: "../node_modules/react-native/sdks/hermes-engine/hermes-engine.podspec"
metriport-react-native:
:path: "../node_modules/@metriport/react-native-sdk"
RCT-Folly:
:podspec: "../node_modules/react-native/third-party-podspecs/RCT-Folly.podspec"
RCTRequired:
Expand Down Expand Up @@ -642,8 +634,6 @@ SPEC CHECKSUMS:
hermes-engine: 4438d2b8bf8bebaba1b1ac0451160bab59e491f8
HMSegmentedControl: 34c1f54d822d8308e7b24f5d901ec674dfa31352
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
metriport-react-native: 2910b5dac653fb32ae30f538c691d3861f9fe8aa
MetriportSDK: 2cbf59a74c7e282420358eeb6130ff0df13f47bb
OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c
RCT-Folly: 424b8c9a7a0b9ab2886ffe9c3b041ef628fd4fb1
RCTRequired: 467cd79889cbcfd008d0ff7c697f73765d4578c3
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"@fortawesome/free-solid-svg-icons": "^6.3.0",
"@fortawesome/react-native-fontawesome": "^0.3.0",
"@invertase/react-native-apple-authentication": "^2.2.2",
"@metriport/react-native-sdk": "^1.1.1",
"@sentry/react-native": "^5.4.0",
"fhir-react": "https://github.com/beda-software/fhir-react.git",
"jwt-decode": "^3.1.2",
Expand Down
3 changes: 0 additions & 3 deletions src/config/local.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
export const DATASTREAM_BASE_URL = 'http://localhost:8082';
export const DATASTREAM_API_URL = `${DATASTREAM_BASE_URL}/api/v1`;
export const DATASTREAM_METRIPORT_URL = `${DATASTREAM_BASE_URL}/metriport`;
export const FHIR_API_URL = 'http://localhost:8080';
export const SENTRY_DSN = undefined;
export const METRIPORT_CLIENT_KEY = undefined;
export const METRIPORT_IDENTIFIER_SYSTEM_URL = 'https://api.sandbox.metriport.com';
3 changes: 0 additions & 3 deletions src/config/staging.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
export const DATASTREAM_BASE_URL = 'https://ingest.emr.beda.software';
export const DATASTREAM_API_URL = `${DATASTREAM_BASE_URL}/api/v1`;
export const DATASTREAM_METRIPORT_URL = `${DATASTREAM_BASE_URL}/metriport`;
export const FHIR_API_URL = 'https://aidbox.emr.beda.software';
export const SENTRY_DSN = 'https://[email protected]/4505090618294272';
export const METRIPORT_CLIENT_KEY = 'ODhVZ0JWcXlmakJYMDZqZWNwNHdYOmY5Y2RhYzA2LWIxMzItNGNmNC05MzIwLTAzMmE1MzVmZmY5MQ';
export const METRIPORT_IDENTIFIER_SYSTEM_URL = 'https://api.sandbox.metriport.com';
4 changes: 1 addition & 3 deletions src/screens/ActivityFeed/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ import { ActivitySampleCategory } from 'models/activity';

import { ActivityFeedItem, ActivityFeedSection, useActivityFeed } from './hooks';
import s from './styles';
import { pushToMetriportScreen } from 'screens/MetriportConnect/navigation';

export interface ActivityFeedProps {}

export const ActivityFeed: FC<ActivityFeedProps & NavigationComponentProps> = observer(function ActivityFeed(props) {
export const ActivityFeed: FC<ActivityFeedProps & NavigationComponentProps> = observer(function ActivityFeed() {
const { user, activity, serviceStatus } = useStateTree();
const { activities, ...controllers } = useActivityFeed(activity, serviceStatus);

Expand All @@ -28,7 +27,6 @@ export const ActivityFeed: FC<ActivityFeedProps & NavigationComponentProps> = ob
<Text style={s.title}>Activity</Text>
</View>
<View style={s.headerControls}>
<Button icon={'plus'} onPress={() => pushToMetriportScreen(props.componentId, {})} />
{controllers.isRunning ? (
<Button icon={'stop'} onPress={controllers.stop} />
) : (
Expand Down
42 changes: 0 additions & 42 deletions src/screens/MetriportConnect/hooks.ts

This file was deleted.

41 changes: 0 additions & 41 deletions src/screens/MetriportConnect/index.tsx

This file was deleted.

19 changes: 0 additions & 19 deletions src/screens/MetriportConnect/navigation.ts

This file was deleted.

22 changes: 0 additions & 22 deletions src/screens/MetriportConnect/styles.ts

This file was deleted.

42 changes: 0 additions & 42 deletions src/services/metriport.ts

This file was deleted.

15 changes: 0 additions & 15 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1433,13 +1433,6 @@
"@jridgewell/resolve-uri" "3.1.0"
"@jridgewell/sourcemap-codec" "1.4.14"

"@metriport/react-native-sdk@^1.1.1":
version "1.1.1"
resolved "https://registry.yarnpkg.com/@metriport/react-native-sdk/-/react-native-sdk-1.1.1.tgz#436c422b061f8938ff5b0551eac9d111cfdfa33f"
integrity sha512-U16KgNH1F5t5O9E+WMet4+HfUxUvsZUfr+mS1zGIpc9yammdpeYTU5E/HNOlR/mXtt+555yqL+aKoiFOx2fVoQ==
dependencies:
react-native-webview "^11.26.1"

"@nicolo-ribaudo/[email protected]":
version "5.1.1-v1"
resolved "https://registry.yarnpkg.com/@nicolo-ribaudo/eslint-scope-5-internals/-/eslint-scope-5-internals-5.1.1-v1.tgz#dbf733a965ca47b1973177dc0bb6c889edcfb129"
Expand Down Expand Up @@ -5858,14 +5851,6 @@ react-native-svg@^13.8.0:
css-select "^5.1.0"
css-tree "^1.1.3"

react-native-webview@^11.26.1:
version "11.26.1"
resolved "https://registry.yarnpkg.com/react-native-webview/-/react-native-webview-11.26.1.tgz#658c09ed5162dc170b361e48c2dd26c9712879da"
integrity sha512-hC7BkxOpf+z0UKhxFSFTPAM4shQzYmZHoELa6/8a/MspcjEP7ukYKpuSUTLDywQditT8yI9idfcKvfZDKQExGw==
dependencies:
escape-string-regexp "2.0.0"
invariant "2.2.4"

react-native-webview@^13.3.0:
version "13.3.0"
resolved "https://registry.yarnpkg.com/react-native-webview/-/react-native-webview-13.3.0.tgz#37e23179e40fb21ceaa7bdc53868f160f6de60d7"
Expand Down

0 comments on commit 1422d60

Please sign in to comment.