Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zman/fix conflicts dev aks fleet 2024 02 02 preview #27815

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
166 commits
Select commit Hold shift + click to select a range
ebce1c6
Adding New GA Version (#26953)
allegradomel Jan 10, 2024
f6dba71
[TypeSpec Requirement] Handle specs with variable path depths (#27324)
mikeharder Jan 10, 2024
2f74f79
[TypeSpec-Requirement] Fix typo in github URL to check
mikeharder Jan 10, 2024
ee05b00
Update readme.python.md (#27330)
ChenxiJiang333 Jan 10, 2024
f2d0e78
Use property name `list` instead of `values` in some models for Pytho…
dargilco Jan 10, 2024
afd7752
Johnkoh msft azuredatatransfer microsoft.azure data transfer 2023 10 …
johnkoh-msft Jan 10, 2024
ca6cb35
Minor Fixes of TypeSpec for AOAI On Your Data 2023-12-01-preview /ext…
wangyuantao Jan 10, 2024
957fd51
Update SparkFrontend_SparkBatch_Create.json (#27077)
kevinjaku Jan 10, 2024
7510297
[TypeSpec Validation] add support for node 21 and drop 16 (#27247)
ckairen Jan 11, 2024
685aad3
tsv path error message (#27248)
ckairen Jan 11, 2024
739c3a5
Correct the version # in the primary tag in the readme (Azure Maps) (…
stevemunk Jan 11, 2024
eb06c34
[TypeSpec Validation] remove job name for pipelines (#27338)
ckairen Jan 11, 2024
ea28180
Update readme.python.md (#27344)
ChenxiJiang333 Jan 11, 2024
07fd0ee
Updated examples for public documentation (#27273)
sushil490023 Jan 11, 2024
e8fe420
Azure Language add scriptCode, and enums for script Language Detectio…
quentinRobinson Jan 11, 2024
bcc8715
Fix broken links in Creator (#27343)
stevemunk Jan 11, 2024
84e597d
[ImageAnalysis] Fix auth implementation (#27361)
catalinaperalta Jan 12, 2024
0988452
Update readme.python.md (#27365)
msyyc Jan 12, 2024
1285ef6
Update readme.python.md (#27366)
msyyc Jan 12, 2024
35801d7
References to the data service are changed to reference the data regi…
stevemunk Jan 12, 2024
e79c2de
Abaranwal ms edgeorder microsoft.edge order 2024 02 01 (#27145)
abaranwal-ms Jan 12, 2024
eddb30e
remove the save-inputs in jobrouters (#27371)
ArcturusZhang Jan 15, 2024
571a9b7
Update readme.python.md (#27374)
ChenxiJiang333 Jan 16, 2024
05c4049
Add snowflake v2 linkedService (#26336)
ruowan Jan 16, 2024
cbc53d2
Minor fix the missing parameters for ingestion API (#27364)
wangyuantao Jan 16, 2024
e3b6f57
Azure Maps - Data service documentation updates to improve the overvi…
stevemunk Jan 16, 2024
22abc86
Fix broken links in user docs (description fields) (#27149)
stevemunk Jan 16, 2024
8b5aae7
[TypeSpec Requirement] Improve check if OpenAPI cannot be parsed as J…
mikeharder Jan 17, 2024
fa40a42
Update readme.python.md (#27411)
msyyc Jan 17, 2024
97cefc8
Fix headers and schema definition (#27180)
wangbwn Jan 17, 2024
ebf29a8
[Hub Generated] Review request for Microsoft.ContainerService/aks to …
FumingZhang Jan 17, 2024
2ce7ebe
update duration properties with "x-ms-format" : "duration-constant" (…
mwesigwaguma Jan 17, 2024
12d43d5
Documentation fixes for a preview API (#27350)
mahakjain314 Jan 17, 2024
5ce4234
[Hub Generated] Publish private branch 'feature/DP-workspace-key' (#2…
04diiguyi Jan 17, 2024
e69839a
[DocumentIntelligence] Update tsp config for Python (#27423)
YalinLi0312 Jan 17, 2024
baebc8d
[ChangedFiles-Functions.ps1] Remove unnecessary parenthesis in functi…
mikeharder Jan 18, 2024
8b5618d
[Hub Generated] Publish private branch 'feature/RP-workspace-key' (#2…
xinyi-joffre Jan 18, 2024
922913c
Fixed link text for 'pricing tiers' in Azure Maps swagger files. (#27…
stevemunk Jan 18, 2024
c3a9177
Update ARM review guidance in control_plane_template.md (#27406)
Jan 18, 2024
27bae6b
Update pull_request_assignment.yml: remove rkmanda from assignees (#2…
Jan 18, 2024
e280525
Remove spatial (#27209)
stevemunk Jan 19, 2024
0e456cb
Update readme.python.md (#27454)
msyyc Jan 19, 2024
3c237ab
Update description of Custom Voice API swagger. (#27438)
ForrestGumb Jan 19, 2024
8df53db
Added optional deliveryReportTimeoutInSeconds to smsSendOptions. (#27…
besh2014 Jan 19, 2024
e8c4e08
Fix broken links for Azure Maps API resulting from TOC changes. (#27443)
stevemunk Jan 19, 2024
0a29f97
[Hub Generated] Publish private branch 'gachauhan-iprangenew' (#27329)
gachauhan Jan 19, 2024
5386fbb
Remove "Swagger" from the PR template (#27466)
Jan 20, 2024
09e36d3
disable model flatten for new service (#27380)
msyyc Jan 22, 2024
ce47f9b
[Hub Generated] Review request for Microsoft.HealthcareApis to add ve…
namalu Jan 22, 2024
a0151af
Search preview version 2024-03-01-preview (#27235)
sazeesha098 Jan 22, 2024
aac5483
Various improvements to `ci-fix.md` (#27484)
Jan 22, 2024
51a6e41
to support SDK auto generation (#27464)
04diiguyi Jan 23, 2024
f9f1a6a
Improve Salesforce V2 properties (#27412)
wenqibu Jan 23, 2024
47fa9d7
Route v2 toc (#27500)
stevemunk Jan 23, 2024
2b305df
Creator api summary (#27357)
stevemunk Jan 23, 2024
ade1f3c
Add simple script to create new API versions (#27266)
heaths Jan 23, 2024
cf49581
[tsconfig.json] Revert accidental changes (#27489)
mikeharder Jan 24, 2024
21a8d55
java, offazurespringboot, update title use singlar App (#27494)
weidongxu-microsoft Jan 24, 2024
41dff4b
Rheajain paloaltonetworks palo alto networks.cloudngfw 2024 01 19 pre…
rheajain Jan 24, 2024
ac56165
Update Custom Voice API swagger. (#27512)
ForrestGumb Jan 24, 2024
7452e1c
Release keyvault microsoft.key vault 7.5 (#27422)
jlichwa Jan 24, 2024
c75671a
Adding 2023 09 01 for nginx (#27231)
zaowang-ms Jan 24, 2024
23f6597
Update readme.python.md (#27520)
ChenxiJiang333 Jan 25, 2024
08d85e4
disable model flatten (#27511)
ChenxiJiang333 Jan 25, 2024
4307895
Adding new preview api version for new field (#27382)
GovardhanaDK Jan 25, 2024
18b5c82
hardwaresecuritymodules readme.go.md add directive (#27525)
Alancere Jan 25, 2024
3cf7400
Naming tweaks for ImageAnalysis (#27296)
rhurey Jan 25, 2024
e84621b
Update Route Directions API (#27492)
koyasu221b Jan 25, 2024
65e9fe8
Added comment 'Maximum number of categorySet values supported per req…
stevemunk Jan 25, 2024
8fc3dd4
Alec baird desktopvirtualization microsoft.desktop virtualization 202…
alec-baird Jan 25, 2024
99e8394
Remove issue and pull request assignment files (#27481)
Jan 26, 2024
6f8faf5
turn the MRW feature off explicitly for communication jobrouter (#27539)
ArcturusZhang Jan 26, 2024
581bcb0
[TypeSpec] Upgrade to 0.52.0 (#27541)
mikeharder Jan 26, 2024
8829910
[docs] Add to "Swagger LintDiff for TypeSpec" (#27451)
mikeharder Jan 26, 2024
5edeefc
Cognitive Services 2023-10-01-preview update (#26892)
tianxin-ms Jan 26, 2024
b09da5a
[TypeSpec] Upgrade http to 0.52.1 (#27548)
mikeharder Jan 27, 2024
f5cd5df
System component added as azure arc profile. (#27519)
kulalking Jan 27, 2024
014f813
Fixed invalid type errors in bbox examples (#27516)
stevemunk Jan 28, 2024
86a89f2
enable mrw for jobrouter again (#27543)
ArcturusZhang Jan 29, 2024
f145d51
making product description optional in new API version (#27534)
allegradomel Jan 29, 2024
0fb6b39
[OpenAI] Fix ChatCompletionsNamedFunctionToolSelection (#27487)
deyaaeldeen Jan 29, 2024
2232e42
[TypeSpec] Upgrade typespec-apiview to 0.4.5 (#27562)
mikeharder Jan 29, 2024
c26e839
Add Token authentication for Single document translator API (#27546)
vikaspalaskar Jan 29, 2024
f9bf9d4
add stable API 2024-02-01 for GA (#27360)
jylama-99 Jan 29, 2024
3337c7c
remove placeholder file (#27569)
catalinaperalta Jan 30, 2024
10af943
[TypeSpec] Upgrade autorest to 0.38.1 (#27568)
timotheeguerin Jan 30, 2024
0c2e0ff
update readme to adapt new autorest (#27571)
04diiguyi Jan 30, 2024
58dfeeb
OpenAI: TypeSpec project for Assistants (#27076)
trrwilson Jan 30, 2024
4e8f3ed
Add new events for Storage - StorageTasks (#26887)
shulinwang33 Jan 30, 2024
84d63ea
Update ci-fix.md: mention Teams channel for help with TypeSpec (#27588)
Jan 31, 2024
17c165f
Add API version 2023-10-01-preview [Import] (#27385)
pracagrawal Jan 31, 2024
1fc2f86
Mjmadhu playwrighttesting microsoft.azure playwright service 2023 10 …
mjmadhu Jan 31, 2024
f3cd692
HDInsight: onboard new apiversion 2023-11-01-preview (#27306)
dw511214992 Jan 31, 2024
3efb341
[Azure AI - Health Insights] - Typespec revision for Health Insights …
asaflevi-ms Jan 31, 2024
68030f1
[ci-fix.md] Add known issues to "Swagger LintDiff for TypeSpec" (#27573)
mikeharder Jan 31, 2024
dfd7afd
Adding new version 2024-01-01-preview for updating monitor Properties…
apoorvasingh130 Feb 1, 2024
eca452e
[Hub Generated] Review request for Microsoft.ContainerService/aks to …
FumingZhang Feb 1, 2024
6a5d5f0
Add AppPlatform 2024-01-01-preview (#27113)
saragluna Feb 1, 2024
b422f17
Azure Deployment Manager is being decommissioned. Deleting the Rest A…
rohantagaru Feb 1, 2024
784dcbc
updating preview tag (#27555)
mwesigwaguma Feb 1, 2024
73d1e65
Patch Common-Types/Private Links V6 with Pageable Options (#27620)
tshaiman Feb 2, 2024
559f989
Adding new stable version "2024-01-01" (#27627)
vipray-ms Feb 2, 2024
18493ce
first commit (#27598)
koyasu221b Feb 2, 2024
c307cc0
Update comment.yml: get rid of CI-MissingBaseCommit (#27622)
Feb 2, 2024
4be63be
OpenAI Assistants: fix required_action function representation (#27638)
trrwilson Feb 3, 2024
0d93026
add round trip rules (#27623)
ms-zhenhua Feb 3, 2024
86bf8dd
Mobile packet core service (#27517)
mgl1969 Feb 3, 2024
45f5b5a
Xuhumsft securityinsights microsoft.security insights 2023 12 01 prev…
xuhumsft Feb 3, 2024
79e4e0c
healthinsights, fix tspconfig on java emitter options (#27646)
weidongxu-microsoft Feb 4, 2024
a1d3891
[astro] disable flatten (#27649)
msyyc Feb 5, 2024
a9b45c2
[Hub Generated] Review request for Microsoft.Migrate/AssessmentProjec…
kushalmehrotra713 Feb 5, 2024
abb30bf
Mjmadhu playwrighttesting microsoft.azure playwright service 2023 10 …
mjmadhu Feb 5, 2024
4948660
Update python readme (#27504)
04diiguyi Feb 5, 2024
b72d96e
fix Nsp link properties description (#27601)
vineetmimrot Feb 5, 2024
f984ae5
Introducing service group for orbital (aogs and aodg) (#27582)
kkashojjula-msft Feb 6, 2024
1884557
TypeSpec conversion for Purview Policy (#26460)
allenjzhang Feb 6, 2024
8bf9ff0
Update readme.md for SDK generation (#27664)
msyyc Feb 6, 2024
7e9e559
disable model flatten for service Azure Large Instance&HDInsight Cont…
ChenxiJiang333 Feb 6, 2024
fe09fb3
[Hub Generated] Review request for Microsoft.RecoveryServices to add …
rthapliyal-msft Feb 6, 2024
9f44876
TSP Conversion for Microsoft.ApiCenter (#27618)
markcowl Feb 6, 2024
5e060c7
[EventGrid] Microsoft.AVS/privateClouds events (#24015)
et1975 Feb 6, 2024
ceb1849
update typescript.md (#27679)
kazrael2119 Feb 7, 2024
ddbc747
Adding E5 SKU to stable branch for GA release (#27656)
revanthballa1188 Feb 7, 2024
46e9f31
update events with metadata (#27137)
osaghaso Feb 7, 2024
9381354
Feature/datamap tsp (#26702)
yifan-zhou922 Feb 7, 2024
9097c69
Resolving 2023-05-01 swagger validation errors for Azure Firewall exa…
ajtms Feb 7, 2024
ef87932
Bug fix: Remove maxLeng on ScopeParameter (#27616)
allenjzhang Feb 7, 2024
bd36f7f
Add issue templates for question, bug, and feature request (#27610)
ronniegeraghty Feb 7, 2024
459ae6c
Update clusterservice.tsp (#27684)
mgl1969 Feb 7, 2024
5464501
[TypeSpec] Upgrade to 0.53.0 (#27677)
mikeharder Feb 7, 2024
d25b0ec
Add clarity to Search v1 API regarding `municipality` vs. `localName`…
stevemunk Feb 7, 2024
c7b50ca
[TypeSpec Validation] Fail fast if "npm install" fails (#27678)
mikeharder Feb 7, 2024
39608b2
Mvvsubbu databricks microsoft.databricks 2024 02 01 preview (#27607)
mvvsubbu Feb 8, 2024
a4d405d
paloaltonetworks - Add Strata Cloud Manager APIs (#27681)
rheajain Feb 8, 2024
3c53209
add directive to match parameter name (#27693)
kazrael2119 Feb 8, 2024
4baf37a
Add api version 2024-02-15-preview of Azure OpenAI (#27669)
bexxx Feb 8, 2024
f715b7f
Compute GalleryRP release 2023-07-03 (#27518)
Sandido Feb 8, 2024
3a5d590
[TypeSpec] Bump compiler, openapi3 and autorest version with union ho…
timotheeguerin Feb 8, 2024
a342331
Adding new api version 2024-01-01-preview (#27419)
utkarshjain1508 Feb 9, 2024
ecc0170
Added customizations for pagination models (#27683)
jpalvarezl Feb 9, 2024
6ce71c0
Fix incorrect tag name in comment. (#27741)
weshaggard Feb 12, 2024
6e12137
Update package.json (#27747)
timotheeguerin Feb 12, 2024
851d073
Replace `@projectedName("json"` -> `@encodedName("application/json"` …
timotheeguerin Feb 12, 2024
82417c7
Release machinelearningservices microsoft.machine learning services 2…
kseager Feb 12, 2024
0c885c1
added fttraidlevel in avssummary (#27686)
abhi580 Feb 12, 2024
7488ab7
Add Azure Programmable Connectivity dataplane APIs (#26922)
AndrewNivenMSFT Feb 13, 2024
455319f
Corrected the "Pricing Tiers" link text (#27752)
stevemunk Feb 13, 2024
1bf6c86
Convert ARM TSP from enum to union (#27749)
lmazuel Feb 13, 2024
fff4b6f
Mark MOE API Contract MaxQueueWait as deprecated (#27688)
Mutilar Feb 13, 2024
700bd7b
Adding new stable API version 2024-03-01 for Microsoft.Elastic (#27735)
poshett Feb 14, 2024
223073b
Poli check macao sar (#27755)
stevemunk Feb 14, 2024
b4506c0
[CosmosDB] Microsoft.DocumentDB 2024-02-15-preview API version (#27399)
Feb 15, 2024
7500ca3
[Hub Generated] Publish private branch 'eatkimchee-rpsaasmaster-fist-…
eatkimchee Feb 15, 2024
7c1d25a
Fixing Package Version Tag (#27769)
mvvsubbu Feb 15, 2024
109f900
Adds base for updating Microsoft.ContainerService/fleet from version …
zman-ms Jan 10, 2024
026a670
Updates readme
zman-ms Jan 10, 2024
ea8c72a
Updates API version in new specs and examples
zman-ms Jan 10, 2024
100f683
[Fleet] UpdateRun manual skip (#27323)
zman-ms Jan 18, 2024
97ded0c
[Fleet][UpdateRun] Rename skip target (#27449)
zman-ms Jan 19, 2024
6c1cd6b
[Fleet] 2024-02-02-preview Readme files (#27499)
zman-ms Jan 30, 2024
cc94f60
fix the final-state-via options for LRO (#27574)
serbrech Jan 30, 2024
be0e270
Add ControlPlaneOnly enum to ManagedClusterUpgradeSpec (#27491)
frantran Feb 5, 2024
5bd23d2
sync to async (#27745)
zman-ms Feb 12, 2024
7da9911
[Fleet] 2024-02-02-preview compile with latest compiler (#27750)
zman-ms Feb 12, 2024
ca4452a
[Fleet] 2024-02-02-preview resolve conflicts (#27760)
zman-ms Feb 13, 2024
db844bd
Merge branch 'dev-aks-fleet-2024-02-02-preview' into zman/fix-conflic…
zman-ms Feb 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[Azure AI - Health Insights] - Typespec revision for Health Insights …
…API Version 2 (#27223)

* Health Insights API Version 2

* add custom_words

* update radiology insights doc descriptions

* misspell

* add java service-name option to emit the service name

* update openAPI spec. misspell

* model is Element instead of extends element

* Fhir.R4 namespace as PascalCase

* Fix: workaround - force order resolution

* fix: suppression to get additionalProperties. DomainResource is Resource

* suppress  in patient timeline to get additionalProperties

* [Health Insights] Project structure updates (#27545)

* move main files under service dir

* regen openapi + move examples

* update client.tsp files

* tsp format

* update tspconfig.yaml

* use clientName decorator to decorate Fhir_R4 models

* Operation types as  camelCase

* replace projectedName with clientName

* model extends Element - same as FHIR spec

* move clientName to client.tsp

* fix: clientName - typename

* fix: token-expected: ';'

* remove import,  typespec-client-generator-core

* tsp format

* fix: LRO response schema to include result

* add @clientName to all models

* replace decimal with decimal128, add RI sample

* replace decimal128 with float64

* tsp format

* suppress AvoidAnonymousTypes

* comment clientName decorators

* comment clientName decorators

* comment clientName decorator for RI client.tsp

* Add projectedName

* move projectedName to client.tsp

* fix: projectedName on client

* updat tspconfig.yaml

* move service.tsp

* update ref

* revert structure changes

* move examples

* tspconfig

---------

Co-authored-by: catalinaperalta <catalinaperaltah@hotmail.com>
  • Loading branch information
asaflevi-ms and catalinaperalta authored Jan 31, 2024
commit 3efb341e0472b4b1d85f9c015666a715d9f5fa5a
4 changes: 4 additions & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3978,3 +3978,7 @@ protobuf
proto
msvideo
SOQL
retroperitoneal
codeable
telehealth
loinc
Original file line number Diff line number Diff line change
@@ -0,0 +1,388 @@
using TypeSpec.Rest;
namespace Fhir.R4;

alias markdown = string;

@pattern("([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1]))?)?")
scalar fhirDate extends string;

@pattern("([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]{1,9})?)?)?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)?)?)?")
scalar fhirDateTime extends string;

@pattern("([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\\.[0-9]{1,9})?(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))")
scalar fhirInstant extends string;

scalar fhirUri extends string;

alias value_x = {
@doc("Value as Quantity")
valueQuantity?: Quantity;

@doc("Value as CodeableConcept")
valueCodeableConcept?: CodeableConcept;

@doc("Value as string")
valueString?: string;

@doc("Value as boolean")
valueBoolean?: boolean;

@doc("Value as integer")
valueInteger?: int32;

@doc("Value as Range.")
valueRange?: Range;

@doc("Value as Ratio.")
valueRatio?: Ratio;

@doc("Value as SampledData.")
valueSampledData?: SampledData;

@doc("Value as time (hh:mm:ss)")
valueTime?: plainTime;

@doc("Value as dateTime.")
valueDateTime?: fhirDateTime;

@doc("Value as Period.")
valuePeriod?: Period;

@doc("Value as reference.")
valueReference?: Reference;
};

#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Keep is much as close to FHIR Spec"
@doc("""
Base for all elements
Based on [FHIR Element](https://www.hl7.org/fhir/datatypes.html#Element)
""")
model Extension extends Element {
@doc("Source of the definition for the extension code - a logical name or a URL.")
url: fhirUri;

...value_x;
}

@doc("FHIR extendible element")
model Extendible {
@doc("Additional Content defined by implementations")
extension?: Extension[];
}

@doc("""
The base definition for all elements contained inside a resource.
Based on [FHIR Element](https://www.hl7.org/fhir/R4/element.html)
""")
model Element {
@doc("Unique id for inter-element referencing")
id?: string;

#suppress "@azure-tools/typespec-azure-core/property-name-conflict" "must keep the name 'extension' for compatibility with FHIR"
@doc("Additional Content defined by implementations")
extension?: Extension[];
}

#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Keep is much as close to FHIR Spec"
@doc("""
A Coding is a representation of a defined concept using a symbol from a defined "code system".
Based on [FHIR Coding](https://www.hl7.org/fhir/R4/datatypes.html#Coding)
""")
model Coding extends Element {
@doc("Identity of the terminology system")
system?: fhirUri;

@doc("Version of the system - if relevant")
version?: string;

@doc("Symbol in syntax defined by the system")
code?: string;

@doc("Representation defined by the system")
display?: string;
}

#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Keep is much as close to FHIR Spec"
@doc("""
Concept - reference to a terminology or just text
Based on [FHIR CodeableConcept](https://www.hl7.org/fhir/R4/datatypes.html#CodeableConcept)
""")
model CodeableConcept extends Element {
@doc("Code defined by a terminology system")
coding?: Array<Coding>;

@doc("Plain text representation of the concept")
text?: string;
}

alias canonical = fhirUri;

@doc("""
Metadata about a resource
Based on [FHIR Meta](https://www.hl7.org/fhir/R4/resource.html#Meta)
""")
model Meta {
@doc("The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted.")
versionId?: string;

@doc("When the resource last changed - e.g. when the version changed.")
lastUpdated?: fhirInstant;

@doc("A uri that identifies the source system of the resource. This provides a minimal amount of Provenance information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.")
source?: fhirUri;

@doc("A list of profiles (references to [StructureDefinition](https://www.hl7.org/fhir/structuredefinition.html) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](https://www.hl7.org/fhir/structuredefinition-definitions.html#StructureDefinition.url).")
profile?: Array<canonical>;

@doc("Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.")
security?: Array<Coding>;

@doc("Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.")
tag?: Array<Coding>;
}

alias xhtml = string;
#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Keep is much as close to FHIR Spec"
@doc("""
Any resource that is a [DomainResource](https://www.hl7.org/fhir/domainresource.html) may include a human-readable narrative that contains a summary of the resource and may be used to represent the content of the resource to a human.
Based on [FHIR Narrative](https://www.hl7.org/fhir/R4/narrative.html#Narrative)
""")
model Narrative extends Element {
@doc("generated, extensions, additional, empty")
status: string;

@doc("xhtml")
div: xhtml;
}

#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Keep is much as close to FHIR Spec"
@doc("""
A reference from one resource to another
Based on [FHIR Reference](https://www.hl7.org/fhir/R4/references.html)
""")
model Reference extends Element {
#suppress "@azure-tools/typespec-azure-core/property-name-conflict" "must keep the name 'reference' for compatibility with FHIR"
@doc("Literal reference, Relative, internal or absolute URL")
reference?: string;

@doc("Type the reference refers to (e.g. \"Patient\")")
type?: fhirUri;

@doc("Logical reference, when literal reference is not known")
identifier?: Identifier;

@doc("Text alternative for the resource")
display?: string;
}

#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Keep is much as close to FHIR Spec"
@doc("""
An identifier intended for computation
Based on [FHIR Identifier](https://www.hl7.org/fhir/R4/identifier.html)
""")
model Identifier extends Element {
@doc("usual | official | temp | secondary | old (If known)")
use?: string;

@doc("Description of identifier")
type?: CodeableConcept;

@doc("The namespace for the identifier value")
system?: fhirUri;

@doc("The value that is unique")
value?: string;

@doc("Time period when id is/was valid for use")
period?: Period;

@doc("Organization that issued id (may be just text)")
assigner?: Reference;
}

#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Keep is much as close to FHIR Spec"
@doc("""
A time period defined by a start and end date and optionally time
Based on [FHIR Period](https://www.hl7.org/fhir/R4/datatypes.html#Period)
""")
model Period extends Element {
@doc("Starting time with inclusive boundary")
start?: fhirDateTime;

@doc("End time with inclusive boundary, if not ongoing")
end?: fhirDateTime;
}

#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Keep is much as close to FHIR Spec"
@doc("""
A measured or measurable amount
Based on [FHIR Quantity](https://www.hl7.org/fhir/R4/datatypes.html#Quantity)
""")
model Quantity extends Element {
@doc("Numerical value (with implicit precision)")
value?: float64;

@doc("< | <= | >= | > - how to understand the value")
comparator?: string;

@doc("Unit representation")
unit?: string;

@doc("System that defines coded unit form")
system?: fhirUri;

@doc("Coded form of the unit")
code?: string;
}

#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Keep is much as close to FHIR Spec"
@doc("""
A set of ordered Quantities defined by a low and high limit
Based on [FHIR Range](https://www.hl7.org/fhir/R4/datatypes.html#Range)
""")
model Range extends Element {
@doc("Low limit")
low?: Quantity;

@doc("High limit")
high?: Quantity;
}

#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Keep is much as close to FHIR Spec"
@doc("""
A ratio of two Quantity values - a numerator and a denominator
Based on [FHIR Ratio](https://www.hl7.org/fhir/R4/datatypes.html#Ratio)
""")
model Ratio extends Element {
@doc("Numerator value")
numerator?: Quantity;

@doc("Denominator value")
denominator?: Quantity;
}

#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Keep is much as close to FHIR Spec"
@doc("""
A text note which also contains information about who made the statement and when
Based on [FHIR Annotation](https://www.hl7.org/fhir/R4/datatypes.html#Annotation)
""")
model Annotation extends Element {
@doc("Individual responsible for the annotation")
authorString?: string;

@doc("When the annotation was made")
time?: fhirDateTime;

@doc("The annotation - text content (as markdown)")
text: string;
}

#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Keep is much as close to FHIR Spec"
@doc("""
A series of measurements taken by a device
Based on [FHIR SampledData](https://www.hl7.org/fhir/R4/datatypes.html#SampledData)
""")
model SampledData extends Element {
@doc("Zero value and units")
origin: Quantity;

@doc("Number of milliseconds between samples")
period: float64;

@doc("Multiply data by this before adding to origin")
factor?: float64;

@doc("Lower limit of detection")
lowerLimit?: float64;

@doc("Upper limit of detection")
upperLimit?: float64;

@doc("Number of sample points at each time point")
@minValue(1)
dimensions: int32;

@doc("Decimal values with spaces, or \"E\" | \"U\" | \"L\"")
data?: string;
}

#suppress "@azure-tools/typespec-azure-core/composition-over-inheritance" "Keep is much as close to FHIR Spec"
@doc("""
Contact details (See: https://www.hl7.org/fhir/R4/metadatatypes.html#ContactDetail)
""")
model ContactDetail extends Element {
@doc("Name of an individual to contact")
name?: string;

@doc("Contact details for individual or organization")
telecom?: Array<ContactPoint>;
}

@doc("""
Details for all kinds of technology mediated contact points for a person or organization, including telephone, email, etc.
See https://www.hl7.org/fhir/R4/datatypes.html#ContactPoint
""")
model ContactPoint {
@doc("phone | fax | email | pager | url | sms | other")
system?: ContactPointSystem;

@doc("The actual contact point details")
value?: string;

@doc("home | work | temp | old | mobile - purpose of this contact point")
use?: ContactPointUse;

@doc("Specify preferred order of use (1 = highest)")
rank?: int32;

@doc("Time period when the contact point was/is in use")
period?: Period;
}

@doc("""
Contact Point System
see https://www.hl7.org/fhir/R4/valueset-contact-point-system.html
""")
enum ContactPointSystem {
@doc("Phone")
Phone: "phone",

@doc("Fax")
Fax: "fax",

@doc("Email")
Email: "email",

@doc("Pager")
Pager: "pager",

@doc("Url")
Url: "url",

@doc("Sms")
Sms: "sms",

@doc("Other")
Other: "other",
}

@doc("""
Contact Point Use
See: http://hl7.org/fhir/ValueSet/contact-point-use
""")
enum ContactPointUse {
@doc("Home")
Home: "home",

@doc("Work")
Work: "work",

@doc("Temp")
Temp: "temp",

@doc("Old")
Old: "old",

@doc("Mobile")
Mobile: "mobile",
}
Loading