This file contains hidden or 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
| POST /fhir | |
| content-type: application/json | |
| accept: application/json | |
| {"type":"transaction","entry":[{"request":{"method":"PUT","url":"/StructureDefinition?_id=VisitCard"},"resource":{"id":"VisitCard","resourceType":"StructureDefinition","url":"http://localhost:3005/StructureDefinition/VisitCard","version":"1.0.0","name":"VisitCard","status":"active","description":"A card that patients interact with","fhirVersion":"4.0.1","kind":"resource","abstract":false,"type":"VisitCard","baseDefinition":"http://hl7.org/fhir/StructureDefinition/Element","derivation":"specialization","differential":{"element":[{"id":"VisitCard","path":"VisitCard","short":"VisitCard","definition":"A card that patients interact with"},{"id":"VisitCard.status","path":"VisitCard.status","short":"The status of the card - in-progress | finished | cancelled","definition":"The status of the card - in-progress | finished | cancelled","min":0,"max":"1","type":[{"code":"code"}]},{"id":"VisitCard.type","path":"VisitCard.type","short":"The card type","de |
This file contains hidden or 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
| POST / | |
| content-type: application/json | |
| accept: application/json | |
| { | |
| "type": "transaction", | |
| "entry": [ | |
| { | |
| "request": { | |
| "method": "PUT", |
This file contains hidden or 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
| #if DEBUG && canImport(SwiftUI) | |
| import SwiftUI | |
| extension SomeViewController: UIViewControllerRepresentable { | |
| typealias UIViewControllerType = SomeViewController | |
| func makeUIViewController(context: UIViewControllerRepresentableContext<UIViewControllerType>) -> UIViewControllerType { | |
| return SomeViewController() | |
| } |
This file contains hidden or 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
| protocol Presentable: class { | |
| var viewController: UIViewController { get } | |
| } | |
| protocol Presenter: Presentable { | |
| } | |
| extension UIViewController: Presenter { | |
| var viewController: UIViewController { return self } |
This file contains hidden or 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
| protocol Routable: class { | |
| associatedtype I: Interactable | |
| func configure(interactor: I, viewController: UIViewController?) | |
| func attach(router: Router<I>) | |
| func detach(router: Router<I>) | |
| } | |
| class Router<I: Interactable>: Routable { | |
| var interactor: Interactable! |
This file contains hidden or 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
| protocol Interactable: class {//, StoreSubscriber { | |
| associatedtype R: Routable | |
| associatedtype P: Presentable | |
| func configure(store: AppStore, router: R, presenter: P?) | |
| func interactorDidAttach() | |
| func interactorWillDetach() | |
| func newState(state: AppState) | |
| } |
This file contains hidden or 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
| protocol Buildable: class { | |
| associatedtype R: Routable | |
| associatedtype I: Interactable | |
| associatedtype P: Presentable | |
| func build(store: AppStore) -> R! | |
| func configure(store: AppStore, router: R, interactor: I, presenter: P?) | |
| } | |
| class Builder<R: Routable, I: Interactable, P: Presentable> { |