Skip to content

Commit fa589d6

Browse files
committed
temp
1 parent b0516bc commit fa589d6

19 files changed

+297
-214
lines changed

LLMonFHIR.xcodeproj/project.pbxproj

+52-38
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 55;
6+
objectVersion = 60;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -26,7 +26,7 @@
2626
2F6A880B2B2C0046002B9553 /* Allen322_Ferry570_ad134528-56a5-35fd-c37f-466ff119c625.json in Resources */ = {isa = PBXBuildFile; fileRef = 2F6A880A2B2C0046002B9553 /* Allen322_Ferry570_ad134528-56a5-35fd-c37f-466ff119c625.json */; };
2727
2FC186092AD52FFF0065EBB2 /* Localizable.xcstrings in Resources */ = {isa = PBXBuildFile; fileRef = 2FC186082AD52FFF0065EBB2 /* Localizable.xcstrings */; };
2828
2FC975A82978F11A00BA99FE /* Home.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2FC975A72978F11A00BA99FE /* Home.swift */; };
29-
2FD024892B116EEF009A682C /* LLMFunction.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2FD024882B116EEF009A682C /* LLMFunction.swift */; };
29+
2FD024892B116EEF009A682C /* FHIRInterpretationFunction.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2FD024882B116EEF009A682C /* FHIRInterpretationFunction.swift */; };
3030
2FD0248B2B116EF6009A682C /* LLMStreamResult.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2FD0248A2B116EF6009A682C /* LLMStreamResult.swift */; };
3131
2FD024912B1171EC009A682C /* Edythe31_Morar593_9c3df38a-d3b7-2198-3898-51f9153d023d.json in Resources */ = {isa = PBXBuildFile; fileRef = 2FD0248D2B1171EC009A682C /* Edythe31_Morar593_9c3df38a-d3b7-2198-3898-51f9153d023d.json */; };
3232
2FD024922B1171EC009A682C /* Milton509_Ortiz186_d66b5418-06cb-fc8a-8c13-85685b6ac939.json in Resources */ = {isa = PBXBuildFile; fileRef = 2FD0248E2B1171EC009A682C /* Milton509_Ortiz186_d66b5418-06cb-fc8a-8c13-85685b6ac939.json */; };
@@ -56,13 +56,15 @@
5656
653A2551283387FE005D4D48 /* LLMonFHIR.swift in Sources */ = {isa = PBXBuildFile; fileRef = 653A2550283387FE005D4D48 /* LLMonFHIR.swift */; };
5757
653A255528338800005D4D48 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 653A255428338800005D4D48 /* Assets.xcassets */; };
5858
653A256228338800005D4D48 /* LLMonFHIRTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 653A256128338800005D4D48 /* LLMonFHIRTests.swift */; };
59-
977572042B5E6F2A00FB0286 /* SpeziFHIR in Frameworks */ = {isa = PBXBuildFile; productRef = 977572032B5E6F2A00FB0286 /* SpeziFHIR */; };
60-
977572062B5E6F2A00FB0286 /* SpeziFHIRHealthKit in Frameworks */ = {isa = PBXBuildFile; productRef = 977572052B5E6F2A00FB0286 /* SpeziFHIRHealthKit */; };
61-
977572082B5E6F2A00FB0286 /* SpeziFHIRInterpretation in Frameworks */ = {isa = PBXBuildFile; productRef = 977572072B5E6F2A00FB0286 /* SpeziFHIRInterpretation */; };
62-
9775720A2B5E6F2A00FB0286 /* SpeziFHIRMockPatients in Frameworks */ = {isa = PBXBuildFile; productRef = 977572092B5E6F2A00FB0286 /* SpeziFHIRMockPatients */; };
59+
9733FC572B60E5FB0024F12C /* SpeziFHIR in Frameworks */ = {isa = PBXBuildFile; productRef = 9733FC562B60E5FB0024F12C /* SpeziFHIR */; };
60+
9733FC592B60E5FB0024F12C /* SpeziFHIRHealthKit in Frameworks */ = {isa = PBXBuildFile; productRef = 9733FC582B60E5FB0024F12C /* SpeziFHIRHealthKit */; };
61+
9733FC5B2B60E5FB0024F12C /* SpeziFHIRInterpretation in Frameworks */ = {isa = PBXBuildFile; productRef = 9733FC5A2B60E5FB0024F12C /* SpeziFHIRInterpretation */; };
62+
9733FC5D2B60E5FB0024F12C /* SpeziFHIRMockPatients in Frameworks */ = {isa = PBXBuildFile; productRef = 9733FC5C2B60E5FB0024F12C /* SpeziFHIRMockPatients */; };
6363
9775720D2B5E718A00FB0286 /* SpeziSpeechRecognizer in Frameworks */ = {isa = PBXBuildFile; productRef = 9775720C2B5E718A00FB0286 /* SpeziSpeechRecognizer */; };
6464
9775720F2B5E718A00FB0286 /* SpeziSpeechSynthesizer in Frameworks */ = {isa = PBXBuildFile; productRef = 9775720E2B5E718A00FB0286 /* SpeziSpeechSynthesizer */; };
6565
977572122B5E721F00FB0286 /* SpeziChat in Frameworks */ = {isa = PBXBuildFile; productRef = 977572112B5E721F00FB0286 /* SpeziChat */; };
66+
97CAB1F72B64A03600D646CE /* SpeziLLM in Frameworks */ = {isa = PBXBuildFile; productRef = 97CAB1F62B64A03600D646CE /* SpeziLLM */; };
67+
97CAB1F92B64A03600D646CE /* SpeziLLMOpenAI in Frameworks */ = {isa = PBXBuildFile; productRef = 97CAB1F82B64A03600D646CE /* SpeziLLMOpenAI */; };
6668
/* End PBXBuildFile section */
6769

