@medplum/definitions 0.1.6 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -43527,6 +43527,46 @@
43527
43527
  "identity" : "rim",
43528
43528
  "map" : "ED.data"
43529
43529
  }]
43530
+ },
43531
+ {
43532
+ "id" : "Binary.url",
43533
+ "path" : "Binary.url",
43534
+ "short" : "Uri where the data can be found",
43535
+ "definition" : "A location where the data can be accessed.",
43536
+ "comment" : "If both data and url are provided, the url SHALL point to the same content as the data contains. Urls may be relative references or may reference transient locations such as a wrapping envelope using cid: though this has ramifications for using signatures. Relative URLs are interpreted relative to the service url, like a resource reference, rather than relative to the resource itself. If a URL is provided, it SHALL resolve to actual data.",
43537
+ "requirements" : "The data needs to be transmitted by reference.",
43538
+ "min" : 0,
43539
+ "max" : "1",
43540
+ "base" : {
43541
+ "path" : "Binary.url",
43542
+ "min" : 0,
43543
+ "max" : "1"
43544
+ },
43545
+ "type" : [{
43546
+ "code" : "url"
43547
+ }],
43548
+ "example" : [{
43549
+ "label" : "General",
43550
+ "valueUrl" : "http://www.acme.com/logo-small.png"
43551
+ }],
43552
+ "constraint" : [{
43553
+ "key" : "ele-1",
43554
+ "severity" : "error",
43555
+ "human" : "All FHIR elements must have a @value or children",
43556
+ "expression" : "hasValue() or (children().count() > id.count())",
43557
+ "xpath" : "@value|f:*|h:div",
43558
+ "source" : "http://hl7.org/fhir/StructureDefinition/Element"
43559
+ }],
43560
+ "isModifier" : false,
43561
+ "isSummary" : true,
43562
+ "mapping" : [{
43563
+ "identity" : "v2",
43564
+ "map" : "RP.1+RP.2 - if they refer to a URL (see v2.6)"
43565
+ },
43566
+ {
43567
+ "identity" : "rim",
43568
+ "map" : "./reference/literal"
43569
+ }]
43530
43570
  }]
43531
43571
  },
43532
43572
  "differential" : {
@@ -385591,364 +385631,5 @@
385591
385631
  }]
385592
385632
  }
385593
385633
  }
