generated from StanfordSpezi/SpeziTemplateApplication
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Load up to 50 Trials and Display Trials in List View (#19)
# Load up to 50 Trials and Display Trials in List View ## ⚙️ Release Notes - Further improves loading NCI trials, improves OpenAPI specification - Displays the Trials in a List view ![RocketSim_Screenshot_iPhone_15_Pro_6 1_2024-05-06_00 34 11](https://github.com/StanfordBDHG/OwnYourData/assets/28656495/ff0d006d-ff45-4d80-bfc8-6ea13c9e2384) ![RocketSim_Screenshot_iPhone_15_Pro_6 1_2024-05-06_00 34 36](https://github.com/StanfordBDHG/OwnYourData/assets/28656495/1f9374cf-858e-4f09-b0ea-d6cb6c66ea76) ![RocketSim_Screenshot_iPhone_15_Pro_6 1_2024-05-06_00 34 27](https://github.com/StanfordBDHG/OwnYourData/assets/28656495/f7a7c7e2-b565-4529-833f-87eb30328eda) ### Code of Conduct & Contributing Guidelines By submitting creating this pull request, you agree to follow our [Code of Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md): - [x] I agree to follow the [Code of Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md) and [Contributing Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md).
- Loading branch information
1 parent
e9f011e
commit 081d931
Showing
17 changed files
with
3,757 additions
and
3,318 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
NCIClinicalTrialsSearchAPI/OpenAPIClient/Classes/OpenAPIs/Models/AssociatedStudy.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// | ||
// AssociatedStudy.swift | ||
// | ||
// Generated by openapi-generator | ||
// https://openapi-generator.tech | ||
// | ||
|
||
import Foundation | ||
#if canImport(AnyCodable) | ||
import AnyCodable | ||
#endif | ||
|
||
public struct AssociatedStudy: Codable, JSONEncodable, Hashable { | ||
|
||
public var studyIdType: String? | ||
public var studyId: String? | ||
|
||
public init(studyIdType: String? = nil, studyId: String? = nil) { | ||
self.studyIdType = studyIdType | ||
self.studyId = studyId | ||
} | ||
|
||
public enum CodingKeys: String, CodingKey, CaseIterable { | ||
case studyIdType = "study_id_type" | ||
case studyId = "study_id" | ||
} | ||
|
||
// Encodable protocol methods | ||
|
||
public func encode(to encoder: Encoder) throws { | ||
var container = encoder.container(keyedBy: CodingKeys.self) | ||
try container.encodeIfPresent(studyIdType, forKey: .studyIdType) | ||
try container.encodeIfPresent(studyId, forKey: .studyId) | ||
} | ||
} | ||
|
68 changes: 68 additions & 0 deletions
68
NCIClinicalTrialsSearchAPI/OpenAPIClient/Classes/OpenAPIs/Models/Biomarker.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
// | ||
// Biomarker.swift | ||
// | ||
// Generated by openapi-generator | ||
// https://openapi-generator.tech | ||
// | ||
|
||
import Foundation | ||
#if canImport(AnyCodable) | ||
import AnyCodable | ||
#endif | ||
|
||
public struct Biomarker: Codable, JSONEncodable, Hashable { | ||
|
||
public var eligibilityCriterion: String? | ||
public var inclusionIndicator: String? | ||
public var synonyms: [String]? | ||
public var nciThesaurusConceptId: String? | ||
public var name: String? | ||
public var semanticTypes: [String]? | ||
public var type: [String]? | ||
public var ancestors: [String]? | ||
public var parents: [String]? | ||
public var assayPurpose: String? | ||
|
||
public init(eligibilityCriterion: String? = nil, inclusionIndicator: String? = nil, synonyms: [String]? = nil, nciThesaurusConceptId: String? = nil, name: String? = nil, semanticTypes: [String]? = nil, type: [String]? = nil, ancestors: [String]? = nil, parents: [String]? = nil, assayPurpose: String? = nil) { | ||
self.eligibilityCriterion = eligibilityCriterion | ||
self.inclusionIndicator = inclusionIndicator | ||
self.synonyms = synonyms | ||
self.nciThesaurusConceptId = nciThesaurusConceptId | ||
self.name = name | ||
self.semanticTypes = semanticTypes | ||
self.type = type | ||
self.ancestors = ancestors | ||
self.parents = parents | ||
self.assayPurpose = assayPurpose | ||
} | ||
|
||
public enum CodingKeys: String, CodingKey, CaseIterable { | ||
case eligibilityCriterion = "eligibility_criterion" | ||
case inclusionIndicator = "inclusion_indicator" | ||
case synonyms | ||
case nciThesaurusConceptId = "nci_thesaurus_concept_id" | ||
case name | ||
case semanticTypes = "semantic_types" | ||
case type | ||
case ancestors | ||
case parents | ||
case assayPurpose = "assay_purpose" | ||
} | ||
|
||
// Encodable protocol methods | ||
|
||
public func encode(to encoder: Encoder) throws { | ||
var container = encoder.container(keyedBy: CodingKeys.self) | ||
try container.encodeIfPresent(eligibilityCriterion, forKey: .eligibilityCriterion) | ||
try container.encodeIfPresent(inclusionIndicator, forKey: .inclusionIndicator) | ||
try container.encodeIfPresent(synonyms, forKey: .synonyms) | ||
try container.encodeIfPresent(nciThesaurusConceptId, forKey: .nciThesaurusConceptId) | ||
try container.encodeIfPresent(name, forKey: .name) | ||
try container.encodeIfPresent(semanticTypes, forKey: .semanticTypes) | ||
try container.encodeIfPresent(type, forKey: .type) | ||
try container.encodeIfPresent(ancestors, forKey: .ancestors) | ||
try container.encodeIfPresent(parents, forKey: .parents) | ||
try container.encodeIfPresent(assayPurpose, forKey: .assayPurpose) | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
NCIClinicalTrialsSearchAPI/OpenAPIClient/Classes/OpenAPIs/Models/PriorTherapy.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
// | ||
// PriorTherapy.swift | ||
// | ||
// Generated by openapi-generator | ||
// https://openapi-generator.tech | ||
// | ||
|
||
import Foundation | ||
#if canImport(AnyCodable) | ||
import AnyCodable | ||
#endif | ||
|
||
public struct PriorTherapy: Codable, JSONEncodable, Hashable { | ||
|
||
public var eligibilityCriterion: String? | ||
public var inclusionIndicator: String? | ||
public var synonyms: [String]? | ||
public var nciThesaurusConceptId: String? | ||
public var name: String? | ||
public var ancestorIds: [String]? | ||
public var parents: [String]? | ||
|
||
public init(eligibilityCriterion: String? = nil, inclusionIndicator: String? = nil, synonyms: [String]? = nil, nciThesaurusConceptId: String? = nil, name: String? = nil, ancestorIds: [String]? = nil, parents: [String]? = nil) { | ||
self.eligibilityCriterion = eligibilityCriterion | ||
self.inclusionIndicator = inclusionIndicator | ||
self.synonyms = synonyms | ||
self.nciThesaurusConceptId = nciThesaurusConceptId | ||
self.name = name | ||
self.ancestorIds = ancestorIds | ||
self.parents = parents | ||
} | ||
|
||
public enum CodingKeys: String, CodingKey, CaseIterable { | ||
case eligibilityCriterion = "eligibility_criterion" | ||
case inclusionIndicator = "inclusion_indicator" | ||
case synonyms | ||
case nciThesaurusConceptId = "nci_thesaurus_concept_id" | ||
case name | ||
case ancestorIds = "ancestor_ids" | ||
case parents | ||
} | ||
|
||
// Encodable protocol methods | ||
|
||
public func encode(to encoder: Encoder) throws { | ||
var container = encoder.container(keyedBy: CodingKeys.self) | ||
try container.encodeIfPresent(eligibilityCriterion, forKey: .eligibilityCriterion) | ||
try container.encodeIfPresent(inclusionIndicator, forKey: .inclusionIndicator) | ||
try container.encodeIfPresent(synonyms, forKey: .synonyms) | ||
try container.encodeIfPresent(nciThesaurusConceptId, forKey: .nciThesaurusConceptId) | ||
try container.encodeIfPresent(name, forKey: .name) | ||
try container.encodeIfPresent(ancestorIds, forKey: .ancestorIds) | ||
try container.encodeIfPresent(parents, forKey: .parents) | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# AssociatedStudy | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**studyIdType** | **String** | | [optional] | ||
**studyId** | **String** | | [optional] | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Biomarker | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**eligibilityCriterion** | **String** | | [optional] | ||
**inclusionIndicator** | **String** | | [optional] | ||
**synonyms** | **[String]** | | [optional] | ||
**nciThesaurusConceptId** | **String** | | [optional] | ||
**name** | **String** | | [optional] | ||
**semanticTypes** | **[String]** | | [optional] | ||
**type** | **[String]** | | [optional] | ||
**ancestors** | **[String]** | | [optional] | ||
**parents** | **[String]** | | [optional] | ||
**assayPurpose** | **String** | | [optional] | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# PriorTherapy | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**eligibilityCriterion** | **String** | | [optional] | ||
**inclusionIndicator** | **String** | | [optional] | ||
**synonyms** | **[String]** | | [optional] | ||
**nciThesaurusConceptId** | **String** | | [optional] | ||
**name** | **String** | | [optional] | ||
**ancestorIds** | **[String]** | | [optional] | ||
**parents** | **[String]** | | [optional] | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.