@unite-us/app-create-referral 0.1.1 → 0.1.2
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.
- package/README.md +14 -32
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
# App
|
|
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
|
|
5
4
|
|
|
6
5
|
### Setup
|
|
7
6
|
To develop locally follow this steps:
|
|
@@ -14,18 +13,19 @@ To develop locally follow this steps:
|
|
|
14
13
|
```
|
|
15
14
|
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
15
|
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
## For EMR Parent project
|
|
17
|
+
|
|
18
|
+
The branch we are using for development is **smrt-create-referral**:
|
|
19
|
+
|
|
19
20
|
```
|
|
20
|
-
// from the root folder in
|
|
21
|
-
$
|
|
22
|
-
$ git checkout
|
|
21
|
+
// from the root folder in uniteus-emr project
|
|
22
|
+
$ npm i
|
|
23
|
+
$ git checkout smrt-create-referral
|
|
23
24
|
$ npm link @unite-us/app-create-referral
|
|
24
25
|
$ npm start
|
|
25
26
|
```
|
|
26
|
-
|
|
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.
|
|
27
|
+
- Go to http://localhost:8081 and follow the steps to create a new referral clicking the Create Referral button.
|
|
28
|
+
- Then go to [How to create a new version](#how-to-create-a-new-version)
|
|
29
29
|
|
|
30
30
|
## How to create a new version
|
|
31
31
|
|
|
@@ -37,16 +37,13 @@ In this case, the new version is **0.1.21**
|
|
|
37
37
|
|
|
38
38
|
## How to make the parent app use your new version
|
|
39
39
|
|
|
40
|
-
You need to update the package.json in the parent app, eg: unite-us/
|
|
40
|
+
You need to update the package.json in the parent app, eg: unite-us/uniteus-emr
|
|
41
41
|
|
|
42
|
-
-
|
|
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
|
|
42
|
+
for EMR: https://github.com/unite-us/uniteus-emr/blob/smrt-create-referral/package.json#L33
|
|
46
43
|
|
|
47
44
|
```
|
|
48
|
-
//"@unite-us/app-create-referral": "
|
|
49
|
-
"@unite-us/app-create-referral": "
|
|
45
|
+
//"@unite-us/app-create-referral": "0.1.1",
|
|
46
|
+
"@unite-us/app-create-referral": "0.1.1"
|
|
50
47
|
|
|
51
48
|
```
|
|
52
49
|
- Open the terminal
|
|
@@ -56,20 +53,5 @@ You need to update the package.json in the parent app, eg: unite-us/front-end
|
|
|
56
53
|
This will update the package-lock.json with the new dependency.
|
|
57
54
|
- Create a PR in the parent project to use the new version
|
|
58
55
|
|
|
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
56
|
|
|
75
57
|
That's all Folks!
|