385594
- },
385595
- {
385596
- "fullUrl" : "https://medplum.com/fhir/StructureDefinition/Project",
385597
- "resource" : {
385598
- "resourceType" : "StructureDefinition",
385599
- "id" : "Project",
385600
- "name" : "Project",
385601
- "snapshot" : {
385602
- "element" : [
385603
- {
385604
- "id" : "Project.id",
385605
- "path" : "Project.id",
385606
- "short" : "Logical id of this artifact",
385607
- "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
385608
- "min" : 0,
385609
- "max" : "1",
385610
- "type" : [{
385611
- "code" : "string"
385612
- }]
385613
- },
385614
- {
385615
- "id" : "Project.meta",
385616
- "path" : "Project.meta",
385617
- "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
385618
- "min" : 0,
385619
- "max" : "1",
385620
- "type" : [{
385621
- "code" : "Meta"
385622
- }]
385623
- },
385624
- {
385625
- "id" : "Project.implicitRules",
385626
- "path" : "Project.implicitRules",
385627
- "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
385628
- "min" : 0,
385629
- "max" : "1",
385630
- "type" : [{
385631
- "code" : "uri"
385632
- }]
385633
- },
385634
- {
385635
- "id" : "Project.language",
385636
- "path" : "Project.language",
385637
- "definition" : "The base language in which the resource is written.",
385638
- "min" : 0,
385639
- "max" : "1",
385640
- "type" : [{
385641
- "code" : "code"
385642
- }]
385643
- },
385644
- {
385645
- "id" : "Project.name",
385646
- "path" : "Project.name",
385647
- "definition" : "A name associated with the Project.",
385648
- "min" : 0,
385649
- "max" : "1",
385650
- "type" : [{
385651
- "code" : "string"
385652
- }]
385653
- },
385654
- {
385655
- "id" : "Project.description",
385656
- "path" : "Project.description",
385657
- "definition" : "A summary, characterization or explanation of the Project.",
385658
- "min" : 0,
385659
- "max" : "1",
385660
- "type" : [{
385661
- "code" : "string"
385662
- }]
385663
- },
385664
- {
385665
- "id" : "Project.owner",
385666
- "path" : "Project.owner",
385667
- "definition" : "A name associated with the Project.",
385668
- "min" : 0,
385669
- "max" : "1",
385670
- "type" : [{
385671
- "code" : "Reference"
385672
- }]
385673
- }
385674
- ]
385675
- }
385676
- }
385677
- },
385678
- {
385679
- "fullUrl" : "https://medplum.com/fhir/StructureDefinition/ClientApplication",
385680
- "resource" : {
385681
- "resourceType" : "StructureDefinition",
385682
- "id" : "ClientApplication",
385683
- "name" : "ClientApplication",
385684
- "snapshot" : {
385685
- "element" : [
385686
- {
385687
- "id" : "ClientApplication.id",
385688
- "path" : "ClientApplication.id",
385689
- "short" : "Logical id of this artifact",
385690
- "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
385691
- "min" : 0,
385692
- "max" : "1",
385693
- "type" : [{
385694
- "code" : "string"
385695
- }]
385696
- },
385697
- {
385698
- "id" : "ClientApplication.meta",
385699
- "path" : "ClientApplication.meta",
385700
- "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
385701
- "min" : 0,
385702
- "max" : "1",
385703
- "type" : [{
385704
- "code" : "Meta"
385705
- }]
385706
- },
385707
- {
385708
- "id" : "ClientApplication.implicitRules",
385709
- "path" : "ClientApplication.implicitRules",
385710
- "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
385711
- "min" : 0,
385712
- "max" : "1",
385713
- "type" : [{
385714
- "code" : "uri"
385715
- }]
385716
- },
385717
- {
385718
- "id" : "ClientApplication.language",
385719
- "path" : "ClientApplication.language",
385720
- "definition" : "The base language in which the resource is written.",
385721
- "min" : 0,
385722
- "max" : "1",
385723
- "type" : [{
385724
- "code" : "code"
385725
- }]
385726
- },
385727
- {
385728
- "id" : "ClientApplication.name",
385729
- "path" : "ClientApplication.name",
385730
- "definition" : "A name associated with the ClientApplication.",
385731
- "min" : 0,
385732
- "max" : "1",
385733
- "type" : [{
385734
- "code" : "string"
385735
- }]
385736
- },
385737
- {
385738
- "id" : "ClientApplication.description",
385739
- "path" : "ClientApplication.description",
385740
- "definition" : "A summary, characterization or explanation of the ClientApplication.",
385741
- "min" : 0,
385742
- "max" : "1",
385743
- "type" : [{
385744
- "code" : "string"
385745
- }]
385746
- },
385747
- {
385748
- "id" : "ClientApplication.project",
385749
- "path" : "ClientApplication.project",
385750
- "definition" : "Project where the client application is defined.",
385751
- "min" : 1,
385752
- "max" : "1",
385753
- "type" : [{
385754
- "code" : "Reference",
385755
- "targetProfile" : ["https://medplum.com/fhir/StructureDefinition/Project"]
385756
- }]
385757
- },
385758
- {
385759
- "id" : "ClientApplication.secret",
385760
- "path" : "ClientApplication.secret",
385761
- "definition" : "Client secret string used to verify the identity of a client.",
385762
- "min" : 0,
385763
- "max" : "1",
385764
- "type" : [{
385765
- "code" : "string"
385766
- }]
385767
- },
385768
- {
385769
- "id" : "ClientApplication.redirectUri",
385770
- "path" : "ClientApplication.redirectUri",
385771
- "definition" : "Redirect URI used when redirecting a client back to the client application.",
385772
- "min" : 0,
385773
- "max" : "1",
385774
- "type" : [{
385775
- "code" : "string"
385776
- }]
385777
- }
385778
- ]
385779
- }
385780
- }
385781
- },
385782
- {
385783
- "fullUrl" : "https://medplum.com/fhir/StructureDefinition/User",
385784
- "resource" : {
385785
- "resourceType" : "StructureDefinition",
385786
- "id" : "User",
385787
- "name" : "User",
385788
- "snapshot" : {
385789
- "element" : [
385790
- {
385791
- "id" : "User.id",
385792
- "path" : "User.id",
385793
- "short" : "Logical id of this artifact",
385794
- "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
385795
- "min" : 0,
385796
- "max" : "1",
385797
- "type" : [{
385798
- "code" : "string"
385799
- }]
385800
- },
385801
- {
385802
- "id" : "User.meta",
385803
- "path" : "User.meta",
385804
- "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
385805
- "min" : 0,
385806
- "max" : "1",
385807
- "type" : [{
385808
- "code" : "Meta"
385809
- }]
385810
- },
385811
- {
385812
- "id" : "User.implicitRules",
385813
- "path" : "User.implicitRules",
385814
- "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
385815
- "min" : 0,
385816
- "max" : "1",
385817
- "type" : [{
385818
- "code" : "uri"
385819
- }]
385820
- },
385821
- {
385822
- "id" : "User.language",
385823
- "path" : "User.language",
385824
- "definition" : "The base language in which the resource is written.",
385825
- "min" : 0,
385826
- "max" : "1",
385827
- "type" : [{
385828
- "code" : "code"
385829
- }]
385830
- },
385831
- {
385832
- "id" : "User.email",
385833
- "path" : "User.email",
385834
- "definition" : "The email address that uniquely identifies the user. This email address must be globally unique within the server.",
385835
- "min" : 1,
385836
- "max" : "1",
385837
- "type" : [{
385838
- "code" : "string"
385839
- }]
385840
- },
385841
- {
385842
- "id" : "User.admin",
385843
- "path" : "User.admin",
385844
- "short" : "Whether this user is a system administrator.",
385845
- "definition" : "Whether this user is a system administrator.",
385846
- "min" : 0,
385847
- "max" : "1",
385848
- "type" : [{
385849
- "code" : "boolean"
385850
- }]
385851
- }
385852
- ]
385853
- }
385854
- }
385855
- },
385856
- {
385857
- "fullUrl" : "https://medplum.com/fhir/StructureDefinition/ProjectMembership",
385858
- "resource" : {
385859
- "resourceType" : "StructureDefinition",
385860
- "id" : "ProjectMembership",
385861
- "name" : "ProjectMembership",
385862
- "snapshot" : {
385863
- "element" : [
385864
- {
385865
- "id" : "ProjectMembership.id",
385866
- "path" : "ProjectMembership.id",
385867
- "short" : "Logical id of this artifact",
385868
- "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
385869
- "min" : 0,
385870
- "max" : "1",
385871
- "type" : [{
385872
- "code" : "string"
385873
- }]
385874
- },
385875
- {
385876
- "id" : "ProjectMembership.meta",
385877
- "path" : "ProjectMembership.meta",
385878
- "definition" : "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
385879
- "min" : 0,
385880
- "max" : "1",
385881
- "type" : [{
385882
- "code" : "Meta"
385883
- }]
385884
- },
385885
- {
385886
- "id" : "ProjectMembership.implicitRules",
385887
- "path" : "ProjectMembership.implicitRules",
385888
- "definition" : "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
385889
- "min" : 0,
385890
- "max" : "1",
385891
- "type" : [{
385892
- "code" : "uri"
385893
- }]
385894
- },
385895
- {
385896
- "id" : "ProjectMembership.language",
385897
- "path" : "ProjectMembership.language",
385898
- "definition" : "The base language in which the resource is written.",
385899
- "min" : 0,
385900
- "max" : "1",
385901
- "type" : [{
385902
- "code" : "code"
385903
- }]
385904
- },
385905
- {
385906
- "id" : "ProjectMembership.project",
385907
- "path" : "ProjectMembership.project",
385908
- "definition" : "Project where the memberships are available.",
385909
- "min" : 1,
385910
- "max" : "1",
385911
- "type" : [{
385912
- "code" : "Reference",
385913
- "targetProfile" : ["https://medplum.com/fhir/StructureDefinition/Project"]
385914
- }]
385915
- },
385916
- {
385917
- "id" : "ProjectMembership.user",
385918
- "path" : "ProjectMembership.user",
385919
- "definition" : "User that is granted access to the project.",
385920
- "min" : 1,
385921
- "max" : "1",
385922
- "type" : [{
385923
- "code" : "Reference",
385924
- "targetProfile" : ["https://medplum.com/fhir/StructureDefinition/User"]
385925
- }]
385926
- },
385927
- {
385928
- "id" : "ProjectMembership.profile",
385929
- "path" : "ProjectMembership.profile",
385930
- "definition" : "Reference to the resource that represents the user profile within the project.",
385931
- "min" : 0,
385932
- "max" : "1",
385933
- "type" : [{
385934
- "code" : "Reference",
385935
- "targetProfile" : ["http://hl7.org/fhir/StructureDefinition/Patient",
385936
- "http://hl7.org/fhir/StructureDefinition/Practitioner",
385937
- "http://hl7.org/fhir/StructureDefinition/RelatedPerson"]
385938
- }]
385939
- },
385940
- {
385941
- "id" : "ProjectMembership.compartments",
385942
- "path" : "ProjectMembership.compartments",
385943
- "definition" : "Collection of compartments that the user has been granted access.",
385944
- "min" : 0,
385945
- "max" : "*",
385946
- "type" : [{
385947
- "code" : "Reference"
385948
- }]
385949
- }
385950
- ]
385951
- }
385952
- }
385953
385634
  }]
