From af397ca8ce913f189fe6d2f99cc5318ff23f8417 Mon Sep 17 00:00:00 2001 From: jenniferajiang Date: Thu, 9 May 2024 15:40:33 +0100 Subject: [PATCH] Renamed CDS pydantic models --- healthchain/models/responses/cdsdiscovery.py | 2 +- healthchain/models/responses/cdsfeedback.py | 2 +- healthchain/models/responses/{cdsservice.py => cdsresponse.py} | 2 -- 3 files changed, 2 insertions(+), 4 deletions(-) rename healthchain/models/responses/{cdsservice.py => cdsresponse.py} (99%) diff --git a/healthchain/models/responses/cdsdiscovery.py b/healthchain/models/responses/cdsdiscovery.py index 890c4fd..590b19c 100644 --- a/healthchain/models/responses/cdsdiscovery.py +++ b/healthchain/models/responses/cdsdiscovery.py @@ -30,7 +30,7 @@ class CDSService(BaseModel): usageRequirements: Optional[str] = None -class CDSServiceDiscoveryResponse(BaseModel): +class CDSServiceInformation(BaseModel): """ A CDS Service is discoverable via a stable endpoint by CDS Clients. The Discovery endpoint includes information such as a description of the CDS Service, when it should be invoked, and any data that is requested to be prefetched. diff --git a/healthchain/models/responses/cdsfeedback.py b/healthchain/models/responses/cdsfeedback.py index 39d940f..29f748d 100644 --- a/healthchain/models/responses/cdsfeedback.py +++ b/healthchain/models/responses/cdsfeedback.py @@ -8,7 +8,7 @@ from typing import Optional, Dict, Any from enum import Enum -from .cdsservice import Coding +from .cdsresponse import Coding class OutcomeEnum(str, Enum): diff --git a/healthchain/models/responses/cdsservice.py b/healthchain/models/responses/cdsresponse.py similarity index 99% rename from healthchain/models/responses/cdsservice.py rename to healthchain/models/responses/cdsresponse.py index 003ee39..f3e2ab5 100644 --- a/healthchain/models/responses/cdsservice.py +++ b/healthchain/models/responses/cdsresponse.py @@ -4,8 +4,6 @@ from typing import Optional, List, Dict from typing_extensions import Self -# TODO: add docstrings - class IndicatorEnum(str, Enum): """