6870
/* Begin PBXContainerItemProxy section */
@@ -103,7 +105,7 @@
103105
2FC186082AD52FFF0065EBB2 /* Localizable.xcstrings */ = {isa = PBXFileReference; lastKnownFileType = text.json.xcstrings; path = Localizable.xcstrings; sourceTree = "<group>"; };
104106
2FC94CD4298B0A1D009C8209 /* LLMonFHIR.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = LLMonFHIR.xctestplan; sourceTree = "<group>"; };
105107
2FC975A72978F11A00BA99FE /* Home.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Home.swift; sourceTree = "<group>"; };
106-
2FD024882B116EEF009A682C /* LLMFunction.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LLMFunction.swift; sourceTree = "<group>"; };
108+
2FD024882B116EEF009A682C /* FHIRInterpretationFunction.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FHIRInterpretationFunction.swift; sourceTree = "<group>"; };
107109
2FD0248A2B116EF6009A682C /* LLMStreamResult.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LLMStreamResult.swift; sourceTree = "<group>"; };
108110
2FD0248D2B1171EC009A682C /* Edythe31_Morar593_9c3df38a-d3b7-2198-3898-51f9153d023d.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "Edythe31_Morar593_9c3df38a-d3b7-2198-3898-51f9153d023d.json"; sourceTree = "<group>"; };
109111
2FD0248E2B1171EC009A682C /* Milton509_Ortiz186_d66b5418-06cb-fc8a-8c13-85685b6ac939.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "Milton509_Ortiz186_d66b5418-06cb-fc8a-8c13-85685b6ac939.json"; sourceTree = "<group>"; };
@@ -137,20 +139,22 @@
137139
isa = PBXFrameworksBuildPhase;
138140
buildActionMask = 2147483647;
139141
files = (
142+
97CAB1F72B64A03600D646CE /* SpeziLLM in Frameworks */,
143+
9733FC592B60E5FB0024F12C /* SpeziFHIRHealthKit in Frameworks */,
140144
9775720F2B5E718A00FB0286 /* SpeziSpeechSynthesizer in Frameworks */,
141145
2FD8E82C2A1AADDA00357F4E /* ModelsR4 in Frameworks */,
142-
977572082B5E6F2A00FB0286 /* SpeziFHIRInterpretation in Frameworks */,
143-
9775720A2B5E6F2A00FB0286 /* SpeziFHIRMockPatients in Frameworks */,
144146
2FD8E82A2A1AADDA00357F4E /* ModelsDSTU2 in Frameworks */,
145147
2FD8E8402A1AE3F200357F4E /* SpeziViews in Frameworks */,
146-
977572062B5E6F2A00FB0286 /* SpeziFHIRHealthKit in Frameworks */,
147148
2FE5DC7229EDD8D3004B9AB4 /* SpeziHealthKit in Frameworks */,
148149
2F49B7762980407C00BCB272 /* Spezi in Frameworks */,
149150
9775720D2B5E718A00FB0286 /* SpeziSpeechRecognizer in Frameworks */,
150-
977572042B5E6F2A00FB0286 /* SpeziFHIR in Frameworks */,
151151
2FD8E8312A1AB00D00357F4E /* HealthKitOnFHIR in Frameworks */,
152+
97CAB1F92B64A03600D646CE /* SpeziLLMOpenAI in Frameworks */,
153+
9733FC5D2B60E5FB0024F12C /* SpeziFHIRMockPatients in Frameworks */,
152154
977572122B5E721F00FB0286 /* SpeziChat in Frameworks */,
153155
2FE5DC8129EDD91D004B9AB4 /* SpeziOnboarding in Frameworks */,
156+
9733FC5B2B60E5FB0024F12C /* SpeziFHIRInterpretation in Frameworks */,
157+
9733FC572B60E5FB0024F12C /* SpeziFHIR in Frameworks */,
154158
);
155159
runOnlyForDeploymentPostprocessing = 0;
156160
};
@@ -220,7 +224,7 @@
220224
2FD8E8322A1AB68E00357F4E /* FHIRResource+Extensions.swift */,
221225
2F036EA02B0E4B22009B2745 /* FHIRInterpretationModule.swift */,
222226
433352432A5C96090043A440 /* FHIRMultipleResourceInterpreter.swift */,
223-
2FD024882B116EEF009A682C /* LLMFunction.swift */,
227+
2FD024882B116EEF009A682C /* FHIRInterpretationFunction.swift */,
224228
2FD0248A2B116EF6009A682C /* LLMStreamResult.swift */,
225229
);
226230
path = "FHIR Interpretation";
@@ -240,11 +244,11 @@
240244
2FE5DC2829EDD398004B9AB4 /* Onboarding */ = {
241245
isa = PBXGroup;
242246
children = (
243-
2FE5DC3029EDD7CA004B9AB4 /* HealthKitPermissions.swift */,
244-
2FE5DC3229EDD7CA004B9AB4 /* Disclaimer.swift */,
245-
2F42429A2A8B14AC006E2B01 /* OpenAIAPIKey.swift */,
246247
2FE5DC3129EDD7CA004B9AB4 /* OnboardingFlow.swift */,
247248
2FE5DC3429EDD7CA004B9AB4 /* Welcome.swift */,
249+
2FE5DC3229EDD7CA004B9AB4 /* Disclaimer.swift */,
250+
2F42429A2A8B14AC006E2B01 /* OpenAIAPIKey.swift */,
251+
2FE5DC3029EDD7CA004B9AB4 /* HealthKitPermissions.swift */,
248252
);
249253
path = Onboarding;
250254
sourceTree = "<group>";
@@ -371,13 +375,15 @@
371375
2FD8E82B2A1AADDA00357F4E /* ModelsR4 */,
372376
2FD8E8302A1AB00D00357F4E /* HealthKitOnFHIR */,
373377
2FD8E83F2A1AE3F200357F4E /* SpeziViews */,
374-
977572032B5E6F2A00FB0286 /* SpeziFHIR */,
375-
977572052B5E6F2A00FB0286 /* SpeziFHIRHealthKit */,
376-
977572072B5E6F2A00FB0286 /* SpeziFHIRInterpretation */,
377-
977572092B5E6F2A00FB0286 /* SpeziFHIRMockPatients */,
378378
9775720C2B5E718A00FB0286 /* SpeziSpeechRecognizer */,
379379
9775720E2B5E718A00FB0286 /* SpeziSpeechSynthesizer */,
380380
977572112B5E721F00FB0286 /* SpeziChat */,
381+
9733FC562B60E5FB0024F12C /* SpeziFHIR */,
382+
9733FC582B60E5FB0024F12C /* SpeziFHIRHealthKit */,
383+
9733FC5A2B60E5FB0024F12C /* SpeziFHIRInterpretation */,
384+
9733FC5C2B60E5FB0024F12C /* SpeziFHIRMockPatients */,
385+
97CAB1F62B64A03600D646CE /* SpeziLLM */,
386+
97CAB1F82B64A03600D646CE /* SpeziLLMOpenAI */,
381387
);
382388
productName = LLMonFHIR;
383389
productReference = 653A254D283387FE005D4D48 /* LLMonFHIR.app */;
@@ -431,7 +437,7 @@
431437
attributes = {
432438
BuildIndependentTargetsInParallel = 1;
433439
LastSwiftUpdateCheck = 1340;
434-
LastUpgradeCheck = 1500;
440+
LastUpgradeCheck = 1510;
435441
TargetAttributes = {
436442
653A254C283387FE005D4D48 = {
437443
CreatedOnToolsVersion = 13.4;
@@ -468,9 +474,10 @@
468474
2FD8E8282A1AADDA00357F4E /* XCRemoteSwiftPackageReference "FHIRModels" */,
469475
2FD8E82F2A1AB00D00357F4E /* XCRemoteSwiftPackageReference "HealthKitOnFHIR" */,
470476
2FD8E83E2A1AE3F200357F4E /* XCRemoteSwiftPackageReference "SpeziViews" */,
471-
977572022B5E6F2A00FB0286 /* XCRemoteSwiftPackageReference "SpeziFHIR" */,
472477
9775720B2B5E718A00FB0286 /* XCRemoteSwiftPackageReference "SpeziSpeech" */,
473478
977572102B5E721F00FB0286 /* XCRemoteSwiftPackageReference "SpeziChat" */,
479+
9733FC552B60E5FB0024F12C /* XCLocalSwiftPackageReference "../SpeziFHIR" */,
480+
97CAB1F52B64A03600D646CE /* XCLocalSwiftPackageReference "../SpeziLLM" */,
474481
);
475482
productRefGroup = 653A254E283387FE005D4D48 /* Products */;
476483
projectDirPath = "";
@@ -569,7 +576,7 @@
569576
653A2551283387FE005D4D48 /* LLMonFHIR.swift in Sources */,
570577
2F036EA52B0ED1F0009B2745 /* FHIRResourcesInstructionsView.swift in Sources */,
571578
2FE5DC3629EDD7CA004B9AB4 /* HealthKitPermissions.swift in Sources */,
572-
2FD024892B116EEF009A682C /* LLMFunction.swift in Sources */,
579+
2FD024892B116EEF009A682C /* FHIRInterpretationFunction.swift in Sources */,
573580
);
574581
runOnlyForDeploymentPostprocessing = 0;
575582
};
@@ -1086,6 +1093,17 @@
10861093
};
10871094
/* End XCConfigurationList section */
10881095