385954
385635
  }
@@ -21930,6 +21930,42 @@
21930
21930
  "description" : "Codes that represent various types of tags, commonly workflow-related; e.g. \"Needs review by Dr. Jones\".",
21931
21931
  "valueSet" : "http://hl7.org/fhir/ValueSet/common-tags"
21932
21932
  }
21933
+ },
21934
+ {
21935
+ "id" : "Meta.project",
21936
+ "path" : "Meta.project",
21937
+ "short" : "The project that contains this resource.",
21938
+ "definition" : "The project that contains this resource.",
21939
+ "comment" : "The project that contains this resource.",
21940
+ "min" : 0,
21941
+ "max" : "1",
21942
+ "type" : [{
21943
+ "code" : "uri"
21944
+ }]
21945
+ },
21946
+ {
21947
+ "id" : "Meta.author",
21948
+ "path" : "Meta.author",
21949
+ "short" : "The individual, device or organization who initiated the last change.",
21950
+ "definition" : "The individual, device or organization who initiated the last change.",
21951
+ "comment" : "The individual, device or organization who initiated the last change.",
21952
+ "min" : 0,
21953
+ "max" : "1",
21954
+ "type" : [{
21955
+ "code" : "Reference"
21956
+ }]
21957
+ },
21958
+ {
21959
+ "id" : "Meta.account",
21960
+ "path" : "Meta.account",
21961
+ "short" : "Optional account reference that can be used for sub-project compartments.",
21962
+ "definition" : "Optional account reference that can be used for sub-project compartments.",
21963
+ "comment" : "Optional account reference that can be used for sub-project compartments.",
21964
+ "min" : 0,
21965
+ "max" : "1",
21966
+ "type" : [{
21967
+ "code" : "Reference"
21968
+ }]
21933
21969
  }]
