@unite-us/app-create-referral 0.1.1 → 0.1.3

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.
Files changed (2) hide show
  1. package/README.md +18 -33
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,7 +1,8 @@
1
- # App Create Referral
1
+ # App Client Profile
2
2
 
3
3
  This project is intended to be used from a parent application like [unite-us/front-end](https://github.com/unite-us/front-end) or [unite-us/uniteus-emr](https://github.com/unite-us/uniteus-emr)
4
- ## Development
4
+
5
+ [Technical Design Document](https://uniteus.atlassian.net/wiki/spaces/AppEng/pages/3819208813/Tech+Design+Create+Referral+Project) (in progress)
5
6
 
6
7
  ### Setup
7
8
  To develop locally follow this steps:
@@ -14,18 +15,20 @@ To develop locally follow this steps:
14
15
  ```
15
16
  This install the packages, create a link for this project (to be consumed from a parent app) and starts the server in watch mode, all the changes you do will trigger a rebuild and you will have the latest version)
16
17
 
17
- ### Connect this project to a Parent App
18
- 2- Go to a parent app, eg: unite-us/front-end
18
+ ## For EMR Parent project
19
+
20
+ The branch we are using for development is **smrt-create-referral**:
21
+
19
22
  ```
20
- // from the root folder in front-end project
21
- $ cd packages/app-client
22
- $ git checkout CORE-SMRT-109
23
+ // from the root folder in uniteus-emr project
24
+ $ npm i
25
+ $ git checkout smrt-create-referral
23
26
  $ npm link @unite-us/app-create-referral
24
27
  $ npm start
25
28
  ```
26
- Note: Currently we have a development branch which already use this package, the branch is: CORE-SMRT-109
27
-
28
- If you go to http://localhost:8080 and navigate to a profile, eg: http://localhost:8080/facesheet/3ee1c050-5e41-4527-b2a5-51506e43a68d/profile?newprofile=true, you should be able to see the profile app loaded and any changes done should be reflected there.
29
+ - Go to http://localhost:8081 and log in as a user with the `hint11EhrSearchApiCutover` feature flag enabled (ex: `costanza@uniteus.com`)
30
+ - Follow the steps to create a new referral clicking the Create Referral button.
31
+ - Then go to [How to create a new version](#how-to-create-a-new-version)
29
32
 
30
33
  ## How to create a new version
31
34
 
@@ -37,16 +40,13 @@ In this case, the new version is **0.1.21**
37
40
 
38
41
  ## How to make the parent app use your new version
39
42
 
40
- You need to update the package.json in the parent app, eg: unite-us/front-end
43
+ You need to update the package.json in the parent app, eg: unite-us/uniteus-emr
41
44
 
42
- - Go to the package.json inside app-client and bump the version manually:
43
- https://github.com/unite-us/front-end/blob/CORE-SMRT-109/packages/app-client/package.json#L49
44
-
45
- Or for EMR: https://github.com/unite-us/uniteus-emr/blob/SMRT-109/package.json#L31
45
+ for EMR: https://github.com/unite-us/uniteus-emr/blob/smrt-create-referral/package.json#L33
46
46
 
47
47
  ```
48
- //"@unite-us/app-create-referral": "^0.1.20",
49
- "@unite-us/app-create-referral": "^0.1.21"
48
+ //"@unite-us/app-create-referral": "0.1.1",
49
+ "@unite-us/app-create-referral": "0.1.1"
50
50
 
51
51
  ```
52
52
  - Open the terminal
@@ -56,20 +56,5 @@ You need to update the package.json in the parent app, eg: unite-us/front-end
56
56
  This will update the package-lock.json with the new dependency.
57
57
  - Create a PR in the parent project to use the new version
58
58
 
59
- ## For EMR Parent project
60
-
61
- All the steps are very similar; the branch we are using for development is **SMRT-109**:
62
-
63
- - First do the [Setup](#setup) from the first section
64
- - Then
65
- ```
66
- // from the root folder in uniteus-emr project
67
- $ npm i
68
- $ git checkout SMRT-109
69
- $ npm link @unite-us/app-create-referral
70
- $ npm start
71
- ```
72
- - Go to http://localhost:8081 and navigate to the profile tab, eg: http://localhost:8081/7605899328/2/patient/d0597502-547d-476e-a7f0-793ce4aead21/profile
73
- - Then go to [How to create a new version](#how-to-create-a-new-version)
74
59
 
75
- That's all Folks!
60
+ That's all Folks!
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unite-us/app-create-referral",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "main": "build/index.js",
5
5
  "author": "Alex Morales",
6
6
  "dependencies": {