@unite-us/app-create-referral 0.1.7 → 0.1.8
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.
|
@@ -12,6 +12,9 @@ var _map = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable
|
|
|
12
12
|
var _react = _interopRequireDefault(require("react"));
|
|
13
13
|
var _propTypes = require("prop-types");
|
|
14
14
|
var _ReferralProgramCard = _interopRequireDefault(require("./ReferralProgramCard"));
|
|
15
|
+
var _ui = require("@unite-us/ui");
|
|
16
|
+
var _clientUtils = require("@unite-us/client-utils");
|
|
17
|
+
var _constants = require("./constants");
|
|
15
18
|
function ReferralBuilderForm(_ref) {
|
|
16
19
|
var _context;
|
|
17
20
|
var referral = _ref.referral,
|
|
@@ -44,7 +47,19 @@ function ReferralBuilderForm(_ref) {
|
|
|
44
47
|
});
|
|
45
48
|
}), /*#__PURE__*/_react.default.createElement("p", {
|
|
46
49
|
className: "text-center text-gray-600 my-10"
|
|
47
|
-
}, "Click on the three-dot icon to edit referral groupings.")
|
|
50
|
+
}, "Click on the three-dot icon to edit referral groupings."), /*#__PURE__*/_react.default.createElement(_ui.TextField, {
|
|
51
|
+
afterLabelContent: /*#__PURE__*/_react.default.createElement(_clientUtils.InfoPanel, {
|
|
52
|
+
className: "mb-4 mt-2",
|
|
53
|
+
message: _constants.REFERRAL_PII_PHI_DESCRIPTION
|
|
54
|
+
}),
|
|
55
|
+
id: "referral-description",
|
|
56
|
+
label: "Referral Description",
|
|
57
|
+
placeholder: "Describe your client's current situation and reason for referral.",
|
|
58
|
+
rows: 3,
|
|
59
|
+
inline: false,
|
|
60
|
+
validations: _clientUtils.validations.isRequired,
|
|
61
|
+
required: true
|
|
62
|
+
})));
|
|
48
63
|
}
|
|
49
64
|
ReferralBuilderForm.propTypes = {
|
|
50
65
|
referral: _propTypes.PropTypes.shape({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReferralBuilderForm.js","names":["_react","_interopRequireDefault","require","_propTypes","_ReferralProgramCard","ReferralBuilderForm","_ref","_context","referral","index","referralSubtitle","service","programs","isOON","onProgramClick","values","arguments","length","undefined","console","log","default","createElement","className","_concat","concat","call","name","_map","program","onClick","propTypes","PropTypes","shape","string","
|
|
1
|
+
{"version":3,"file":"ReferralBuilderForm.js","names":["_react","_interopRequireDefault","require","_propTypes","_ReferralProgramCard","_ui","_clientUtils","_constants","ReferralBuilderForm","_ref","_context","referral","index","referralSubtitle","service","programs","isOON","onProgramClick","values","arguments","length","undefined","console","log","default","createElement","className","_concat","concat","call","name","_map","program","onClick","TextField","afterLabelContent","InfoPanel","message","REFERRAL_PII_PHI_DESCRIPTION","id","label","placeholder","rows","inline","validations","isRequired","required","propTypes","PropTypes","shape","string","array","number","defaultProps","_default","exports"],"sources":["../../../src/pages/referrals/ReferralBuilderForm.js"],"sourcesContent":["import React from 'react';\nimport { PropTypes } from 'prop-types';\nimport ReferralProgramCard from './ReferralProgramCard';\nimport { TextField } from '@unite-us/ui';\nimport { validations, InfoPanel } from '@unite-us/client-utils';\nimport { REFERRAL_PII_PHI_DESCRIPTION } from './constants';\n\nexport function ReferralBuilderForm({ referral, index, referralSubtitle }) {\n const { service, programs, isOON } = referral;\n\n const onProgramClick = (values = {}) => {\n console.log('program', { values });\n }\n\n return (\n <div className=\"w-2/3 bg-gray-light border border-blue-border rounded\">\n <div className=\"p-5 bg-med-pale-blue\">\n <h2 className=\"text-xl font-black\">\n {`Referral ${index + 1}: ${service?.name}`}\n </h2>\n <h3>\n {referralSubtitle}\n </h3>\n </div>\n <div className=\"p-5\">\n <h5 className=\"text-base ui-form-field__label ui-form-field__label--required\">PROGRAMS</h5>\n {programs.map((program) => (\n <ReferralProgramCard program={program} onClick={onProgramClick} isOON={isOON} />\n ))}\n <p className=\"text-center text-gray-600 my-10\">\n Click on the three-dot icon to edit referral groupings.\n </p>\n <TextField\n afterLabelContent={(\n <InfoPanel\n className=\"mb-4 mt-2\"\n message={REFERRAL_PII_PHI_DESCRIPTION}\n />\n )}\n id=\"referral-description\"\n label=\"Referral Description\"\n placeholder=\"Describe your client's current situation and reason for referral.\"\n rows={3}\n inline={false}\n validations={validations.isRequired}\n required\n />\n </div>\n </div>\n )\n}\n\nReferralBuilderForm.propTypes = {\n referral: PropTypes.shape({\n service: PropTypes.shape({\n name: PropTypes.string.isRequired,\n }).isRequired,\n programs: PropTypes.array.isRequired,\n }).isRequired,\n index: PropTypes.number.isRequired,\n referralSubtitle: PropTypes.string,\n}\n\nReferralBuilderForm.defaultProps = {\n referralSubtitle: '',\n}\n\nexport default ReferralBuilderForm;\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,oBAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,GAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AAEO,SAASM,mBAAmBA,CAAAC,IAAA,EAAwC;EAAA,IAAAC,QAAA;EAAA,IAArCC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAEC,KAAK,GAAAH,IAAA,CAALG,KAAK;IAAEC,gBAAgB,GAAAJ,IAAA,CAAhBI,gBAAgB;EACrE,IAAQC,OAAO,GAAsBH,QAAQ,CAArCG,OAAO;IAAEC,QAAQ,GAAYJ,QAAQ,CAA5BI,QAAQ;IAAEC,KAAK,GAAKL,QAAQ,CAAlBK,KAAK;EAEhC,IAAMC,cAAc,GAAG,SAAjBA,cAAcA,CAAA,EAAoB;IAAA,IAAhBC,MAAM,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC,CAAC;IACjCG,OAAO,CAACC,GAAG,CAAC,SAAS,EAAE;MAAEL,MAAM,EAANA;IAAO,CAAC,CAAC;EACpC,CAAC;EAED,oBACElB,MAAA,CAA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EAAmE;IAC/EC,IAAI,EAAE,CAAE;IACRC,MAAM,EAAE,KAAM;IACdC,WAAW,EAAEA,wBAAW,CAACC,UAAW;IACpCC,QAAQ;EAAA,EACR,CACE,CACF;AAEV;AAEAtC,mBAAmB,CAACuC,SAAS,GAAG;EAC9BpC,QAAQ,EAAEqC,oBAAS,CAACC,KAAK,CAAC;IACxBnC,OAAO,EAAEkC,oBAAS,CAACC,KAAK,CAAC;MACvBnB,IAAI,EAAEkB,oBAAS,CAACE,MAAM,CAACL;IACzB,CAAC,CAAC,CAACA,UAAU;IACb9B,QAAQ,EAAEiC,oBAAS,CAACG,KAAK,CAACN;EAC5B,CAAC,CAAC,CAACA,UAAU;EACbjC,KAAK,EAAEoC,oBAAS,CAACI,MAAM,CAACP,UAAU;EAClChC,gBAAgB,EAAEmC,oBAAS,CAACE;AAC9B,CAAC;AAED1C,mBAAmB,CAAC6C,YAAY,GAAG;EACjCxC,gBAAgB,EAAE;AACpB,CAAC;AAAA,IAAAyC,QAAA,GAEc9C,mBAAmB;AAAA+C,OAAA,CAAA/B,OAAA,GAAA8B,QAAA"}
|
|
@@ -4,7 +4,7 @@ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/obje
|
|
|
4
4
|
_Object$defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.REFERRAL_BUILDER_DESCRIPTION = exports.GROUPED_REFERRAL_MUST_HAVE_SAME = exports.GROUPED_REFERRALS_VS_INDIVIDUAL_REFERRALS = exports.EDITING_REFERRAL_GROUPINGS = exports.ABOUT_GROUPED_REFERRALS = void 0;
|
|
7
|
+
exports.REFERRAL_PII_PHI_DESCRIPTION = exports.REFERRAL_BUILDER_DESCRIPTION = exports.GROUPED_REFERRAL_MUST_HAVE_SAME = exports.GROUPED_REFERRALS_VS_INDIVIDUAL_REFERRALS = exports.EDITING_REFERRAL_GROUPINGS = exports.ABOUT_GROUPED_REFERRALS = void 0;
|
|
8
8
|
var REFERRAL_BUILDER_DESCRIPTION = "Organize referrals according to your client's needs,\n then add referral descriptions and upload any necessary attachements.\n We group compatible referrals by defaults. ";
|
|
9
9
|
exports.REFERRAL_BUILDER_DESCRIPTION = REFERRAL_BUILDER_DESCRIPTION;
|
|
10
10
|
var ABOUT_GROUPED_REFERRALS = "Grouped referrals allow you to send referrals to several organizations at once.\n Whoever accepts the referral first works with the client and the rest of the referrals are recalled.\n We automatically group referrals for you. To be in a group, referrals must have the same:";
|
|
@@ -15,4 +15,6 @@ var EDITING_REFERRAL_GROUPINGS = "To remove a resource from a group and send it
|
|
|
15
15
|
exports.EDITING_REFERRAL_GROUPINGS = EDITING_REFERRAL_GROUPINGS;
|
|
16
16
|
var GROUPED_REFERRAL_MUST_HAVE_SAME = ['Service Type', 'Network Status (in or out of network)', 'Coordination Center', 'Cost (free or paid)'];
|
|
17
17
|
exports.GROUPED_REFERRAL_MUST_HAVE_SAME = GROUPED_REFERRAL_MUST_HAVE_SAME;
|
|
18
|
+
var REFERRAL_PII_PHI_DESCRIPTION = "Only include personally identifiable information (PII), protected health information (PHI), or other sensitive information if it is necessary to provide services to the client.";
|
|
19
|
+
exports.REFERRAL_PII_PHI_DESCRIPTION = REFERRAL_PII_PHI_DESCRIPTION;
|
|
18
20
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","names":["REFERRAL_BUILDER_DESCRIPTION","exports","ABOUT_GROUPED_REFERRALS","GROUPED_REFERRALS_VS_INDIVIDUAL_REFERRALS","EDITING_REFERRAL_GROUPINGS","GROUPED_REFERRAL_MUST_HAVE_SAME"],"sources":["../../../src/pages/referrals/constants.js"],"sourcesContent":["export const REFERRAL_BUILDER_DESCRIPTION = `Organize referrals according to your client's needs,\n then add referral descriptions and upload any necessary attachements.\n We group compatible referrals by defaults. `;\n\nexport const ABOUT_GROUPED_REFERRALS = `Grouped referrals allow you to send referrals to several organizations at once.\n Whoever accepts the referral first works with the client and the rest of the referrals are recalled.\n We automatically group referrals for you. To be in a group, referrals must have the same:`;\n\nexport const GROUPED_REFERRALS_VS_INDIVIDUAL_REFERRALS = `Unite Us groups compatible referrals by default in order to optimize network resources.\n If you wish to change the default grouping behavior, go to the settings page and select “Group Referrals Individually by default”.`;\n\nexport const EDITING_REFERRAL_GROUPINGS = `To remove a resource from a group and send it as an individual referral, click the three dots to the right of the resource and select “Move to a new referral.”\n\n To move a referral into another compatible group, click the three dots to the right of the resource and select a group. You cannot group incompatible referrals (e.g. in-network referrals and out-of-network referrals, food pantry referrals and ride assistance referrals, etc.).`;\n\nexport const GROUPED_REFERRAL_MUST_HAVE_SAME = ['Service Type', 'Network Status (in or out of network)', 'Coordination Center', 'Cost (free or paid)'];\n"],"mappings":";;;;;;;AAAO,IAAMA,4BAA4B,iLAEK;AAACC,OAAA,CAAAD,4BAAA,GAAAA,4BAAA;AAExC,IAAME,uBAAuB,yRAEwD;AAACD,OAAA,CAAAC,uBAAA,GAAAA,uBAAA;AAEtF,IAAMC,yCAAyC,4OAC+E;AAACF,OAAA,CAAAE,yCAAA,GAAAA,yCAAA;AAE/H,IAAMC,0BAA0B,wcAEgP;AAACH,OAAA,CAAAG,0BAAA,GAAAA,0BAAA;AAEjR,IAAMC,+BAA+B,GAAG,CAAC,cAAc,EAAE,uCAAuC,EAAE,qBAAqB,EAAE,qBAAqB,CAAC;AAACJ,OAAA,CAAAI,+BAAA,GAAAA,+BAAA"}
|
|
1
|
+
{"version":3,"file":"constants.js","names":["REFERRAL_BUILDER_DESCRIPTION","exports","ABOUT_GROUPED_REFERRALS","GROUPED_REFERRALS_VS_INDIVIDUAL_REFERRALS","EDITING_REFERRAL_GROUPINGS","GROUPED_REFERRAL_MUST_HAVE_SAME","REFERRAL_PII_PHI_DESCRIPTION"],"sources":["../../../src/pages/referrals/constants.js"],"sourcesContent":["export const REFERRAL_BUILDER_DESCRIPTION = `Organize referrals according to your client's needs,\n then add referral descriptions and upload any necessary attachements.\n We group compatible referrals by defaults. `;\n\nexport const ABOUT_GROUPED_REFERRALS = `Grouped referrals allow you to send referrals to several organizations at once.\n Whoever accepts the referral first works with the client and the rest of the referrals are recalled.\n We automatically group referrals for you. To be in a group, referrals must have the same:`;\n\nexport const GROUPED_REFERRALS_VS_INDIVIDUAL_REFERRALS = `Unite Us groups compatible referrals by default in order to optimize network resources.\n If you wish to change the default grouping behavior, go to the settings page and select “Group Referrals Individually by default”.`;\n\nexport const EDITING_REFERRAL_GROUPINGS = `To remove a resource from a group and send it as an individual referral, click the three dots to the right of the resource and select “Move to a new referral.”\n\n To move a referral into another compatible group, click the three dots to the right of the resource and select a group. You cannot group incompatible referrals (e.g. in-network referrals and out-of-network referrals, food pantry referrals and ride assistance referrals, etc.).`;\n\nexport const GROUPED_REFERRAL_MUST_HAVE_SAME = ['Service Type', 'Network Status (in or out of network)', 'Coordination Center', 'Cost (free or paid)'];\n\nexport const REFERRAL_PII_PHI_DESCRIPTION = \"Only include personally identifiable information (PII), protected health information (PHI), or other sensitive information if it is necessary to provide services to the client.\";\n"],"mappings":";;;;;;;AAAO,IAAMA,4BAA4B,iLAEK;AAACC,OAAA,CAAAD,4BAAA,GAAAA,4BAAA;AAExC,IAAME,uBAAuB,yRAEwD;AAACD,OAAA,CAAAC,uBAAA,GAAAA,uBAAA;AAEtF,IAAMC,yCAAyC,4OAC+E;AAACF,OAAA,CAAAE,yCAAA,GAAAA,yCAAA;AAE/H,IAAMC,0BAA0B,wcAEgP;AAACH,OAAA,CAAAG,0BAAA,GAAAA,0BAAA;AAEjR,IAAMC,+BAA+B,GAAG,CAAC,cAAc,EAAE,uCAAuC,EAAE,qBAAqB,EAAE,qBAAqB,CAAC;AAACJ,OAAA,CAAAI,+BAAA,GAAAA,+BAAA;AAEhJ,IAAMC,4BAA4B,GAAG,kLAAkL;AAACL,OAAA,CAAAK,4BAAA,GAAAA,4BAAA"}
|