Skip to content

Commit ac08c83

Browse files
committed
SPII-1165 add stricter coding resources to model
1 parent d3cd4a7 commit ac08c83

File tree

1 file changed

+55
-4
lines changed

1 file changed

+55
-4
lines changed

api/producer/swagger.yaml

Lines changed: 55 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1354,12 +1354,12 @@ components:
13541354
enum: ["entered-in-error", "amended", "preliminary", "final"]
13551355
description: The status of the underlying document.
13561356
type:
1357-
$ref: "#/components/schemas/CodeableConcept"
1357+
$ref: "#/components/schemas/NRLCodeableConcept"
13581358
description: Specifies the particular kind of document referenced (e.g. History and Physical, Discharge Summary, Progress Note). This usually equates to the purpose of making the document referenced.
13591359
category:
13601360
type: array
13611361
items:
1362-
$ref: "#/components/schemas/CodeableConcept"
1362+
$ref: "#/components/schemas/NRLCodeableConcept"
13631363
description: A categorization for the type of document referenced – helps for indexing and searching. This may be implied by or derived from the code specified in the DocumentReference.type.
13641364
subject:
13651365
$ref: "#/components/schemas/Reference"
@@ -1607,7 +1607,7 @@ components:
16071607
$ref: "#/components/schemas/CodeableConcept"
16081608
description: The kind of facility where the patient was seen.
16091609
practiceSetting:
1610-
$ref: "#/components/schemas/CodeableConcept"
1610+
$ref: "#/components/schemas/NRLCodeableConcept"
16111611
description: This property may convey specifics about the practice setting where the content was created, often reflecting the clinical specialty.
16121612
sourcePatientInfo:
16131613
$ref: "#/components/schemas/Reference"
@@ -1718,6 +1718,27 @@ components:
17181718
type: string
17191719
pattern: "[ \\r\\n\\t\\S]+"
17201720
description: A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.
1721+
NRLCodeableConcept:
1722+
type: object
1723+
properties:
1724+
id:
1725+
type: string
1726+
pattern: "[A-Za-z0-9\\-\\.]{1,64}"
1727+
description: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
1728+
coding:
1729+
type: array
1730+
items:
1731+
$ref: "#/components/schemas/NRLCoding"
1732+
description: A reference to a code defined by a terminology system.
1733+
minItems: 1
1734+
maxItems: 1
1735+
text:
1736+
type: string
1737+
pattern: "[ \\r\\n\\t\\S]+"
1738+
description: A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.
1739+
required:
1740+
- coding
1741+
17211742
Coding:
17221743
type: object
17231744
properties:
@@ -1727,7 +1748,33 @@ components:
17271748
description: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
17281749
system:
17291750
type: string
1730-
pattern: \S*
1751+
pattern: \S+
1752+
description: The identification of the code system that defines the meaning of the symbol in the code.
1753+
version:
1754+
type: string
1755+
pattern: "[ \\r\\n\\t\\S]+"
1756+
description: The version of the code system which was used when choosing this code. Note that a well–maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.
1757+
code:
1758+
type: string
1759+
pattern: "[^\\s]+(\\s[^\\s]+)*"
1760+
description: A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post–coordination).
1761+
display:
1762+
type: string
1763+
pattern: "[ \\r\\n\\t\\S]+"
1764+
description: A representation of the meaning of the code in the system, following the rules of the system.
1765+
userSelected:
1766+
type: boolean
1767+
description: Indicates that this coding was chosen by a user directly – e.g. off a pick list of available items (codes or displays).
1768+
NRLCoding:
1769+
type: object
1770+
properties:
1771+
id:
1772+
type: string
1773+
pattern: "[A-Za-z0-9\\-\\.]{1,64}"
1774+
description: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
1775+
system:
1776+
type: string
1777+
pattern: \S+
17311778
description: The identification of the code system that defines the meaning of the symbol in the code.
17321779
version:
17331780
type: string
@@ -1744,6 +1791,10 @@ components:
17441791
userSelected:
17451792
type: boolean
17461793
description: Indicates that this coding was chosen by a user directly – e.g. off a pick list of available items (codes or displays).
1794+
required:
1795+
- system
1796+
- code
1797+
- display
17471798
Extension:
17481799
type: object
17491800
properties:

0 commit comments

Comments
 (0)