21934
21970
  },
21935
21971
  "differential" : {
@@ -65406,7 +65406,7 @@
65406
65406
  }
65407
65407
  },
65408
65408
  {
65409
- "fullUrl" : "http://hl7.org/fhir/SearchParameter/Project-name",
65409
+ "fullUrl" : "https://medplum.com/fhir/SearchParameter/Project-name",
65410
65410
  "resource" : {
65411
65411
  "resourceType" : "SearchParameter",
65412
65412
  "id" : "Project-name",
@@ -65423,7 +65423,25 @@
65423
65423
  }
65424
65424
  },
65425
65425
  {
65426
- "fullUrl" : "http://hl7.org/fhir/SearchParameter/ProjectMembership-project",
65426
+ "fullUrl" : "https://medplum.com/fhir/SearchParameter/Project-owner",
65427
+ "resource" : {
65428
+ "resourceType" : "SearchParameter",
65429
+ "id" : "Project-owner",
65430
+ "url" : "https://medplum.com/fhir/SearchParameter/Project-owner",
65431
+ "version" : "4.0.1",
65432
+ "name" : "name",
65433
+ "publisher" : "Medplum",
65434
+ "code" : "owner",
65435
+ "base" : ["Project"],
65436
+ "type" : "reference",
65437
+ "expression" : "Project.owner",
65438
+ "xpath" : "f:Project/f:owner",
65439
+ "xpathUsage" : "normal",
65440
+ "target" : ["User"]
65441
+ }
65442
+ },
65443
+ {
65444
+ "fullUrl" : "https://medplum.com/fhir/SearchParameter/ProjectMembership-project",
65427
65445
  "resource" : {
65428
65446
  "resourceType" : "SearchParameter",
65429
65447
  "id" : "ProjectMembership-project",
@@ -65441,7 +65459,7 @@
65441
65459
  }
65442
65460
  },