1096+
/* Begin XCLocalSwiftPackageReference section */
1097+
9733FC552B60E5FB0024F12C /* XCLocalSwiftPackageReference "../SpeziFHIR" */ = {
1098+
isa = XCLocalSwiftPackageReference;
1099+
relativePath = ../SpeziFHIR;
1100+
};
1101+
97CAB1F52B64A03600D646CE /* XCLocalSwiftPackageReference "../SpeziLLM" */ = {
1102+
isa = XCLocalSwiftPackageReference;
1103+
relativePath = ../SpeziLLM;
1104+
};
1105+
/* End XCLocalSwiftPackageReference section */
1106+
10891107
/* Begin XCRemoteSwiftPackageReference section */
10901108
2F49B7742980407B00BCB272 /* XCRemoteSwiftPackageReference "Spezi" */ = {
10911109
isa = XCRemoteSwiftPackageReference;
@@ -1151,14 +1169,6 @@
11511169
minimumVersion = 0.3.5;
11521170
};
11531171
};
1154-
977572022B5E6F2A00FB0286 /* XCRemoteSwiftPackageReference "SpeziFHIR" */ = {
1155-
isa = XCRemoteSwiftPackageReference;
1156-
repositoryURL = "https://github.com/StanfordSpezi/SpeziFHIR";
1157-
requirement = {
1158-
branch = "feat/lift-to-spezi-llm";
1159-
kind = branch;
1160-
};
1161-
};
11621172
9775720B2B5E718A00FB0286 /* XCRemoteSwiftPackageReference "SpeziSpeech" */ = {
11631173
isa = XCRemoteSwiftPackageReference;
11641174
repositoryURL = "https://github.com/StanfordSpezi/SpeziSpeech";
@@ -1223,24 +1233,20 @@
12231233
package = 2FE5DC9A29EDD9EF004B9AB4 /* XCRemoteSwiftPackageReference "XCTHealthKit" */;
12241234
productName = XCTHealthKit;
12251235
};
1226-
977572032B5E6F2A00FB0286 /* SpeziFHIR */ = {
1236+
9733FC562B60E5FB0024F12C /* SpeziFHIR */ = {
12271237
isa = XCSwiftPackageProductDependency;
1228-
package = 977572022B5E6F2A00FB0286 /* XCRemoteSwiftPackageReference "SpeziFHIR" */;
12291238
productName = SpeziFHIR;
12301239
};
1231-
977572052B5E6F2A00FB0286 /* SpeziFHIRHealthKit */ = {
1240+
9733FC582B60E5FB0024F12C /* SpeziFHIRHealthKit */ = {
12321241
isa = XCSwiftPackageProductDependency;
1233-
package = 977572022B5E6F2A00FB0286 /* XCRemoteSwiftPackageReference "SpeziFHIR" */;
12341242
productName = SpeziFHIRHealthKit;
12351243
};
1236-
977572072B5E6F2A00FB0286 /* SpeziFHIRInterpretation */ = {
1244+
9733FC5A2B60E5FB0024F12C /* SpeziFHIRInterpretation */ = {
12371245
isa = XCSwiftPackageProductDependency;
1238-
package = 977572022B5E6F2A00FB0286 /* XCRemoteSwiftPackageReference "SpeziFHIR" */;
12391246
productName = SpeziFHIRInterpretation;
12401247
};
1241-
977572092B5E6F2A00FB0286 /* SpeziFHIRMockPatients */ = {
1248+
9733FC5C2B60E5FB0024F12C /* SpeziFHIRMockPatients */ = {
12421249
isa = XCSwiftPackageProductDependency;
1243-
package = 977572022B5E6F2A00FB0286 /* XCRemoteSwiftPackageReference "SpeziFHIR" */;
12441250
productName = SpeziFHIRMockPatients;
12451251
};
12461252
9775720C2B5E718A00FB0286 /* SpeziSpeechRecognizer */ = {
@@ -1258,6 +1264,14 @@
12581264
package = 977572102B5E721F00FB0286 /* XCRemoteSwiftPackageReference "SpeziChat" */;
12591265
productName = SpeziChat;
12601266
};
1267+
97CAB1F62B64A03600D646CE /* SpeziLLM */ = {
1268+
isa = XCSwiftPackageProductDependency;
1269+
productName = SpeziLLM;
1270+
};
1271+
97CAB1F82B64A03600D646CE /* SpeziLLMOpenAI */ = {
1272+
isa = XCSwiftPackageProductDependency;
1273+
productName = SpeziLLMOpenAI;
1274+
};
12611275
/* End XCSwiftPackageProductDependency section */
12621276
};
12631277
rootObject = 653A2545283387FE005D4D48 /* Project object */;

LLMonFHIR.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

+11-29
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"kind" : "remoteSourceControl",
2424
"location" : "https://github.com/StanfordBDHG/llama.cpp",
2525
"state" : {
26-
"revision" : "bcbf5bf9f677b92262aa28a2849defeddc00505d",
27-
"version" : "0.1.6"
26+
"revision" : "b0611c7d3cb049822f9911878514e4706b80e2ac",
27+
"version" : "0.1.8"
2828
}
2929
},
3030
{
@@ -48,19 +48,10 @@
4848
{
4949
"identity" : "spezichat",
5050
"kind" : "remoteSourceControl",
51-
"location" : "https://github.com/StanfordSpezi/SpeziChat.git",
51+
"location" : "https://github.com/StanfordSpezi/SpeziChat",
5252
"state" : {
53-
"revision" : "9d45c10bcf859c98f2998ecd4f6a80f31894fe2c",
54-
"version" : "0.1.4"
55-
}
56-
},
57-
{
58-
"identity" : "spezifhir",
59-
"kind" : "remoteSourceControl",
60-
"location" : "https://github.com/StanfordSpezi/SpeziFHIR",
61-
"state" : {
62-
"branch" : "feat/lift-to-spezi-llm",
63-
"revision" : "28953591898c4b448028944f52cf4998895866ed"
53+
"revision" : "ea5e21b4f42d99a5549dd7a7033e2a3efeb5fd36",
54+
"version" : "0.1.5"
6455
}
6556
},
6657
{
@@ -81,22 +72,13 @@
8172
"version" : "0.5.0"
8273
}
8374
},
84-
{
85-
"identity" : "spezillm",
86-
"kind" : "remoteSourceControl",
87-
"location" : "https://github.com/StanfordSpezi/SpeziLLM.git",
88-
"state" : {
89-
"revision" : "24d6c197f1821925e3fc1ee9589859b6853aee01",
90-
"version" : "0.6.0"
91-
}
92-
},
9375
{
9476
"identity" : "spezionboarding",
9577
"kind" : "remoteSourceControl",
9678
"location" : "https://github.com/StanfordSpezi/SpeziOnboarding.git",
9779
"state" : {
98-
"revision" : "3ee713576eaeaa03200ba26bbc1269ceeb6abb25",
99-
"version" : "1.0.1"
80+
"revision" : "8fb6d9f1a080661c0cc564a93b82ead3c8d44d4f",
81+
"version" : "1.0.2"
10082
}
10183
},
10284
{
@@ -131,17 +113,17 @@
131113
"kind" : "remoteSourceControl",
132114
"location" : "https://github.com/apple/swift-collections.git",
133115
"state" : {
134-
"revision" : "a902f1823a7ff3c9ab2fba0f992396b948eda307",
135-
"version" : "1.0.5"
116+
"revision" : "d029d9d39c87bed85b1c50adee7c41795261a192",
117+
"version" : "1.0.6"
136118
}
137119
},
138120
{
139121
"identity" : "xctestextensions",
140122
"kind" : "remoteSourceControl",
141123
"location" : "https://github.com/StanfordBDHG/XCTestExtensions.git",
142124
"state" : {
143-
"revision" : "388a6d6a5be48eff5d98a2c45e0b50f30ed21dc3",
144-
"version" : "0.4.7"
125+
"revision" : "fb7fcee97c574b950e03b0a53874e26db27db2fe",
126+
"version" : "0.4.8"
145127
}
146128
},
147129
{

LLMonFHIR.xcodeproj/xcshareddata/xcschemes/LLMonFHIR.xcscheme

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1500"
3+
LastUpgradeVersion = "1510"
44
version = "1.7">
55
<BuildAction
66
parallelizeBuildables = "YES"

LLMonFHIR/FHIR Display/FHIRResourcesView.swift

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
//
88

99
import ModelsR4
10-
import OpenAI
1110
import SpeziFHIR
1211
import SpeziFHIRInterpretation
1312
import SpeziOnboarding

LLMonFHIR/FHIR Display/InspectResourceView.swift

+4-5
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// SPDX-License-Identifier: MIT
77
//
88

9-
import OpenAI
109
import SpeziFHIR
1110
import SpeziFHIRInterpretation
1211
import SpeziViews
@@ -115,9 +114,9 @@ struct InspectResourceView: View {
115114
do {
116115
try await fhirResourceSummary.summarize(resource: resource, forceReload: forceReload)
117116
loadingSummary = .idle
118-
} catch let error as APIErrorResponse {
117+
}/* catch let error as APIErrorResponse {
119118
loadingSummary = .error(error)
120-
} catch {
119+
}*/ catch {
121120
loadingSummary = .error("Unknown error")
122121
}
123122
}
@@ -130,9 +129,9 @@ struct InspectResourceView: View {
130129
do {
131130
try await fhirResourceInterpreter.interpret(resource: resource, forceReload: forceReload)
132131
interpreting = .idle
133-
} catch let error as APIErrorResponse {
132+
} /*catch let error as APIErrorResponse {
134133
loadingSummary = .error(error)
135-
} catch {
134+
}*/ catch {
136135
loadingSummary = .error("Unknown error")
137136
}
138137
}

0 commit comments

Comments
 (0)