65443
65461
  {
65444
- "fullUrl" : "http://hl7.org/fhir/SearchParameter/ProjectMembership-user",
65462
+ "fullUrl" : "https://medplum.com/fhir/SearchParameter/ProjectMembership-user",
65445
65463
  "resource" : {
65446
65464
  "resourceType" : "SearchParameter",
65447
65465
  "id" : "ProjectMembership-user",
@@ -65459,7 +65477,7 @@
65459
65477
  }
65460
65478
  },
65461
65479
  {
65462
- "fullUrl" : "http://hl7.org/fhir/SearchParameter/ClientApplication-name",
65480
+ "fullUrl" : "https://medplum.com/fhir/SearchParameter/ClientApplication-name",
65463
65481
  "resource" : {
65464
65482
  "resourceType" : "SearchParameter",
65465
65483
  "id" : "ClientApplication-name",
@@ -65476,6 +65494,7 @@
65476
65494
  }
65477
65495
  },
65478
65496
  {
65497
+ "fullUrl" : "https://medplum.com/fhir/SearchParameter/JsonWebKey-active",
65479
65498
  "resource" : {
65480
65499
  "resourceType" : "SearchParameter",
65481
65500
  "id" : "JsonWebKey-active",
@@ -65493,6 +65512,7 @@
65493
65512
  }
65494
65513
  },
65495
65514
  {
65515
+ "fullUrl" : "https://medplum.com/fhir/SearchParameter/User-email",
65496
65516
  "resource" : {
65497
65517
  "resourceType" : "SearchParameter",
65498
65518
  "id" : "User-email",
@@ -65509,6 +65529,7 @@
65509
65529
  }
65510
65530
  },
65511
65531
  {
65532
+ "fullUrl" : "https://medplum.com/fhir/SearchParameter/Login-code",
65512
65533
  "resource" : {
65513
65534
  "resourceType" : "SearchParameter",
65514
65535
  "id" : "Login-code",
@@ -65525,6 +65546,7 @@
65525
65546
  }
65526
65547
  },
65527
65548
  {
65549
+ "fullUrl" : "https://medplum.com/fhir/SearchParameter/Login-cookie",
65528
65550
  "resource" : {
65529
65551
  "resourceType" : "SearchParameter",
65530
65552
  "id" : "Login-cookie",
@@ -65539,5 +65561,22 @@
65539
65561
  "xpath" : "f:Login/f:cookie",
65540
65562
  "xpathUsage" : "normal"
65541
65563
  }
65564
+ },
65565
+ {
65566
+ "fullUrl" : "https://medplum.com/fhir/SearchParameter/Bot-name",
65567
+ "resource" : {
65568
+ "resourceType" : "SearchParameter",
65569
+ "id" : "Bot-name",
65570
+ "url" : "https://medplum.com/fhir/SearchParameter/Bot-name",
65571
+ "version" : "4.0.1",
65572
+ "name" : "name",
65573
+ "publisher" : "Medplum",
65574
+ "code" : "name",
65575
+ "base" : ["Bot"],
65576
+ "type" : "string",
65577
+ "expression" : "Bot.name",
65578
+ "xpath" : "f:Bot/f:name",
65579
+ "xpathUsage" : "normal"
65580
+ }
65542
65581
  }]
65543
65582
  }
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,2BAAkC;AAClC,+BAA+B;AAE/B,SAAgB,QAAQ,CAAC,QAAgB;IACvC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAA,iBAAY,EAAC,IAAA,cAAO,EAAC,SAAS,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;AACxE,CAAC;AAFD,4BAEC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,2BAAkC;AAClC,+BAA+B;AAE/B,SAAgB,QAAQ,CAAC,QAAgB;IACvC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAA,iBAAY,EAAC,IAAA,cAAO,EAAC,SAAS,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;AACxE,CAAC;AAFD,4BAEC","sourcesContent":["import { readFileSync } from 'fs';\nimport { resolve } from 'path';\n\nexport function readJson(filename: string): any {\n return JSON.parse(readFileSync(resolve(__dirname, filename), 'utf8'));\n}\n"]}